Skip to content

Commit 38e75d9

Browse files
committed
Use RELKIND_COMPOSITE_TYPE rather than hardcoded 'c'.
1 parent 615d99f commit 38e75d9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* by PostgreSQL
1313
*
1414
* IDENTIFICATION
15-
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.424 2005/12/03 21:06:18 tgl Exp $
15+
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.425 2006/01/06 19:08:33 momjian Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -1828,7 +1828,8 @@ getTypes(int *numTypes)
18281828
* ordinary type because that would bring the table up into the
18291829
* datatype part of the dump order.)
18301830
*/
1831-
if (OidIsValid(tinfo[i].typrelid) && tinfo[i].typrelkind != 'c')
1831+
if (OidIsValid(tinfo[i].typrelid) &&
1832+
tinfo[i].typrelkind != RELKIND_COMPOSITE_TYPE)
18321833
tinfo[i].dobj.objType = DO_TABLE_TYPE;
18331834

18341835
/*
@@ -4609,7 +4610,8 @@ dumpType(Archive *fout, TypeInfo *tinfo)
46094610

46104611
/* skip complex types, except for standalone composite types */
46114612
/* (note: this test should now be unnecessary) */
4612-
if (OidIsValid(tinfo->typrelid) && tinfo->typrelkind != 'c')
4613+
if (OidIsValid(tinfo->typrelid) &&
4614+
tinfo->typrelkind != RELKIND_COMPOSITE_TYPE)
46134615
return;
46144616

46154617
/* skip undefined placeholder types */

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