]> granicus.if.org Git - postgis/commitdiff
the pgsql2shp tool should qualify its query against pg_class to ensure it gets the...
authorPaul Ramsey <pramsey@cleverelephant.ca>
Sun, 20 May 2012 09:17:08 +0000 (09:17 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Sun, 20 May 2012 09:17:08 +0000 (09:17 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9758 b70326c6-7e19-0410-871a-916f4a2858ee

loader/pgsql2shp-core.c

index 11a88a98b8dfd39179ebd313a7658c5b50002bc9..03514b39702d468ee2906cd3cc9679ffaea395a1 100644 (file)
@@ -1482,7 +1482,8 @@ ShpDumperOpenTable(SHPDUMPERSTATE *state)
                        "pg_attribute a, pg_class c WHERE "
                        "a.attrelid = c.oid and a.attnum > 0 AND "
                        "a.atttypid != 0 AND "
-                       "c.relname = '%s'", state->table);
+                       "c.relname = '%s' AND "
+                       "pg_catalog.pg_table_is_visible(c.oid)", state->table);
        }
 
        LWDEBUGF(3, "query is: %s\n", query);