Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 882284b

Browse files
author
Alena Rybakina
committed
Author: Alena Rybakina <a.rybakina@postgrespro.ru>
Date: Mon Nov 27 13:16:06 2023 +0300 [PGPRO-9151] Fix an issue related to unallocated memory when we create a child rte for saving data for partition table. Tags: optimizer, pg_pathman
1 parent 35ab52f commit 882284b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/pg_pathman.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,12 @@ append_child_relation(PlannerInfo *root,
561561
#endif
562562
child_rte->inh = false;
563563

564+
#if PG_VERSION_NUM >= 140000 /* for commit 2a6fe80053 */
565+
child_rte->eclass_derive_indexes = NULL;
566+
child_rte->eclass_member_indexes = NULL;
567+
child_rte->eclass_source_indexes = NULL;
568+
#endif
569+
564570
/* Add 'child_rte' to rtable and 'root->simple_rte_array' */
565571
root->parse->rtable = lappend(root->parse->rtable, child_rte);
566572
child_rti = list_length(root->parse->rtable);

0 commit comments

Comments
 (0)