Re: How to avoid inlining subquery result columns - Mailing list pgsql-general

From Tom Lane
Subject Re: How to avoid inlining subquery result columns
Date
Msg-id 28530.1063299937@sss.pgh.pa.us
Whole thread Raw
In response to How to avoid inlining subquery result columns  (Greg Stark <gsstark@mit.edu>)
List pgsql-general
Greg Stark <gsstark@mit.edu> writes:
> I recall there was a way to defeat this optimization involving introducing an
> extra subquery layer somewhere.

I think adding "OFFSET 0" to a subquery is the simplest way to prevent
it from being flattened.

            regards, tom lane

pgsql-general by date:

Previous
From: Vivek Khera
Date:
Subject: Re: A Question About Insertions -- Performance
Next
From: Jonathan Bartlett
Date:
Subject: Re: Picture with Postgres and Delphi