pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeremy Harris <jgh@wizmail.org>
To: pgsql-performance@postgresql.org
Subject: Re: Poor performance using CTE
Date: Thu, 22 Nov 2012 13:42:33 +0000
Message-ID: <50AE2BC9.7040207@wizmail.org> (raw)
In-Reply-To: <50AD6D16.9040608@2ndQuadrant.com>
References: <CAHyXU0xeEVX2P=HaNxPiKayEhkWp3GobgAXCQPrfsqbawXVV-w@mail.gmail.com>
	<CAGTBQpZ_Za-XSXvmPUx3F7wgeX=HB1xUpDsn+1DXY3a87YJLBQ@mail.gmail.com>
	<CAHyXU0z4oUss50vhH_wGZ-HERQe9wCMSf1nMTGNddXeCoKvVVA@mail.gmail.com>
	<CAGTBQpbf9bdJ3gjcYdw2FuPmN=dqx+wE7opsCp515cEndpGDYw@mail.gmail.com>
	<50AC1472.3050607@2ndQuadrant.com>
	<18123.1353455585@sss.pgh.pa.us>
	<50ACD166.1000507@vmware.com>
	<50ACE970.7050701@dunslane.net>
	<3396.1353509947@sss.pgh.pa.us>
	<50ACF16C.2020902@dunslane.net>
	<20121121153209.GA1271@awork2.anarazel.de>
	<50ACF658.10902@archidevsys.co.nz>
	<50ACF991.3020603@vmware.com>
	<50AD2BD1.8070206@archidevsys.co.nz>
	<50AD6D16.9040608@2ndQuadrant.com>

On 22/11/2012 00:08, Craig Ringer wrote:
> WITH
>    FENCE foo AS (SELECT ...),
>    bar AS (SELECT ...)
> SELECT * FROM bar;
>
> Are we fencing just foo? Or all expressions?
>

WITH foo AS (FENCED SELECT ...),
      bar AS (SELECT ...),
SELECT ... ;

-- 
Jeremy






view thread (36+ messages)  latest in thread

Message-ID: <50AE2BC9.7040207@wizmail.org>
Permalink:  ../50AE2BC9.7040207@wizmail.org/
Also on:    postgresql.org/message-id/50AE2BC9.7040207@wizmail.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: jgh@wizmail.org
  Subject: Re: Poor performance using CTE
  In-Reply-To: <50AE2BC9.7040207@wizmail.org>

* 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