Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0dec3a8

Browse files
committed
Fix problem of COPY before vacuum.
1 parent4e9df15 commit0dec3a8

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 template12>&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 template12>&1> /dev/null|\
356+
echo"vacuum analyze pg_description"| postgres -F -Q -D$PGDATA template12>&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
#defineAttrDefaultIndex "pg_attrdefind"
4747
#defineRelCheckIndex "pg_relcheckind"
4848
#defineTriggerRelidIndex "pg_trigrelidind"
49-
#defineDescriptionObjOidIndex "pg_descrobjoidind"
49+
#defineDescriptionObjIndex "pg_descrobjind"
5050

5151
externchar*Name_pg_attr_indices[];
5252
externchar*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_trigrelidindonpg_triggerusingbtree(tgrelidoid_ops));
121121

122-
DECLARE_INDEX(pg_descrobjoidindonpg_descriptionusingbtree(objoidoid_ops));
122+
DECLARE_INDEX(pg_descrobjindonpg_descriptionusingbtree(objoidoid_ops));
123123

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp