Remove FDW objects from tests in pgstattuple contrib module
authorTomas Vondra <[email protected]>
Wed, 30 Aug 2017 23:22:13 +0000 (01:22 +0200)
committerTomas Vondra <[email protected]>
Wed, 30 Aug 2017 23:22:13 +0000 (01:22 +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/pgstattuple/expected/pgstattuple.out
contrib/pgstattuple/sql/pgstattuple.sql

index 20b5585d03a2db6e6b8bd10ce42a979a3d038901..129b29c6ecbbbf956213803a38060cd8f5d18ac5 100644 (file)
@@ -179,22 +179,6 @@ select pgstatginindex('test_view');
 ERROR:  relation "test_view" is not a GIN index
 select pgstathashindex('test_view');
 ERROR:  "test_view" is not an index
-create foreign data wrapper dummy;
-create server dummy_server foreign data wrapper dummy;
-create foreign table test_foreign_table () server dummy_server;
--- these should all fail
-select pgstattuple('test_foreign_table');
-ERROR:  "test_foreign_table" (foreign table) is not supported
-select pgstattuple_approx('test_foreign_table');
-ERROR:  "test_foreign_table" is not a table or materialized view
-select pg_relpages('test_foreign_table');
-ERROR:  "test_foreign_table" is not a table, index, materialized view, sequence, or TOAST table
-select pgstatindex('test_foreign_table');
-ERROR:  relation "test_foreign_table" is not a btree index
-select pgstatginindex('test_foreign_table');
-ERROR:  relation "test_foreign_table" is not a GIN index
-select pgstathashindex('test_foreign_table');
-ERROR:  "test_foreign_table" is not an index
 -- a partition of a partitioned table should work though
 create table test_partition partition of test_partitioned for values from (1) to (100);
 select pgstattuple('test_partition');
@@ -240,6 +224,3 @@ select pgstathashindex('test_partition_hash_idx');
 
 drop table test_partitioned;
 drop view test_view;
-drop foreign table test_foreign_table;
-drop server dummy_server;
-drop foreign data wrapper dummy;
index a8e341e35181e293f697a250805a5fcd2a3af863..8eb5fd2cf5d455c47bf45c0ac6e0ca611195a929 100644 (file)
@@ -81,17 +81,6 @@ select pgstatindex('test_view');
 select pgstatginindex('test_view');
 select pgstathashindex('test_view');
 
-create foreign data wrapper dummy;
-create server dummy_server foreign data wrapper dummy;
-create foreign table test_foreign_table () server dummy_server;
--- these should all fail
-select pgstattuple('test_foreign_table');
-select pgstattuple_approx('test_foreign_table');
-select pg_relpages('test_foreign_table');
-select pgstatindex('test_foreign_table');
-select pgstatginindex('test_foreign_table');
-select pgstathashindex('test_foreign_table');
-
 -- a partition of a partitioned table should work though
 create table test_partition partition of test_partitioned for values from (1) to (100);
 select pgstattuple('test_partition');
@@ -112,6 +101,3 @@ select pgstathashindex('test_partition_hash_idx');
 
 drop table test_partitioned;
 drop view test_view;
-drop foreign table test_foreign_table;
-drop server dummy_server;
-drop foreign data wrapper dummy;