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

Commit4af1e53

Browse files
committed
Fix scan adjusting for marked index tuples.
1 parent3047d77 commit4af1e53

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎src/backend/access/nbtree/nbtscan.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/Attic/nbtscan.c,v 1.12 1998/01/07 21:01:54 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/Attic/nbtscan.c,v 1.13 1998/02/28 13:53:18 vadim Exp $
1111
*
1212
*
1313
* NOTES
@@ -170,6 +170,9 @@ _bt_scandel(IndexScanDesc scan, int op, BlockNumber blkno, OffsetNumber offno)
170170
tmp=*current;
171171
*current=scan->currentItemData;
172172
scan->currentItemData=tmp;
173+
so->btso_curbuf=so->btso_mrkbuf;
174+
so->btso_mrkbuf=buf;
175+
buf=so->btso_curbuf;
173176
switch (op)
174177
{
175178
caseBT_INSERT:
@@ -182,6 +185,7 @@ _bt_scandel(IndexScanDesc scan, int op, BlockNumber blkno, OffsetNumber offno)
182185
elog(ERROR,"_bt_scandel: bad operation '%d'",op);
183186
/* NOTREACHED */
184187
}
188+
so->btso_curbuf=so->btso_mrkbuf;
185189
so->btso_mrkbuf=buf;
186190
tmp=*current;
187191
*current=scan->currentItemData;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp