Adjust oid2name to skip certain row types, per Tom.
authorBruce Momjian
Sun, 27 Jul 2003 19:30:24 +0000 (19:30 +0000)
committerBruce Momjian
Sun, 27 Jul 2003 19:30:24 +0000 (19:30 +0000)
contrib/oid2name/oid2name.c

index 9e8320eba182eaf70d7875fea791a0215e22d2b0..96f09575f68641567ee0c8681f244536058584ce 100644 (file)
@@ -356,7 +356,7 @@ sql_exec_dumptable(PGconn *conn, int systables)
        snprintf(todo, 1024, "select relfilenode,relname from pg_class order by relname");
    else
        snprintf(todo, 1024, "select relfilenode,relname from pg_class "
-                           "where reltype not in ('v','c') and "
+                           "where relkind not in ('v','s', 't') and "
                            "relname not like 'pg_%%' order by relname");
 
    sql_exec(conn, todo, 0);