Commit Graph

4 Commits (a1adc06e74703e98490196c84ed8d5ccf785dbb9)

Author SHA1 Message Date
Yanwen Jin a1adc06e74 Delete whitespace at end of lines 2022-05-25 08:22:42 -07:00
Yanwen Jin e869fb3be1 Fix whitespace style issues 2022-05-25 08:22:42 -07:00
Yanwen Jin b2681564d5 Support upgrade and downgrade for current citus customer 2022-05-25 08:22:41 -07:00
Önder Kalacı c2311b4c0c
Make (columnar.stripe) first_row_number index a unique constraint (#5324)
* Make (columnar.stripe) first_row_number index a unique constraint

Since stripe_first_row_number_idx is required to scan a columnar
table, we need to make sure that it is created before doing anything
with columnar tables during pg upgrades.

However, a plain btree index is not a dependency of a table, so
pg_upgrade cannot guarantee that stripe_first_row_number_idx gets
created when creating columnar.stripe, unless we make it a unique
"constraint".

To do that, drop stripe_first_row_number_idx and create a unique
constraint with the same name to keep the code change at minimum.

* Add more pg upgrade tests for columnar

* Fix a logic error in uprade_columnar_after test

Co-authored-by: Onur Tirtir <onurcantirtir@gmail.com>
2021-09-30 10:51:56 +03:00