Commit 282713a8 authored by Tom Lane's avatar Tom Lane

Make the regression tests safe for TOAST.

parent 6d1ae0c9
VACUUM;
--
-- sanity check, if we don't have indices the test will take years to
-- complete.
-- complete. But skip TOAST relations since they will have varying
-- names depending on the current OID counter.
--
SELECT relname, relhasindex
FROM pg_class
WHERE relhasindex
WHERE relhasindex AND relkind != 't'
ORDER BY relname;
relname | relhasindex
---------------------+-------------
......
......@@ -111,8 +111,7 @@ WHERE p1.typsend = p2.oid AND p1.typtype = 'b' AND
-- Look for illegal values in pg_class fields
SELECT p1.oid, p1.relname
FROM pg_class as p1
WHERE (p1.relkind != 'r' AND p1.relkind != 'i' AND
p1.relkind != 's' AND p1.relkind != 'S');
WHERE p1.relkind NOT IN ('r', 'i', 's', 'S', 't');
oid | relname
-----+---------
(0 rows)
......
......@@ -2,10 +2,11 @@
VACUUM;
--
-- sanity check, if we don't have indices the test will take years to
-- complete.
-- complete. But skip TOAST relations since they will have varying
-- names depending on the current OID counter.
--
SELECT relname, relhasindex
FROM pg_class
WHERE relhasindex
WHERE relhasindex AND relkind != 't'
ORDER BY relname;
......@@ -99,8 +99,7 @@ WHERE p1.typsend = p2.oid AND p1.typtype = 'b' AND
SELECT p1.oid, p1.relname
FROM pg_class as p1
WHERE (p1.relkind != 'r' AND p1.relkind != 'i' AND
p1.relkind != 's' AND p1.relkind != 'S');
WHERE p1.relkind NOT IN ('r', 'i', 's', 'S', 't');
-- Indexes should have an access method, others not.
......
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