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

Commitd15a118

Browse files
committed
Quick-hack solution to regproc/oid issue was not the right solution.
1 parentceca2a7 commitd15a118

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

‎src/bin/pg_dump/pg_dump.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*
2323
*
2424
* IDENTIFICATION
25-
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.225 2001/08/2700:44:40 tgl Exp $
25+
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.226 2001/08/2701:09:59 tgl Exp $
2626
*
2727
*-------------------------------------------------------------------------
2828
*/
@@ -2883,7 +2883,7 @@ getIndexes(int *numIndexes)
28832883
"SELECT i.indexrelid as indexreloid, "
28842884
"i.indrelid as indreloid, "
28852885
"t1.relname as indexrelname, t2.relname as indrelname, "
2886-
"i.indproc, i.indkey, i.indclass, "
2886+
"i.indproc :: oid AS indproc, i.indkey, i.indclass, "
28872887
"a.amname as indamname, i.indisunique, i.indisprimary, "
28882888
"length(i.indpred) > 0 as indhaspred "
28892889
"from pg_index i, pg_class t1, pg_class t2, pg_am a "
@@ -4370,16 +4370,15 @@ dumpIndexes(Archive *fout, IndInfo *indinfo, int numIndexes,
43704370
continue;
43714371
}
43724372

4373-
/* indproc is regproc in 7.2, oid previously, so check both */
4374-
if (strcmp(indinfo[i].indproc,"-")==0||
4375-
strcmp(indinfo[i].indproc,"0")==0)
4373+
4374+
if (strcmp(indinfo[i].indproc,"0")==0)
43764375
funcname=NULL;
43774376
else
43784377
{
43794378
intnumFuncs;
43804379

43814380
/*
4382-
* thefuncname is an oid which we use to find the name of the
4381+
* theindproc is an oid which we use to find the name of the
43834382
* pg_proc. We need to do this because getFuncs() only reads
43844383
* in the user-defined funcs not all the funcs. We might not
43854384
* find what we want by looking in FuncInfo*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp