apply suggestion of @r4sas
This commit is contained in:
parent
1d20eee169
commit
29ffd25c18
1 changed files with 1 additions and 1 deletions
|
@ -647,7 +647,7 @@ class Database extends AbstractData
|
||||||
case 'pgsql':
|
case 'pgsql':
|
||||||
$sql = 'SELECT c."relname" AS "table_name" '
|
$sql = 'SELECT c."relname" AS "table_name" '
|
||||||
. 'FROM "pg_class" c, "pg_user" u '
|
. 'FROM "pg_class" c, "pg_user" u '
|
||||||
. "WHERE c.\"relowner\" = u.\"usesysid\" AND c.\"relkind\" = 'r' "
|
. 'WHERE c."relowner" = u."usesysid" AND c."relkind" = \'r\' '
|
||||||
. 'AND NOT EXISTS (SELECT 1 FROM "pg_views" WHERE "viewname" = c."relname") '
|
. 'AND NOT EXISTS (SELECT 1 FROM "pg_views" WHERE "viewname" = c."relname") '
|
||||||
. "AND c.\"relname\" !~ '^(pg_|sql_)' "
|
. "AND c.\"relname\" !~ '^(pg_|sql_)' "
|
||||||
. 'UNION '
|
. 'UNION '
|
||||||
|
|
Loading…
Reference in a new issue