pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedSv: Re: CTE optimization fence
2+ messages / 2 participants
[nested] [flat]
* Sv: Re: CTE optimization fence
@ 2018-06-27 07:58 Andreas Joseph Krogh <andreas@visena.com>
2018-06-27 09:44 ` Re: Sv: Re: CTE optimization fence Adrien NAYRAT <adrien.nayrat@anayrat.info>
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Joseph Krogh @ 2018-06-27 07:58 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
På onsdag 27. juni 2018 kl. 07:45:25, skrev Thomas Kellerer <spam_eater@gmx.net
<mailto:spam_eater@gmx.net>>:
Tom Lane schrieb am 27.06.2018 um 05:48:
>> I see there was some discussion last year about removing the CTE
>> optimization fence (e.g.
>> http://www.postgresql-archive.org/CTE-inlining-td5958992.html) but can't
>> find anything more recent. Does anyone know if this is still under
>> consideration?
>
> but we have to settle on a way of controlling it.
+1 from me.
I am running more and more into situations where people consider this a bug
rather than a feature.
FWIW, I think a GUC that switches between the current (mostly unwanted, at
least surprising)
way and one where the CTE is optimized together with the main query would
suit "most" people.
For sake of compatibility this could default to the current behaviour
+1 from me. The default should be "no fence" for sake of least surprise I
think. Documenting the change would be sufficient.
I hope this will be picked up in the comming V12-cycle.
-- Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963
andreas@visena.com <mailto:andreas@visena.com>
www.visena.com <https://www.visena.com;
<https://www.visena.com;
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Sv: Re: CTE optimization fence
2018-06-27 07:58 Sv: Re: CTE optimization fence Andreas Joseph Krogh <andreas@visena.com>
@ 2018-06-27 09:44 ` Adrien NAYRAT <adrien.nayrat@anayrat.info>
0 siblings, 0 replies; 2+ messages in thread
From: Adrien NAYRAT @ 2018-06-27 09:44 UTC (permalink / raw)
To: Andreas Joseph Krogh <andreas@visena.com>; pgsql-general@lists.postgresql.org
On 06/27/2018 09:58 AM, Andreas Joseph Krogh wrote:
> >
> > but we have to settle on a way of controlling it.
>
> +1 from me.
>
> I am running more and more into situations where people consider
> this a bug rather than a feature.
>
> FWIW, I think a GUC that switches between the current (mostly
> unwanted, at least surprising)
> way and one where the CTE is optimized together with the main query
> would suit "most" people.
>
> For sake of compatibility this could default to the current behaviour
>
> +1 from me. The default should be "no fence" for sake of least surprise
> I think. Documenting the change would be sufficient.
> I hope this will be picked up in the comming V12-cycle.
FYI this subject has been discussed in this thread :
https://www.postgresql.org/message-id/5351711493487900%40web53g.yandex.ru
Regards,
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-06-27 09:44 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-06-27 07:58 Sv: Re: CTE optimization fence Andreas Joseph Krogh <andreas@visena.com>
2018-06-27 09:44 ` Adrien NAYRAT <adrien.nayrat@anayrat.info>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox