pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Joseph Krogh <andreas@visena.com>
To: Adrien NAYRAT <adrien.nayrat@anayrat.info>
Cc: pgsql-general@lists.postgresql.org
Subject: Sv: Re: Sv: Re: CTE optimization fence
Date: Wed, 27 Jun 2018 11:54:33 +0200 (CEST)
Message-ID: <VisenaEmail.24.aff6251fef9d9dce.16440a8439b@tc7-visena> (raw)
In-Reply-To: <bd64092d-ad4a-9b74-f2f8-ed750347a3dd@anayrat.info>

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;


 

view thread (2+ messages)  latest in thread

Message-ID: <VisenaEmail.24.aff6251fef9d9dce.16440a8439b@tc7-visena>
Permalink:  ../VisenaEmail.24.aff6251fef9d9dce.16440a8439b@tc7-visena/
Also on:    postgresql.org/message-id/VisenaEmail.24.aff6251fef9d9dce.16440a8439b@tc7-visena

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: andreas@visena.com, adrien.nayrat@anayrat.info
  Subject: Re: CTE optimization fence
  In-Reply-To: <VisenaEmail.24.aff6251fef9d9dce.16440a8439b@tc7-visena>
  References: <bd64092d-ad4a-9b74-f2f8-ed750347a3dd@anayrat.info> <VisenaEmail.24.aff6251fef9d9dce.16440a8439b@tc7-visena>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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