mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-16 18:43:18 +08:00
PG16 will remove RelOptInfo entries from root->simple_rel_array when it considers them not needed in analyzejoins.c to prevent reprocessing them. Due to this a relation may be present in root->simple_rte_array but have no corresponding entry in root->simple_rel_array. This patch adds a check for this case. https://github.com/postgres/postgres/commit/e9a20e45