]> granicus.if.org Git - postgresql/blob - src/include/catalog/pg_attribute_check.sql
Fix atttypmod alignment again, and re-enable ecpg.
[postgresql] / src / include / catalog / pg_attribute_check.sql
1 -- This makes sure the pg_attribute columns match the type's columns
2 -- bjm 1998/08/26
3
4 -- check lengths
5 SELECT  pg_attribute.oid, relname, attname
6 FROM    pg_class, pg_attribute, pg_type
7 WHERE   pg_class.oid = attrelid AND
8         atttypid = pg_type.oid AND
9         attlen != typlen;
10
11 -- check alignment
12 SELECT  pg_attribute.oid, relname, attname
13 FROM    pg_class, pg_attribute, pg_type
14 WHERE   pg_class.oid = attrelid AND
15         atttypid = pg_type.oid AND
16         attalign != typalign;
17