Skip to content

Fix crash on create statistics with non-RangeVar type (#8304) for release-13.0#8308

Open
manaldush wants to merge 1 commit into
citusdata:release-13.0from
manaldush:release-13.0_8304
Open

Fix crash on create statistics with non-RangeVar type (#8304) for release-13.0#8308
manaldush wants to merge 1 commit into
citusdata:release-13.0from
manaldush:release-13.0_8304

Conversation

@manaldush
Copy link
Copy Markdown
Contributor

Fixes #8304 for release-13.0

PG17 added this test:
CREATE STATISTICS tst ON a FROM (VALUES (x)) AS foo;

which tries to create statistics on a derived-on-the-fly table (which is
not allowed) However Citus assumes we always have a valid table when
intercepting CREATE STATISTICS command to check for Citus tables
Added a check to return early if needed.

pg17 commits: f9b41f3e1ec and e9fb314c7ad

Fixes citusdata#8304

(cherry picked from commits bb840e5,
c5dde4b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants