Skip to content

Commit 9476927

Browse files
committed
miscellaneous fixes
1 parent e710bbf commit 9476927

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/nodes_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ get_partitioned_attr_clauses(List *restrictinfo_list,
259259
Index partitioned_rel)
260260
{
261261
#define AdjustAttno(attno) \
262-
( (AttrNumber) (part_attno + FirstLowInvalidHeapAttributeNumber) )
262+
( (AttrNumber) (attno + FirstLowInvalidHeapAttributeNumber) )
263263

264264
List *result = NIL;
265265
ListCell *l;

src/pg_pathman.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,7 @@ append_child_relation(PlannerInfo *root, RelOptInfo *rel, Index rti,
544544
/* Recalc parent relation tuples count */
545545
rel->tuples += childrel->tuples;
546546

547+
/* Close child relations, but keep locks */
547548
heap_close(newrelation, NoLock);
548549

549550

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy