Remove unneeded pg_catalog schema name

This commit is contained in:
Javier Goizueta
2016-04-25 16:30:58 +02:00
parent 65415bb335
commit 11ad45306f
3 changed files with 9 additions and 9 deletions

View File

@@ -522,12 +522,12 @@ AS $$
SELECT EXISTS (
SELECT a.attname
FROM pg_class c
LEFT JOIN pg_catalog.pg_attribute a ON a.attrelid = c.oid
LEFT JOIN pg_catalog.pg_type t ON t.oid = a.atttypid
LEFT JOIN pg_attribute a ON a.attrelid = c.oid
LEFT JOIN pg_type t ON t.oid = a.atttypid
WHERE c.oid = reloid
AND a.attname = col_name
AND pg_catalog.format_type(a.atttypid, NULL) IN ('text', 'character varying', 'character')
AND pg_catalog.format_type(a.atttypid, NULL) = pg_catalog.format_type(a.atttypid, a.atttypmod)
AND format_type(a.atttypid, NULL) IN ('text', 'character varying', 'character')
AND format_type(a.atttypid, NULL) = format_type(a.atttypid, a.atttypmod)
);
$$ LANGUAGE SQL STABLE;