From: Paul Ramsey Date: Sun, 20 May 2012 09:17:08 +0000 (+0000) Subject: the pgsql2shp tool should qualify its query against pg_class to ensure it gets the... X-Git-Tag: 2.0.1~62 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8864ed9558209fcacbadbe1eb7b2c6fa93a72e28;p=postgis the pgsql2shp tool should qualify its query against pg_class to ensure it gets the correct table to dump (#1814) git-svn-id: http://svn.osgeo.org/postgis/trunk@9758 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/loader/pgsql2shp-core.c b/loader/pgsql2shp-core.c index 11a88a98b..03514b397 100644 --- a/loader/pgsql2shp-core.c +++ b/loader/pgsql2shp-core.c @@ -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);