Re: More on cursors in 7.3 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: More on cursors in 7.3
Date
Msg-id 25367.1039386502@sss.pgh.pa.us
Whole thread Raw
In response to Re: More on cursors in 7.3  ("Jeroen T. Vermeulen" <jtv@xs4all.nl>)
Responses Re: More on cursors in 7.3
List pgsql-hackers
"Jeroen T. Vermeulen" <jtv@xs4all.nl> writes:
> Now if I understood a bit more of what's going on here, at least I could
> document it...

Well, you could dig through backend/executor/node*.c and see which of
the node types pay attention to es_direction.  To a first approximation
it looks like these do:

Functionscan
Append
Indexscan
Mergejoin
Limit
Material
Subqueryscan
Seqscan
Sort
Tidscan

although I have not thought about which other upper plan nodes might be
okay (ie, they're safe if their input nodes are).  Also, a Material or
Sort node will hide any direction-unsafety in its input.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Vince Vielhaber
Date:
Subject: Re: [GENERAL] PostgreSQL Global Development Group
Next
From: Vince Vielhaber
Date:
Subject: Re: [GENERAL] PostgreSQL Global Development Group