aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2006-01-06 19:08:33 +0000
committerBruce Momjian <bruce@momjian.us>2006-01-06 19:08:33 +0000
commit38e75d927510f5d2f9529638cf8f9925d3db8a74 (patch)
tree55946af4d436fdf1069b4a54d465cddcba3d0e99
parent615d99feb4d811e368f6de7feea97cf7e885f14f (diff)
downloadpostgresql-38e75d927510f5d2f9529638cf8f9925d3db8a74.tar.gz
postgresql-38e75d927510f5d2f9529638cf8f9925d3db8a74.zip
Use RELKIND_COMPOSITE_TYPE rather than hardcoded 'c'.
-rw-r--r--src/bin/pg_dump/pg_dump.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c
index fc2633f27bc..f5740dc9f9a 100644
--- a/src/bin/pg_dump/pg_dump.c
+++ b/src/bin/pg_dump/pg_dump.c
@@ -12,7 +12,7 @@
* by PostgreSQL
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.424 2005/12/03 21:06:18 tgl Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.425 2006/01/06 19:08:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1828,7 +1828,8 @@ getTypes(int *numTypes)
* ordinary type because that would bring the table up into the
* datatype part of the dump order.)
*/
- if (OidIsValid(tinfo[i].typrelid) && tinfo[i].typrelkind != 'c')
+ if (OidIsValid(tinfo[i].typrelid) &&
+ tinfo[i].typrelkind != RELKIND_COMPOSITE_TYPE)
tinfo[i].dobj.objType = DO_TABLE_TYPE;
/*
@@ -4609,7 +4610,8 @@ dumpType(Archive *fout, TypeInfo *tinfo)
/* skip complex types, except for standalone composite types */
/* (note: this test should now be unnecessary) */
- if (OidIsValid(tinfo->typrelid) && tinfo->typrelkind != 'c')
+ if (OidIsValid(tinfo->typrelid) &&
+ tinfo->typrelkind != RELKIND_COMPOSITE_TYPE)
return;
/* skip undefined placeholder types */