Skip to content

Commit ceca2a7

Browse files
committed
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.
1 parent 87c5e0f commit ceca2a7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 4 additions & 3 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.224 2001/08/22 20:23:23 petere Exp $
25+
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.225 2001/08/27 00:44:40 tgl Exp $
2626
*
2727
*-------------------------------------------------------------------------
2828
*/
@@ -4370,8 +4370,9 @@ dumpIndexes(Archive *fout, IndInfo *indinfo, int numIndexes,
43704370
continue;
43714371
}
43724372

4373-
4374-
if (strcmp(indinfo[i].indproc, "0") == 0)
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)
43754376
funcname = NULL;
43764377
else
43774378
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy