Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit77c7507

Browse files
committed
Fix oversight in new EvalPlanQual logic: the second loop over the ExecRowMark
list in ExecLockRows() forgot to allow for the possibility that some of therowmarks are for child tables that aren't relevant to the current row.Per report from Kenichiro Tanaka.
1 parent2dbbda0 commit77c7507

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

‎src/backend/executor/nodeLockRows.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/executor/nodeLockRows.c,v 1.5 2010/07/12 17:01:05 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/executor/nodeLockRows.c,v 1.6 2010/07/28 17:21:56 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -195,6 +195,13 @@ ExecLockRows(LockRowsState *node)
195195
HeapTupleDatatuple;
196196
Bufferbuffer;
197197

198+
/* ignore non-active child tables */
199+
if (!ItemPointerIsValid(&(erm->curCtid)))
200+
{
201+
Assert(erm->rti!=erm->prti);/* check it's child table */
202+
continue;
203+
}
204+
198205
if (EvalPlanQualGetTuple(&node->lr_epqstate,erm->rti)!=NULL)
199206
continue;/* it was updated and fetched above */
200207

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp