Skip to content

Commit 9757fb8

Browse files
committed
fix lock_rows_visitor() for non-partitioned tables
1 parent 720629c commit 9757fb8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ lock_rows_visitor(Plan *plan, void *context)
108108

109109
/* Select tableoid attributes that must be renamed */
110110
tableoids = get_tableoids_list(lock_child->targetlist);
111-
Assert(tableoids);
111+
if (!tableoids)
112+
return; /* this LockRows has nothing to do with partitioned table */
112113

113114
foreach (lc, lock_rows->rowMarks)
114115
{

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