mirror of https://github.com/citusdata/citus.git
13 lines
514 B
SQL
13 lines
514 B
SQL
-- columnar--10.2-1--10.1-1.sql
|
|
|
|
-- downgrade storage for all columnar relations
|
|
SELECT citus_internal.downgrade_columnar_storage(c.oid) FROM pg_class c, pg_am a
|
|
WHERE c.relam = a.oid AND amname = 'columnar';
|
|
|
|
DROP FUNCTION citus_internal.upgrade_columnar_storage(regclass);
|
|
DROP FUNCTION citus_internal.downgrade_columnar_storage(regclass);
|
|
|
|
-- drop "first_row_number" column and the index defined on it
|
|
DROP INDEX columnar.stripe_first_row_number_idx;
|
|
ALTER TABLE columnar.stripe DROP COLUMN first_row_number;
|