Commit 23dc3082 authored by Tom Lane's avatar Tom Lane

Tweak sanity_check regression test to display more tables (viz, those

without indexes) but not to display temp tables.  It's a bit hard to
credit that sanity_check could get through a database-wide VACUUM
while the preceding create_index test is still trying to clean up
its temp tables ... but I see no other explanation for the current
failure report from buildfarm member sponge.
parent 704ddaaa
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. But skip TOAST relations since they will have varying -- complete. But skip TOAST relations (since they will have varying
-- names depending on the current OID counter. -- names depending on the current OID counter) as well as temp tables
-- of other backends (to avoid timing-dependent behavior).
-- --
SELECT relname, relhasindex SELECT relname, relhasindex
FROM pg_class FROM pg_class c LEFT JOIN pg_namespace n ON n.oid = relnamespace
WHERE relhasindex AND relkind != 't' WHERE relkind = 'r' AND (nspname ~ '^pg_temp_') IS NOT TRUE
ORDER BY relname; ORDER BY relname;
relname | relhasindex relname | relhasindex
---------------------+------------- -------------------------+-------------
array_index_op_test | t a | f
bt_f8_heap | t a_star | f
bt_i4_heap | t abstime_tbl | f
bt_name_heap | t aggtest | f
bt_txt_heap | t array_index_op_test | t
circle_tbl | t array_op_test | f
fast_emp4000 | t b | f
func_index_heap | t b_star | f
hash_f8_heap | t box_tbl | f
hash_i4_heap | t bprime | f
hash_name_heap | t bt_f8_heap | t
hash_txt_heap | t bt_i4_heap | t
ihighway | t bt_name_heap | t
inhx | t bt_txt_heap | t
num_exp_add | t c | f
num_exp_div | t c_star | f
num_exp_ln | t char_tbl | f
num_exp_log10 | t check2_tbl | f
num_exp_mul | t check_tbl | f
num_exp_power_10_ln | t circle_tbl | t
num_exp_sqrt | t city | f
num_exp_sub | t copy_tbl | f
onek | t d | f
onek2 | t d_star | f
pg_aggregate | t date_tbl | f
pg_am | t default_tbl | f
pg_amop | t defaultexpr_tbl | f
pg_amproc | t dept | f
pg_attrdef | t e_star | f
pg_attribute | t emp | f
pg_auth_members | t equipment_r | f
pg_authid | t f_star | f
pg_autovacuum | t fast_emp4000 | t
pg_cast | t float4_tbl | f
pg_class | t float8_tbl | f
pg_constraint | t func_index_heap | t
pg_conversion | t hash_f8_heap | t
pg_database | t hash_i4_heap | t
pg_depend | t hash_name_heap | t
pg_description | t hash_txt_heap | t
pg_index | t hobbies_r | f
pg_inherits | t ihighway | t
pg_language | t inet_tbl | f
pg_largeobject | t inhe | f
pg_namespace | t inhf | f
pg_opclass | t inhx | t
pg_operator | t insert_tbl | f
pg_pltemplate | t int2_tbl | f
pg_proc | t int4_tbl | f
pg_rewrite | t int8_tbl | f
pg_shdepend | t interval_tbl | f
pg_shdescription | t iportaltest | f
pg_statistic | t log_table | f
pg_tablespace | t lseg_tbl | f
pg_trigger | t main_table | f
pg_type | t num_data | f
polygon_tbl | t num_exp_add | t
road | t num_exp_div | t
shighway | t num_exp_ln | t
tenk1 | t num_exp_log10 | t
tenk2 | t num_exp_mul | t
(61 rows) num_exp_power_10_ln | t
num_exp_sqrt | t
num_exp_sub | t
num_input_test | f
num_result | f
onek | t
onek2 | t
path_tbl | f
person | f
pg_aggregate | t
pg_am | t
pg_amop | t
pg_amproc | t
pg_attrdef | t
pg_attribute | t
pg_auth_members | t
pg_authid | t
pg_autovacuum | t
pg_cast | t
pg_class | t
pg_constraint | t
pg_conversion | t
pg_database | t
pg_depend | t
pg_description | t
pg_index | t
pg_inherits | t
pg_language | t
pg_largeobject | t
pg_listener | f
pg_namespace | t
pg_opclass | t
pg_operator | t
pg_pltemplate | t
pg_proc | t
pg_rewrite | t
pg_shdepend | t
pg_shdescription | t
pg_statistic | t
pg_tablespace | t
pg_trigger | t
pg_type | t
point_tbl | f
polygon_tbl | t
ramp | f
real_city | f
reltime_tbl | f
road | t
shighway | t
slow_emp4000 | f
sql_features | f
sql_implementation_info | f
sql_languages | f
sql_packages | f
sql_parts | f
sql_sizing | f
sql_sizing_profiles | f
stud_emp | f
student | f
tenk1 | t
tenk2 | t
text_tbl | f
time_tbl | f
timestamp_tbl | f
timestamptz_tbl | f
timetz_tbl | f
tinterval_tbl | f
varchar_tbl | f
(129 rows)
-- --
-- another sanity check: every system catalog that has OIDs should have -- another sanity check: every system catalog that has OIDs should have
......
...@@ -2,12 +2,13 @@ VACUUM; ...@@ -2,12 +2,13 @@ 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. But skip TOAST relations since they will have varying -- complete. But skip TOAST relations (since they will have varying
-- names depending on the current OID counter. -- names depending on the current OID counter) as well as temp tables
-- of other backends (to avoid timing-dependent behavior).
-- --
SELECT relname, relhasindex SELECT relname, relhasindex
FROM pg_class FROM pg_class c LEFT JOIN pg_namespace n ON n.oid = relnamespace
WHERE relhasindex AND relkind != 't' WHERE relkind = 'r' AND (nspname ~ '^pg_temp_') IS NOT TRUE
ORDER BY relname; ORDER BY relname;
-- --
......
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