Un-break pg_dump --- pg_class.indproc is now regproc not oid, which
for some reason displays a zero oid differently. Possibly we should revert that schema change, but it's easy to make pg_dump accept both spellings so I'll do that for now.
This commit is contained in:
parent
87c5e0fa56
commit
ceca2a7d14
@ -22,7 +22,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.224 2001/08/22 20:23:23 petere Exp $
|
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.225 2001/08/27 00:44:40 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -4370,8 +4370,9 @@ dumpIndexes(Archive *fout, IndInfo *indinfo, int numIndexes,
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* indproc is regproc in 7.2, oid previously, so check both */
|
||||||
if (strcmp(indinfo[i].indproc, "0") == 0)
|
if (strcmp(indinfo[i].indproc, "-") == 0 ||
|
||||||
|
strcmp(indinfo[i].indproc, "0") == 0)
|
||||||
funcname = NULL;
|
funcname = NULL;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user