mirror of https://github.com/citusdata/citus.git
drop database objects with regards to shardgroups
parent
27c44ef216
commit
6289acc872
|
@ -13,7 +13,7 @@ ALTER TABLE citus.pg_dist_shardgroup SET SCHEMA pg_catalog;
|
||||||
CREATE SEQUENCE citus.pg_dist_shardgroupid_seq
|
CREATE SEQUENCE citus.pg_dist_shardgroupid_seq
|
||||||
MINVALUE 100000 -- TO BO DECIDED
|
MINVALUE 100000 -- TO BO DECIDED
|
||||||
NO CYCLE;
|
NO CYCLE;
|
||||||
ALTER SEQUENCE citus.pg_dist_shardgroupid_seq SET SCHEMA pg_catalog;
|
ALTER SEQUENCE citus.pg_dist_shardgroupid_seq SET SCHEMA pg_catalog;
|
||||||
|
|
||||||
INSERT INTO pg_catalog.pg_dist_shardgroup
|
INSERT INTO pg_catalog.pg_dist_shardgroup
|
||||||
SELECT min(shardid) as shardgroupid,
|
SELECT min(shardid) as shardgroupid,
|
||||||
|
|
|
@ -1,2 +1,12 @@
|
||||||
-- citus--11.3-1--11.2-1
|
-- citus--11.3-1--11.2-1
|
||||||
-- this is an empty downgrade path since citus--11.2-1--11.3-1.sql is empty for now
|
-- this is an empty downgrade path since citus--11.2-1--11.3-1.sql is empty for now
|
||||||
|
DROP TABLE pg_catalog.pg_dist_shardgroup;
|
||||||
|
DROP SEQUENCE citus.pg_dist_shardgroupid_seq;
|
||||||
|
|
||||||
|
ALTER TABLE pg_catalog.pg_dist_shard DROP COLUMN shardgroupid;
|
||||||
|
|
||||||
|
DROP FUNCTION pg_catalog.citus_internal_add_shard_metadata(regclass, bigint, "char", text, text, bigint);
|
||||||
|
#include "udfs/citus_internal_add_shard_metadata/10.2-1.sql"
|
||||||
|
|
||||||
|
DROP FUNCTION pg_catalog.citus_internal_add_shardgroup_metadata(bigint, integer, text, text);
|
||||||
|
DROP FUNCTION FUNCTION pg_catalog.citus_internal_delete_shardgroup_metadata(bigint, int);
|
||||||
|
|
Loading…
Reference in New Issue