1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-09 22:41:56 +03:00

Make the regression tests safe for TOAST.

This commit is contained in:
Tom Lane
2000-07-05 23:02:37 +00:00
parent 6d1ae0c91b
commit 282713a836
4 changed files with 8 additions and 8 deletions

View File

@ -1,11 +1,12 @@
VACUUM; VACUUM;
-- --
-- sanity check, if we don't have indices the test will take years to -- 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 SELECT relname, relhasindex
FROM pg_class FROM pg_class
WHERE relhasindex WHERE relhasindex AND relkind != 't'
ORDER BY relname; ORDER BY relname;
relname | relhasindex relname | relhasindex
---------------------+------------- ---------------------+-------------

View File

@ -111,8 +111,7 @@ WHERE p1.typsend = p2.oid AND p1.typtype = 'b' AND
-- Look for illegal values in pg_class fields -- Look for illegal values in pg_class fields
SELECT p1.oid, p1.relname SELECT p1.oid, p1.relname
FROM pg_class as p1 FROM pg_class as p1
WHERE (p1.relkind != 'r' AND p1.relkind != 'i' AND WHERE p1.relkind NOT IN ('r', 'i', 's', 'S', 't');
p1.relkind != 's' AND p1.relkind != 'S');
oid | relname oid | relname
-----+--------- -----+---------
(0 rows) (0 rows)

View File

@ -2,10 +2,11 @@
VACUUM; VACUUM;
-- --
-- sanity check, if we don't have indices the test will take years to -- 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 SELECT relname, relhasindex
FROM pg_class FROM pg_class
WHERE relhasindex WHERE relhasindex AND relkind != 't'
ORDER BY relname; ORDER BY relname;

View File

@ -99,8 +99,7 @@ WHERE p1.typsend = p2.oid AND p1.typtype = 'b' AND
SELECT p1.oid, p1.relname SELECT p1.oid, p1.relname
FROM pg_class as p1 FROM pg_class as p1
WHERE (p1.relkind != 'r' AND p1.relkind != 'i' AND WHERE p1.relkind NOT IN ('r', 'i', 's', 'S', 't');
p1.relkind != 's' AND p1.relkind != 'S');
-- Indexes should have an access method, others not. -- Indexes should have an access method, others not.