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

Commit04910a3

Browse files
committed
Put back gistgettuple's check for backwards scan request.
On reflection it's a bad idea for the KNNGIST patch to have removed that.We don't want it silently returning incorrect answers.
1 parent5545068 commit04910a3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/backend/access/gist/gistget.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,8 +459,12 @@ Datum
459459
gistgettuple(PG_FUNCTION_ARGS)
460460
{
461461
IndexScanDescscan= (IndexScanDesc)PG_GETARG_POINTER(0);
462+
ScanDirectiondir= (ScanDirection)PG_GETARG_INT32(1);
462463
GISTScanOpaqueso= (GISTScanOpaque)scan->opaque;
463464

465+
if (dir!=ForwardScanDirection)
466+
elog(ERROR,"GiST only supports forward scan direction");
467+
464468
if (!so->qual_ok)
465469
PG_RETURN_BOOL(false);
466470

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp