Content-Length: 266146 | pFad | http://github.com/postgrespro/rum/commit/337b60ed2e3e64ec229641c8d72d55b818c3db31

C8 [PGPRO-11557] Fix infinite loop with multiple ORDER BY in RUM scan · postgrespro/rum@337b60e · GitHub
Skip to content

Commit 337b60e

Browse files
mkharitonovMikhail Kharitonov
authored andcommitted
[PGPRO-11557] Fix infinite loop with multiple ORDER BY in RUM scan
1 parent cbf80ab commit 337b60e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/rumget.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1741,7 +1741,11 @@ entryFindItem(RumState * rumstate, RumScanEntry entry, RumItem * item, Snapshot
17411741
{
17421742
if (compareRumItemScanDirection(rumstate, entry->attnumOrig,
17431743
entry->scanDirection,
1744-
&entry->curItem, item) >= 0)
1744+
&entry->curItem, item) >= 0 &&
1745+
entry->offset >= 0 &&
1746+
entry->offset < entry->nlist &&
1747+
rumCompareItemPointers(&entry->curItem.iptr,
1748+
&entry->list[entry->offset].iptr) == 0)
17451749
return;
17461750
while (entry->offset >= 0 && entry->offset < entry->nlist)
17471751
{

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/rum/commit/337b60ed2e3e64ec229641c8d72d55b818c3db31

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy