mirror of https://github.com/citusdata/citus.git
Delete PG version_above_ten alternative test outputs (#6111)
parent
0a04b115aa
commit
f9b02946b1
|
@ -5,7 +5,6 @@
|
||||||
/multi_agg_distinct.out
|
/multi_agg_distinct.out
|
||||||
/multi_agg_type_conversion.out
|
/multi_agg_type_conversion.out
|
||||||
/multi_alter_table_statements.out
|
/multi_alter_table_statements.out
|
||||||
/multi_alter_table_statements_0.out
|
|
||||||
/multi_behavioral_analytics_create_table.out
|
/multi_behavioral_analytics_create_table.out
|
||||||
/multi_behavioral_analytics_create_table_superuser.out
|
/multi_behavioral_analytics_create_table_superuser.out
|
||||||
/multi_complex_count_distinct.out
|
/multi_complex_count_distinct.out
|
||||||
|
@ -14,7 +13,6 @@
|
||||||
/multi_load_data_superuser.out
|
/multi_load_data_superuser.out
|
||||||
/multi_load_more_data.out
|
/multi_load_more_data.out
|
||||||
/multi_multiuser_load_data.out
|
/multi_multiuser_load_data.out
|
||||||
/multi_multiuser_load_data_0.out
|
|
||||||
/multi_mx_copy_data.out
|
/multi_mx_copy_data.out
|
||||||
/multi_outer_join.out
|
/multi_outer_join.out
|
||||||
/multi_outer_join_reference.out
|
/multi_outer_join_reference.out
|
||||||
|
|
|
@ -2,10 +2,6 @@
|
||||||
-- MULTI_ALTER_TABLE_STATEMENTS
|
-- MULTI_ALTER_TABLE_STATEMENTS
|
||||||
--
|
--
|
||||||
|
|
||||||
-- this test has different output per version
|
|
||||||
SHOW server_version \gset
|
|
||||||
SELECT substring(:'server_version', '\d+')::int > 10 AS version_above_ten;
|
|
||||||
|
|
||||||
ALTER SEQUENCE pg_catalog.pg_dist_shardid_seq RESTART 220000;
|
ALTER SEQUENCE pg_catalog.pg_dist_shardid_seq RESTART 220000;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -8,9 +8,6 @@
|
||||||
-- the shard placement policy to the local-node-first policy as other regression
|
-- the shard placement policy to the local-node-first policy as other regression
|
||||||
-- tests expect the placements to be in that order.
|
-- tests expect the placements to be in that order.
|
||||||
|
|
||||||
SHOW server_version \gset
|
|
||||||
SELECT substring(:'server_version', '\d+')::int > 10 AS version_above_ten;
|
|
||||||
|
|
||||||
SET citusdb.shard_placement_policy TO 'local-node-first';
|
SET citusdb.shard_placement_policy TO 'local-node-first';
|
||||||
|
|
||||||
-- load as superuser
|
-- load as superuser
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
--
|
--
|
||||||
-- MULTI_ALTER_TABLE_STATEMENTS
|
-- MULTI_ALTER_TABLE_STATEMENTS
|
||||||
--
|
--
|
||||||
-- this test has different output per version
|
|
||||||
SHOW server_version \gset
|
|
||||||
SELECT substring(:'server_version', '\d+')::int > 10 AS version_above_ten;
|
|
||||||
version_above_ten
|
|
||||||
-------------------
|
|
||||||
t
|
|
||||||
(1 row)
|
|
||||||
|
|
||||||
ALTER SEQUENCE pg_catalog.pg_dist_shardid_seq RESTART 220000;
|
ALTER SEQUENCE pg_catalog.pg_dist_shardid_seq RESTART 220000;
|
||||||
-- Check that we can run ALTER TABLE statements on distributed tables.
|
-- Check that we can run ALTER TABLE statements on distributed tables.
|
||||||
-- We set the shardid sequence here so that the shardids in this test
|
-- We set the shardid sequence here so that the shardids in this test
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -6,13 +6,6 @@
|
||||||
-- citusdb.shard_max_size. These values are manually set in pg_regress.c. We also set
|
-- citusdb.shard_max_size. These values are manually set in pg_regress.c. We also set
|
||||||
-- the shard placement policy to the local-node-first policy as other regression
|
-- the shard placement policy to the local-node-first policy as other regression
|
||||||
-- tests expect the placements to be in that order.
|
-- tests expect the placements to be in that order.
|
||||||
SHOW server_version \gset
|
|
||||||
SELECT substring(:'server_version', '\d+')::int > 10 AS version_above_ten;
|
|
||||||
version_above_ten
|
|
||||||
-------------------
|
|
||||||
t
|
|
||||||
(1 row)
|
|
||||||
|
|
||||||
SET citusdb.shard_placement_policy TO 'local-node-first';
|
SET citusdb.shard_placement_policy TO 'local-node-first';
|
||||||
-- load as superuser
|
-- load as superuser
|
||||||
\copy lineitem FROM '@abs_srcdir@/data/lineitem.1.data' with delimiter '|'
|
\copy lineitem FROM '@abs_srcdir@/data/lineitem.1.data' with delimiter '|'
|
||||||
|
|
|
@ -1,39 +0,0 @@
|
||||||
--
|
|
||||||
-- MULTI_MULTIUSER_LOAD_DATA
|
|
||||||
--
|
|
||||||
-- Tests for loading data in a distributed cluster. Please note that the number
|
|
||||||
-- of shards uploaded depends on two config values: citusdb.shard_replication_factor and
|
|
||||||
-- citusdb.shard_max_size. These values are manually set in pg_regress.c. We also set
|
|
||||||
-- the shard placement policy to the local-node-first policy as other regression
|
|
||||||
-- tests expect the placements to be in that order.
|
|
||||||
SHOW server_version \gset
|
|
||||||
SELECT substring(:'server_version', '\d+')::int > 10 AS version_above_ten;
|
|
||||||
version_above_ten
|
|
||||||
-------------------
|
|
||||||
f
|
|
||||||
(1 row)
|
|
||||||
|
|
||||||
SET citusdb.shard_placement_policy TO 'local-node-first';
|
|
||||||
-- load as superuser
|
|
||||||
\copy lineitem FROM '@abs_srcdir@/data/lineitem.1.data' with delimiter '|'
|
|
||||||
-- as user with ALL access
|
|
||||||
SET ROLE full_access;
|
|
||||||
\copy lineitem FROM '@abs_srcdir@/data/lineitem.2.data' with delimiter '|'
|
|
||||||
RESET ROLE;
|
|
||||||
-- as user with SELECT access, should fail
|
|
||||||
SET ROLE read_access;
|
|
||||||
\copy lineitem FROM '@abs_srcdir@/data/lineitem.2.data' with delimiter '|'
|
|
||||||
ERROR: permission denied for relation lineitem
|
|
||||||
RESET ROLE;
|
|
||||||
-- as user with no access, should fail
|
|
||||||
SET ROLE no_access;
|
|
||||||
\copy lineitem FROM '@abs_srcdir@/data/lineitem.2.data' with delimiter '|'
|
|
||||||
ERROR: permission denied for relation lineitem
|
|
||||||
RESET ROLE;
|
|
||||||
SET ROLE full_access;
|
|
||||||
\copy orders FROM '@abs_srcdir@/data/orders.1.data' with delimiter '|'
|
|
||||||
\copy orders FROM '@abs_srcdir@/data/orders.2.data' with delimiter '|'
|
|
||||||
\copy customer FROM '@abs_srcdir@/data/customer.1.data' with delimiter '|'
|
|
||||||
\copy nation FROM '@abs_srcdir@/data/nation.data' with delimiter '|'
|
|
||||||
\copy part FROM '@abs_srcdir@/data/part.data' with delimiter '|'
|
|
||||||
\copy supplier FROM '@abs_srcdir@/data/supplier.data' with delimiter '|'
|
|
Loading…
Reference in New Issue