summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAbbas2012-04-30 03:37:53 +0000
committerAbbas2012-04-30 03:37:53 +0000
commit1c805696f62ee41786a1d5954bcdd53c83ce58e3 (patch)
tree02e7c6f744265fae33d426002c0c07b3ab066f9f /src/test
parent44d9ca48ae57065cb63d7b9615adc76a3fefbe1d (diff)
Fix for test case sanity_check
XC has added three catalog tables hence they are expected in the output. Composite indexes are not supported so creation of such an index on func_index_heap fails.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/regress/expected/sanity_check.out7
-rw-r--r--src/test/regress/expected/sanity_check_1.out170
2 files changed, 5 insertions, 172 deletions
diff --git a/src/test/regress/expected/sanity_check.out b/src/test/regress/expected/sanity_check.out
index ab9e891788..7b32754aee 100644
--- a/src/test/regress/expected/sanity_check.out
+++ b/src/test/regress/expected/sanity_check.out
@@ -46,7 +46,7 @@ SELECT relname, relhasindex
fast_emp4000 | t
float4_tbl | f
float8_tbl | f
- func_index_heap | t
+ func_index_heap | f
hash_f8_heap | t
hash_i4_heap | t
hash_name_heap | t
@@ -130,6 +130,9 @@ SELECT relname, relhasindex
pg_ts_template | t
pg_type | t
pg_user_mapping | t
+ pgxc_class | t
+ pgxc_group | t
+ pgxc_node | t
point_tbl | t
polygon_tbl | t
ramp | f
@@ -157,7 +160,7 @@ SELECT relname, relhasindex
timetz_tbl | f
tinterval_tbl | f
varchar_tbl | f
-(146 rows)
+(149 rows)
--
-- another sanity check: every system catalog that has OIDs should have
diff --git a/src/test/regress/expected/sanity_check_1.out b/src/test/regress/expected/sanity_check_1.out
deleted file mode 100644
index 504d080e4b..0000000000
--- a/src/test/regress/expected/sanity_check_1.out
+++ /dev/null
@@ -1,170 +0,0 @@
-VACUUM;
---
--- sanity check, if we don't have indices the test will take years to
--- complete. But skip TOAST relations (since they will have varying
--- names depending on the current OID counter) as well as temp tables
--- of other backends (to avoid timing-dependent behavior).
---
-SELECT relname, relhasindex
- FROM pg_class c LEFT JOIN pg_namespace n ON n.oid = relnamespace
- WHERE relkind = 'r' AND (nspname ~ '^pg_temp_') IS NOT TRUE
- ORDER BY relname;
- relname | relhasindex
--------------------------+-------------
- a | f
- a_star | f
- abstime_tbl | f
- aggtest | f
- array_index_op_test | t
- array_op_test | f
- b | f
- b_star | f
- box_tbl | f
- bt_f8_heap | t
- bt_i4_heap | t
- bt_name_heap | t
- bt_txt_heap | t
- c | f
- c_star | f
- char_tbl | f
- circle_tbl | t
- city | f
- date_tbl | f
- dept | f
- e_star | f
- emp | f
- equipment_r | f
- f_star | f
- fast_emp4000 | t
- firstparent | f
- float4_tbl | f
- float8_tbl | f
- func_index_heap | f
- hash_f8_heap | t
- hash_i4_heap | t
- hash_name_heap | t
- hash_txt_heap | t
- hobbies_r | f
- ihighway | t
- inet_tbl | f
- inhe | f
- inhf | f
- inhx | f
- int2_tbl | f
- int4_tbl | f
- int8_tbl | f
- interval_tbl | f
- iportaltest | f
- log_table | f
- lseg_tbl | f
- main_table | f
- money_data | f
- num_data | f
- num_exp_add | t
- num_exp_div | t
- num_exp_ln | t
- num_exp_log10 | t
- num_exp_mul | t
- num_exp_power_10_ln | t
- num_exp_sqrt | t
- num_exp_sub | t
- num_input_test | f
- num_result | f
- onek | 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_cast | t
- pg_class | t
- pg_constraint | t
- pg_conversion | t
- pg_database | t
- pg_db_role_setting | t
- pg_default_acl | t
- pg_depend | t
- pg_description | t
- pg_enum | t
- pg_foreign_data_wrapper | t
- pg_foreign_server | t
- pg_index | t
- pg_inherits | t
- pg_language | t
- pg_largeobject | t
- pg_largeobject_metadata | t
- pg_namespace | t
- pg_opclass | t
- pg_operator | t
- pg_opfamily | 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_ts_config | t
- pg_ts_config_map | t
- pg_ts_dict | t
- pg_ts_parser | t
- pg_ts_template | t
- pg_type | t
- pg_user_mapping | t
- pgxc_class | t
- point_tbl | t
- polygon_tbl | t
- real_city | f
- reltime_tbl | f
- road | t
- secondparent | f
- 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
- student | f
- t2 | f
- t3 | f
- t4 | f
- tenk1 | t
- tenk2 | t
- test_tsvector | f
- text_tbl | f
- thirdparent | f
- time_tbl | f
- timestamp_tbl | f
- timestamptz_tbl | f
- timetz_tbl | f
- tinterval_tbl | f
- varchar_tbl | f
- viewtest_tbl | f
-(138 rows)
-
---
--- another sanity check: every system catalog that has OIDs should have
--- a unique index on OID. This ensures that the OIDs will be unique,
--- even after the OID counter wraps around.
--- We exclude non-system tables from the check by looking at nspname.
---
-SELECT relname, nspname
-FROM pg_class c LEFT JOIN pg_namespace n ON n.oid = relnamespace
-WHERE relhasoids
- AND ((nspname ~ '^pg_') IS NOT FALSE)
- AND NOT EXISTS (SELECT 1 FROM pg_index i WHERE indrelid = c.oid
- AND indkey[0] = -2 AND indnatts = 1
- AND indisunique AND indimmediate);
- relname | nspname
----------+---------
-(0 rows)
-