Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+5-3
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)