diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-08-27 00:44:40 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-08-27 00:44:40 +0000 |
commit | ceca2a7d14625634f8c95fc2317b55086dece054 (patch) | |
tree | 30e4fc09b4aa33f7e7b12b3c1d94ea16ed33093d /src | |
parent | 87c5e0fa56c8c95fa4c8353b767b20126690b3f6 (diff) | |
download | postgresql-ceca2a7d14625634f8c95fc2317b55086dece054.tar.gz postgresql-ceca2a7d14625634f8c95fc2317b55086dece054.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pg_dump/pg_dump.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index f81439e2036..e48ed0bdb4c 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -22,7 +22,7 @@ * * * 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; } - - if (strcmp(indinfo[i].indproc, "0") == 0) + /* indproc is regproc in 7.2, oid previously, so check both */ + if (strcmp(indinfo[i].indproc, "-") == 0 || + strcmp(indinfo[i].indproc, "0") == 0) funcname = NULL; else { |