Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move view creation in setup.repair inside if #6052

Merged
merged 1 commit into from
Sep 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion test/sql/updates/setup.repair.sql
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ INSERT INTO repair_test_date VALUES
ALTER TABLE _timescaledb_catalog.chunk_constraint
DROP CONSTRAINT chunk_constraint_dimension_slice_id_fkey;

\if :test_repair_dimension

CREATE VIEW slices AS (
SELECT ch.hypertable_id,
(
Expand All @@ -88,7 +90,6 @@ CREATE VIEW slices AS (
ON di.hypertable_id = ch.hypertable_id AND attname = di.column_name
);

\if :test_repair_dimension
-- Break the first time dimension on each table. These are different
-- depending on the time type for the table and we need to check all
-- versions.
Expand Down