apply suggestion of @r4sas

This commit is contained in:
El RIDO 2022-01-30 21:42:24 +01:00
parent 1d20eee169
commit 29ffd25c18
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92

View file

@ -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 '