mirror of
https://github.com/postgres/postgres.git
synced 2025-05-11 05:41:32 +03:00
Use RELKIND_COMPOSITE_TYPE rather than hardcoded 'c'.
This commit is contained in:
parent
615d99feb4
commit
38e75d9275
@ -12,7 +12,7 @@
|
|||||||
* by PostgreSQL
|
* by PostgreSQL
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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
|
* ordinary type because that would bring the table up into the
|
||||||
* datatype part of the dump order.)
|
* 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;
|
tinfo[i].dobj.objType = DO_TABLE_TYPE;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -4609,7 +4610,8 @@ dumpType(Archive *fout, TypeInfo *tinfo)
|
|||||||
|
|
||||||
/* skip complex types, except for standalone composite types */
|
/* skip complex types, except for standalone composite types */
|
||||||
/* (note: this test should now be unnecessary) */
|
/* (note: this test should now be unnecessary) */
|
||||||
if (OidIsValid(tinfo->typrelid) && tinfo->typrelkind != 'c')
|
if (OidIsValid(tinfo->typrelid) &&
|
||||||
|
tinfo->typrelkind != RELKIND_COMPOSITE_TYPE)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* skip undefined placeholder types */
|
/* skip undefined placeholder types */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user