Re: wCTE: why not finish sub-updates at the end, not the beginning? - Mailing list pgsql-hackers

From Greg Stark
Subject Re: wCTE: why not finish sub-updates at the end, not the beginning?
Date
Msg-id AANLkTi=cNoh8Ww7YOtekqvbTq4HbqQv4LQPwzmdSsRem@mail.gmail.com
Whole thread Raw
In response to Re: wCTE: why not finish sub-updates at the end, not the beginning?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: wCTE: why not finish sub-updates at the end, not the beginning?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Sat, Feb 26, 2011 at 5:55 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> So we really need some refactoring here.  I dislike adding another
> fundamental step to the ExecutorStart/ExecutorRun/ExecutorEnd sequence,
> but there may not be a better way.  The only way I see to fix this
> without changing that API is to have ExecutorRun do the cleanup
> processing just after the top plan node returns a null tuple, and that
> seems a bit ugly as well.
>

How would that handle the case of a cursor which isn't read to
completion? Should it still execute the CTEs to completion?

--
greg


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Keywords in pg_hba.conf should be field-specific
Next
From: Rod Taylor
Date:
Subject: Re: WIP: cross column correlation ...