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

Commite47984e

Browse files
committed
Reset tuple sort for Postgres 12 [skip ci]
1 parentda7d395 commite47984e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎src/ivfscan.c‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,15 @@ ivfflatrescan(IndexScanDesc scan, ScanKey keys, int nkeys, ScanKey orderbys, int
292292
{
293293
IvfflatScanOpaqueso= (IvfflatScanOpaque)scan->opaque;
294294

295-
#ifPG_VERSION_NUM >=130000
296295
if (!so->first)
296+
{
297+
#ifPG_VERSION_NUM >=130000
297298
tuplesort_reset(so->sortstate);
299+
#else
300+
tuplesort_end(so->sortstate);
301+
so->sortstate=InitScanSortState(so->tupdesc);
298302
#endif
303+
}
299304

300305
so->first= true;
301306
pairingheap_reset(so->listQueue);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp