citus/src/backend
Naisila Puka bb840e58a7
Fix crash on create statistics with non-RangeVar type (#8213)
This crash has been there for a while but wasn't tested before pg18.

PG18 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.

pg18 commit: https://github.com/postgres/postgres/commit/3eea4dc2c

Fixes #8212
2025-10-01 00:09:11 +03:00
..
columnar PG18 - register snapshot where needed (#8196) 2025-09-26 18:04:34 +03:00
distributed Fix crash on create statistics with non-RangeVar type (#8213) 2025-10-01 00:09:11 +03:00
.gitignore Initial commit of Citus 5.0 2016-02-11 04:05:32 +02:00