diff options
author | Tomas Vondra | 2017-08-30 23:18:00 +0000 |
---|---|---|
committer | Tomas Vondra | 2017-08-30 23:18:00 +0000 |
commit | af59f510589031e22e71b6c8214944614332c225 (patch) | |
tree | 3b33d04e332fc6d4ba1e499e9699f6049257cdb5 | |
parent | 20a13b337bdfb6833b4dc8c76f08076a2055eca4 (diff) |
Remove FDW objects from tests in pg_visibility contrib module
Postgres-XL does not support FWD object, so the tests were failing
with "does not exist" errors, instead of testing that visibility on
FDW objects is not supported. So just remove the few test queries.
-rw-r--r-- | contrib/pg_visibility/expected/pg_visibility.out | 17 | ||||
-rw-r--r-- | contrib/pg_visibility/sql/pg_visibility.sql | 13 |
2 files changed, 0 insertions, 30 deletions
diff --git a/contrib/pg_visibility/expected/pg_visibility.out b/contrib/pg_visibility/expected/pg_visibility.out index f0dcb897c4..c914307c0e 100644 --- a/contrib/pg_visibility/expected/pg_visibility.out +++ b/contrib/pg_visibility/expected/pg_visibility.out @@ -52,20 +52,6 @@ select pg_check_frozen('test_sequence'); ERROR: "test_sequence" is not a table, materialized view, or TOAST table select pg_truncate_visibility_map('test_sequence'); ERROR: "test_sequence" is not a table, materialized view, or TOAST table -create foreign data wrapper dummy; -create server dummy_server foreign data wrapper dummy; -create foreign table test_foreign_table () server dummy_server; --- foreign tables do not have VMs, so these all fail -select pg_visibility('test_foreign_table', 0); -ERROR: "test_foreign_table" is not a table, materialized view, or TOAST table -select pg_visibility_map('test_foreign_table'); -ERROR: "test_foreign_table" is not a table, materialized view, or TOAST table -select pg_visibility_map_summary('test_foreign_table'); -ERROR: "test_foreign_table" is not a table, materialized view, or TOAST table -select pg_check_frozen('test_foreign_table'); -ERROR: "test_foreign_table" is not a table, materialized view, or TOAST table -select pg_truncate_visibility_map('test_foreign_table'); -ERROR: "test_foreign_table" is not a table, materialized view, or TOAST table -- check some of the allowed relkinds create table regular_table (a int); insert into regular_table values (1), (2); @@ -135,8 +121,5 @@ select pg_truncate_visibility_map('test_partition'); drop table test_partitioned; drop view test_view; drop sequence test_sequence; -drop foreign table test_foreign_table; -drop server dummy_server; -drop foreign data wrapper dummy; drop materialized view matview_visibility_test; drop table regular_table; diff --git a/contrib/pg_visibility/sql/pg_visibility.sql b/contrib/pg_visibility/sql/pg_visibility.sql index c2a7f1d9e4..992a9ef88f 100644 --- a/contrib/pg_visibility/sql/pg_visibility.sql +++ b/contrib/pg_visibility/sql/pg_visibility.sql @@ -38,16 +38,6 @@ select pg_visibility_map_summary('test_sequence'); select pg_check_frozen('test_sequence'); select pg_truncate_visibility_map('test_sequence'); -create foreign data wrapper dummy; -create server dummy_server foreign data wrapper dummy; -create foreign table test_foreign_table () server dummy_server; --- foreign tables do not have VMs, so these all fail -select pg_visibility('test_foreign_table', 0); -select pg_visibility_map('test_foreign_table'); -select pg_visibility_map_summary('test_foreign_table'); -select pg_check_frozen('test_foreign_table'); -select pg_truncate_visibility_map('test_foreign_table'); - -- check some of the allowed relkinds create table regular_table (a int); insert into regular_table values (1), (2); @@ -76,8 +66,5 @@ select pg_truncate_visibility_map('test_partition'); drop table test_partitioned; drop view test_view; drop sequence test_sequence; -drop foreign table test_foreign_table; -drop server dummy_server; -drop foreign data wrapper dummy; drop materialized view matview_visibility_test; drop table regular_table; |