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

Commit67a0234

Browse files
Fix assertion on dereferenced object
Commit27cc7cd accidentally placed the assertion ensuringthat the pointer isn't NULL after it had already been accessed.Fix by moving the pointer dereferencing to after the assertion.Backpatch to all supported branches.Author: Dmitry Koval <d.koval@postgrespro.ru>Reviewed-by: Daniel Gustafsson <daniel@yesql.se>Reviewed-by: Michael Paquier <michael@paquier.xyz>Discussion:https://postgr.es/m/1618848d-cdc7-414b-9c03-08cf4bef4408@postgrespro.ruBackpatch-through: 13
1 parent9e17ac9 commit67a0234

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/backend/executor/execMain.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2662,13 +2662,15 @@ bool
26622662
EvalPlanQualFetchRowMark(EPQState*epqstate,Indexrti,TupleTableSlot*slot)
26632663
{
26642664
ExecAuxRowMark*earm=epqstate->relsubs_rowmark[rti-1];
2665-
ExecRowMark*erm=earm->rowmark;
2665+
ExecRowMark*erm;
26662666
Datumdatum;
26672667
boolisNull;
26682668

26692669
Assert(earm!=NULL);
26702670
Assert(epqstate->origslot!=NULL);
26712671

2672+
erm=earm->rowmark;
2673+
26722674
if (RowMarkRequiresRowShareLock(erm->markType))
26732675
elog(ERROR,"EvalPlanQual doesn't support locking rowmarks");
26742676

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp