Commit 79e1d1d5 authored by Tom Lane's avatar Tom Lane

Remove pg_attribute_check.sql: these checks merged into new

regress test 'type_sanity'.
parent 23ef47f8
-- This makes sure the pg_attribute columns match the type's columns
-- bjm 1998/08/26
-- check lengths
SELECT pg_attribute.oid, relname, attname
FROM pg_class, pg_attribute, pg_type
WHERE pg_class.oid = attrelid AND
atttypid = pg_type.oid AND
attlen != typlen;
-- check alignment
SELECT pg_attribute.oid, relname, attname
FROM pg_class, pg_attribute, pg_type
WHERE pg_class.oid = attrelid AND
atttypid = pg_type.oid AND
attalign != typalign;
-- check alignment
SELECT pg_attribute.oid, relname, attname
FROM pg_class, pg_attribute, pg_type
WHERE pg_class.oid = attrelid AND
atttypid = pg_type.oid AND
attbyval != typbyval;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment