Skip to content

Commit c5ba352

Browse files
committed
Fix merge confilict merging GiST ordering
2 parents fe7a11d + 62e0ade commit c5ba352

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/backend/access/gist/gistscan.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,10 @@ gistrescan(PG_FUNCTION_ARGS)
230230
{
231231
ScanKey skey = scan->keyData + i;
232232

233+
/*
234+
* Copy consistent support function to ScanKey structure
235+
* instead of function implementing filtering operator.
236+
*/
233237
fmgr_info_copy(&(skey->sk_func),
234238
&(so->giststate->consistentFn[skey->sk_attno - 1]),
235239
so->giststate->scanCxt);
@@ -299,6 +303,10 @@ gistrescan(PG_FUNCTION_ARGS)
299303
*/
300304
so->orderByTypes[i] = get_func_rettype(skey->sk_func.fn_oid);
301305

306+
/*
307+
* Copy distance support function to ScanKey structure
308+
* instead of function implementing ordering operator.
309+
*/
302310
fmgr_info_copy(&(skey->sk_func), finfo, so->giststate->scanCxt);
303311

304312
/* Restore prior fn_extra pointers, if not first time */

0 commit comments

Comments
 (0)