summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Vondra2017-08-30 23:22:13 +0000
committerTomas Vondra2017-08-30 23:22:13 +0000
commit67638229c180cbfcdac7a41d5577ee6db5cc4665 (patch)
treecd99d1b9e82d1d86905fb48a35784e9b1b0c02c1
parentaf59f510589031e22e71b6c8214944614332c225 (diff)
Remove FDW objects from tests in pgstattuple 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/pgstattuple/expected/pgstattuple.out19
-rw-r--r--contrib/pgstattuple/sql/pgstattuple.sql14
2 files changed, 0 insertions, 33 deletions
diff --git a/contrib/pgstattuple/expected/pgstattuple.out b/contrib/pgstattuple/expected/pgstattuple.out
index 20b5585d03..129b29c6ec 100644
--- a/contrib/pgstattuple/expected/pgstattuple.out
+++ b/contrib/pgstattuple/expected/pgstattuple.out
@@ -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;
diff --git a/contrib/pgstattuple/sql/pgstattuple.sql b/contrib/pgstattuple/sql/pgstattuple.sql
index a8e341e351..8eb5fd2cf5 100644
--- a/contrib/pgstattuple/sql/pgstattuple.sql
+++ b/contrib/pgstattuple/sql/pgstattuple.sql
@@ -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;