pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedSv: Re: Sv: Re: CTE optimization fence
2+ messages / 2 participants
[nested] [flat]
* Sv: Re: Sv: Re: CTE optimization fence
@ 2018-06-27 09:54 Andreas Joseph Krogh <andreas@visena.com>
2018-06-28 14:54 ` Re: Sv: Re: Sv: Re: CTE optimization fence Alvaro Herrera <alvherre@2ndquadrant.com>
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Joseph Krogh @ 2018-06-27 09:54 UTC (permalink / raw)
To: Adrien NAYRAT <adrien.nayrat@anayrat.info>; +Cc: pgsql-general@lists.postgresql.org
På onsdag 27. juni 2018 kl. 11:44:05, skrev Adrien NAYRAT <
adrien.nayrat@anayrat.info <mailto:adrien.nayrat@anayrat.info>>:
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,
I know. I hate the INLINE proposal and hope default-behaviour will be like in
other DBs, inline like sub-query as default. GUC for preserving fence is what I
hope will happen.
-- 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: Sv: Re: CTE optimization fence
2018-06-27 09:54 Sv: Re: Sv: Re: CTE optimization fence Andreas Joseph Krogh <andreas@visena.com>
@ 2018-06-28 14:54 ` Alvaro Herrera <alvherre@2ndquadrant.com>
0 siblings, 0 replies; 2+ messages in thread
From: Alvaro Herrera @ 2018-06-28 14:54 UTC (permalink / raw)
To: Andreas Joseph Krogh <andreas@visena.com>; +Cc: Adrien NAYRAT <adrien.nayrat@anayrat.info>; pgsql-general@lists.postgresql.org
On 2018-Jun-27, Andreas Joseph Krogh wrote:
> I know. I hate the INLINE proposal and hope default-behaviour will be like in
> other DBs, inline like sub-query as default. GUC for preserving fence is what I
> hope will happen.
I am probably biased ;-) but I like my proposal #1 in this email
https://www.postgresql.org/message-id/20170503173305.fetj4tz7kd56tjlr%40alvherre.pgsql
where you have to mark queries were the current behavior is desired
(WITH MATERIALIZED), and leave all other queries alone. I don't
remember any dissent on that.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-06-28 14:54 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 09:54 Sv: Re: Sv: Re: CTE optimization fence Andreas Joseph Krogh <andreas@visena.com>
2018-06-28 14:54 ` Alvaro Herrera <alvherre@2ndquadrant.com>
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