mirror of https://github.com/citusdata/citus.git
Add downgrade scripts
parent
22dcc251c3
commit
d23b8d3b8b
|
@ -1,6 +1,7 @@
|
||||||
-- citus--10.2-1--10.1-1
|
-- citus--10.2-1--10.1-1
|
||||||
|
|
||||||
#include "../../../columnar/sql/downgrades/columnar--10.2-1--10.1-1.sql"
|
#include "../../../columnar/sql/downgrades/columnar--10.2-1--10.1-1.sql"
|
||||||
|
#include "../../../timeseries/sql/downgrades/timeseries--10.2-1--10.1-1.sql"
|
||||||
|
|
||||||
DROP FUNCTION pg_catalog.stop_metadata_sync_to_node(text, integer, bool);
|
DROP FUNCTION pg_catalog.stop_metadata_sync_to_node(text, integer, bool);
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
SET search_path TO timeseries;
|
||||||
|
|
||||||
|
DROP FUNCTION pg_catalog.create_missing_partitions(regclass,timestamp with time zone,timestamp with time zone);
|
||||||
|
DROP FUNCTION pg_catalog.create_timeseries_table(regclass,interval,integer,integer,timestamp with time zone,interval,interval);
|
||||||
|
DROP FUNCTION pg_catalog.drop_timeseries_table(regclass);
|
||||||
|
DROP FUNCTION pg_catalog.get_missing_partition_ranges(regclass,timestamp with time zone,timestamp with time zone);
|
||||||
|
|
||||||
|
DROP TABLE tables;
|
||||||
|
|
||||||
|
RESET search_path;
|
||||||
|
DROP SCHEMA timeseries;
|
|
@ -94,7 +94,7 @@ FROM pg_depend AS pgd,
|
||||||
WHERE pgd.refclassid = 'pg_extension'::regclass AND
|
WHERE pgd.refclassid = 'pg_extension'::regclass AND
|
||||||
pgd.refobjid = pge.oid AND
|
pgd.refobjid = pge.oid AND
|
||||||
pge.extname = 'citus' AND
|
pge.extname = 'citus' AND
|
||||||
pgio.schema NOT IN ('pg_catalog', 'citus', 'citus_internal', 'test', 'columnar')
|
pgio.schema NOT IN ('pg_catalog', 'citus', 'citus_internal', 'test', 'columnar', 'timeseries')
|
||||||
ORDER BY 1, 2;
|
ORDER BY 1, 2;
|
||||||
type | identity
|
type | identity
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
@ -823,7 +823,7 @@ FROM pg_depend AS pgd,
|
||||||
WHERE pgd.refclassid = 'pg_extension'::regclass AND
|
WHERE pgd.refclassid = 'pg_extension'::regclass AND
|
||||||
pgd.refobjid = pge.oid AND
|
pgd.refobjid = pge.oid AND
|
||||||
pge.extname = 'citus' AND
|
pge.extname = 'citus' AND
|
||||||
pgio.schema NOT IN ('pg_catalog', 'citus', 'citus_internal', 'test', 'columnar')
|
pgio.schema NOT IN ('pg_catalog', 'citus', 'citus_internal', 'test', 'columnar', 'timeseries')
|
||||||
ORDER BY 1, 2;
|
ORDER BY 1, 2;
|
||||||
type | identity
|
type | identity
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
|
@ -221,8 +221,8 @@ ORDER BY 1;
|
||||||
function worker_save_query_explain_analyze(text,jsonb)
|
function worker_save_query_explain_analyze(text,jsonb)
|
||||||
schema citus
|
schema citus
|
||||||
schema citus_internal
|
schema citus_internal
|
||||||
schema citus_timeseries
|
|
||||||
schema columnar
|
schema columnar
|
||||||
|
schema timeseries
|
||||||
sequence columnar.storageid_seq
|
sequence columnar.storageid_seq
|
||||||
sequence pg_dist_colocationid_seq
|
sequence pg_dist_colocationid_seq
|
||||||
sequence pg_dist_groupid_seq
|
sequence pg_dist_groupid_seq
|
||||||
|
@ -230,7 +230,6 @@ ORDER BY 1;
|
||||||
sequence pg_dist_placement_placementid_seq
|
sequence pg_dist_placement_placementid_seq
|
||||||
sequence pg_dist_shardid_seq
|
sequence pg_dist_shardid_seq
|
||||||
table citus.pg_dist_object
|
table citus.pg_dist_object
|
||||||
table timeseries.tables
|
|
||||||
table columnar.chunk
|
table columnar.chunk
|
||||||
table columnar.chunk_group
|
table columnar.chunk_group
|
||||||
table columnar.options
|
table columnar.options
|
||||||
|
@ -246,6 +245,7 @@ ORDER BY 1;
|
||||||
table pg_dist_rebalance_strategy
|
table pg_dist_rebalance_strategy
|
||||||
table pg_dist_shard
|
table pg_dist_shard
|
||||||
table pg_dist_transaction
|
table pg_dist_transaction
|
||||||
|
table timeseries.tables
|
||||||
type citus.distribution_type
|
type citus.distribution_type
|
||||||
type citus.shard_transfer_mode
|
type citus.shard_transfer_mode
|
||||||
type citus_copy_format
|
type citus_copy_format
|
||||||
|
|
|
@ -92,7 +92,7 @@ FROM pg_depend AS pgd,
|
||||||
WHERE pgd.refclassid = 'pg_extension'::regclass AND
|
WHERE pgd.refclassid = 'pg_extension'::regclass AND
|
||||||
pgd.refobjid = pge.oid AND
|
pgd.refobjid = pge.oid AND
|
||||||
pge.extname = 'citus' AND
|
pge.extname = 'citus' AND
|
||||||
pgio.schema NOT IN ('pg_catalog', 'citus', 'citus_internal', 'test', 'columnar')
|
pgio.schema NOT IN ('pg_catalog', 'citus', 'citus_internal', 'test', 'columnar', 'timeseries')
|
||||||
ORDER BY 1, 2;
|
ORDER BY 1, 2;
|
||||||
|
|
||||||
|
|
||||||
|
@ -330,7 +330,7 @@ FROM pg_depend AS pgd,
|
||||||
WHERE pgd.refclassid = 'pg_extension'::regclass AND
|
WHERE pgd.refclassid = 'pg_extension'::regclass AND
|
||||||
pgd.refobjid = pge.oid AND
|
pgd.refobjid = pge.oid AND
|
||||||
pge.extname = 'citus' AND
|
pge.extname = 'citus' AND
|
||||||
pgio.schema NOT IN ('pg_catalog', 'citus', 'citus_internal', 'test', 'columnar')
|
pgio.schema NOT IN ('pg_catalog', 'citus', 'citus_internal', 'test', 'columnar', 'timeseries')
|
||||||
ORDER BY 1, 2;
|
ORDER BY 1, 2;
|
||||||
|
|
||||||
-- see incompatible version errors out
|
-- see incompatible version errors out
|
||||||
|
|
Loading…
Reference in New Issue