Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0dec3a8

Browse files
committed
Fix problem of COPY before vacuum.
1 parent 4e9df15 commit 0dec3a8

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

src/bin/initdb/initdb.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#
2727
#
2828
# IDENTIFICATION
29-
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.26 1997/11/14 21:37:35 momjian Exp $
29+
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.27 1997/11/15 17:15:34 momjian Exp $
3030
#
3131
#-------------------------------------------------------------------------
3232

@@ -346,12 +346,15 @@ fi
346346

347347
echo
348348

349+
echo "vacuuming template1"
350+
echo "vacuum analyze" | postgres -F -Q -D$PGDATA template1 2>&1 > /dev/null |\
351+
grep -v "^DEBUG:"
352+
349353
echo "loading pg_description"
350354
echo "copy pg_description from '$TEMPLATE_DESCR'" | postgres -F -Q -D$PGDATA template1 > /dev/null
351355
echo "copy pg_description from '$GLOBAL_DESCR'" | postgres -F -Q -D$PGDATA template1 > /dev/null
352-
353-
echo "vacuuming template1"
354-
echo "vacuum" | postgres -F -Q -D$PGDATA template1 2>&1 > /dev/null |\
356+
echo "vacuum analyze pg_description" | postgres -F -Q -D$PGDATA template1 2>&1 > /dev/null |\
355357
grep -v "^DEBUG:"
356358

357359

360+

src/include/catalog/indexing.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: indexing.h,v 1.9 1997/11/14 05:57:42 momjian Exp $
10+
* $Id: indexing.h,v 1.10 1997/11/15 17:15:35 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -46,7 +46,7 @@
4646
#define AttrDefaultIndex "pg_attrdefind"
4747
#define RelCheckIndex "pg_relcheckind"
4848
#define TriggerRelidIndex "pg_trigrelidind"
49-
#define DescriptionObjOidIndex "pg_descrobjoidind"
49+
#define DescriptionObjIndex "pg_descrobjind"
5050

5151
extern char *Name_pg_attr_indices[];
5252
extern char *Name_pg_proc_indices[];
@@ -119,7 +119,7 @@ DECLARE_INDEX(pg_relcheckind on pg_relcheck using btree(rcrelid oid_ops));
119119

120120
DECLARE_INDEX(pg_trigrelidind on pg_trigger using btree(tgrelid oid_ops));
121121

122-
DECLARE_INDEX(pg_descrobjoidind on pg_description using btree(objoid oid_ops));
122+
DECLARE_INDEX(pg_descrobjind on pg_description using btree(objoid oid_ops));
123123

124124
/* now build indices in the initialization scripts */
125125
BUILD_INDICES

0 commit comments

Comments
 (0)