Remove FDW objects from tests in pg_visibility contrib module
authorTomas Vondra <[email protected]>
Wed, 30 Aug 2017 23:18:00 +0000 (01:18 +0200)
committerTomas Vondra <[email protected]>
Wed, 30 Aug 2017 23:18:00 +0000 (01:18 +0200)
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.

contrib/pg_visibility/expected/pg_visibility.out
contrib/pg_visibility/sql/pg_visibility.sql

index f0dcb897c4bfa1b591d32daf8c5d02c3208eb5df..c914307c0e82685e9cce0a3065874f003bc18eed 100644 (file)
@@ -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;
index c2a7f1d9e421506c686cdcb420059f10ef7969ba..992a9ef88f505fc4875d3a46cde54ecacbff8f5f 100644 (file)
@@ -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;