mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-17 11:03:36 +08:00
Modify table state is not created with an empty tables, which lead to NULL pointer evaluation. Starting from PG12 the planner injects a gating plan node above any node that has pseusdo-constant quals. To fix this, we need to check for such a gating node and handle the case. We could optionally prune the extra node, since there's already such a node below ChunkDispatch. Fixes #1883.