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

Commit d7a6f46

Browse files
author
Commitfest Bot
committed
[CF 4564] v9 - Reducing memory consumed by RestrictInfo list translations in partitionwise join planning
This branch was automatically generated by a robot using patches from an email thread registered at: https://commitfest.postgresql.org/patch/4564 The branch will be overwritten each time a new patch version is posted to the thread, and also periodically to check for bitrot caused by changes on the master branch. Patch(es): https://www.postgresql.org/message-id/CA+HiwqH8OaVD8LOpON=h3UyzXBwj=hHzTF_46DGvoeXzRrkx9A@mail.gmail.com Author(s): Ashutosh Bapat
2 parents a7187c3 + bbbe3d4 commit d7a6f46

File tree

7 files changed

+389
-77
lines changed

7 files changed

+389
-77
lines changed

src/backend/nodes/outfuncs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,8 @@ _outEquivalenceClass(StringInfo str, const EquivalenceClass *node)
467467
WRITE_OID_FIELD(ec_collation);
468468
WRITE_NODE_FIELD(ec_members);
469469
WRITE_NODE_FIELD(ec_sources);
470-
WRITE_NODE_FIELD(ec_derives);
470+
/* Only ec_derives_list is written; hash is not serialized. */
471+
WRITE_NODE_FIELD(ec_derives_list);
471472
WRITE_BITMAPSET_FIELD(ec_relids);
472473
WRITE_BOOL_FIELD(ec_has_const);
473474
WRITE_BOOL_FIELD(ec_has_volatile);

src/backend/optimizer/path/costsize.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5848,7 +5848,8 @@ get_foreign_key_join_selectivity(PlannerInfo *root,
58485848
if (ec && ec->ec_has_const)
58495849
{
58505850
EquivalenceMember *em = fkinfo->fk_eclass_member[i];
5851-
RestrictInfo *rinfo = find_derived_clause_for_ec_member(ec,
5851+
RestrictInfo *rinfo = find_derived_clause_for_ec_member(root,
5852+
ec,
58525853
em);
58535854

58545855
if (rinfo)

0 commit comments

Comments
 (0)