Re: Incorrect cursor behaviour with gist index - Mailing list pgsql-hackers

From Teodor Sigaev
Subject Re: Incorrect cursor behaviour with gist index
Date
Msg-id 48F8F896.8030409@sigaev.ru
Whole thread Raw
In response to Re: Incorrect cursor behaviour with gist index  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Incorrect cursor behaviour with gist index
List pgsql-hackers
> Seems like a lotta work for a partial solution :-(.  Probably the path
> of least resistance is to teach the planner that only some index AMs can
> do backwards scan.  That would result in a Materialize buffer getting
> placed in front of the query if the user demanded scroll capability,
> but it would cost nothing in the more typical case where backwards scan
> isn't needed.

Probably, it will be a better solution. In this case GiST code could be 
simplified - remove support of backward scan (in any case not fully workable)

> 
> It should be sufficient to specify this in pg_am, right?  Or could the
> opclass or indexkey details affect it?

I don't see any examples where it depends on opclass or index key, that's is a 
AM property.

> 
> BTW, can GIN do backwards scan?
No, at all.

-- 
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
  WWW: http://www.sigaev.ru/
 


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Hot Standby: First integrated patch
Next
From: "Merlin Moncure"
Date:
Subject: Re: Hot Standby: First integrated patch