|
12 | 12 | *by PostgreSQL |
13 | 13 | * |
14 | 14 | * 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 $ |
16 | 16 | * |
17 | 17 | *------------------------------------------------------------------------- |
18 | 18 | */ |
@@ -1828,7 +1828,8 @@ getTypes(int *numTypes) |
1828 | 1828 | * ordinary type because that would bring the table up into the |
1829 | 1829 | * datatype part of the dump order.) |
1830 | 1830 | */ |
1831 | | -if (OidIsValid(tinfo[i].typrelid)&&tinfo[i].typrelkind!='c') |
| 1831 | +if (OidIsValid(tinfo[i].typrelid)&& |
| 1832 | +tinfo[i].typrelkind!=RELKIND_COMPOSITE_TYPE) |
1832 | 1833 | tinfo[i].dobj.objType=DO_TABLE_TYPE; |
1833 | 1834 |
|
1834 | 1835 | /* |
@@ -4609,7 +4610,8 @@ dumpType(Archive *fout, TypeInfo *tinfo) |
4609 | 4610 |
|
4610 | 4611 | /* skip complex types, except for standalone composite types */ |
4611 | 4612 | /* (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) |
4613 | 4615 | return; |
4614 | 4616 |
|
4615 | 4617 | /* skip undefined placeholder types */ |
|