22
22
*
23
23
*
24
24
* IDENTIFICATION
25
- * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.265 2002/05/28 22:26:56 tgl Exp $
25
+ * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.266 2002/06/13 20:02:31 tgl Exp $
26
26
*
27
27
*-------------------------------------------------------------------------
28
28
*/
@@ -1579,6 +1579,8 @@ getTypes(int *numTypes)
1579
1579
* array elements by user-defined types
1580
1580
*
1581
1581
* we filter out the built-in types when we dump out the types
1582
+ *
1583
+ * same approach for undefined (shell) types
1582
1584
*/
1583
1585
1584
1586
/* Make sure we are in proper schema */
@@ -1633,10 +1635,6 @@ getTypes(int *numTypes)
1633
1635
tinfo [i ].typrelid = strdup (PQgetvalue (res ,i ,i_typrelid ));
1634
1636
tinfo [i ].typtype = * PQgetvalue (res ,i ,i_typtype );
1635
1637
1636
- if (strlen (tinfo [i ].usename )== 0 )
1637
- write_msg (NULL ,"WARNING: owner of data type %s appears to be invalid\n" ,
1638
- tinfo [i ].typname );
1639
-
1640
1638
/*
1641
1639
* check for user-defined array types, omit system generated ones
1642
1640
*/
@@ -1650,6 +1648,10 @@ getTypes(int *numTypes)
1650
1648
tinfo [i ].isDefined = true;
1651
1649
else
1652
1650
tinfo [i ].isDefined = false;
1651
+
1652
+ if (strlen (tinfo [i ].usename )== 0 && tinfo [i ].isDefined )
1653
+ write_msg (NULL ,"WARNING: owner of data type %s appears to be invalid\n" ,
1654
+ tinfo [i ].typname );
1653
1655
}
1654
1656
1655
1657
* numTypes = ntups ;