From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dave Johansen <davejohansen@gmail.com>
Cc: pgsql-performance <pgsql-performance@postgresql.org>
Subject: Re: LIMIT and UNION ALL
Date: Thu, 26 May 2011 13:00:43 -0400
Message-ID: <25771.1306429243@sss.pgh.pa.us> (raw)
In-Reply-To: <BANLkTiki32HzEYh8f36p8MB5K3jTSnf5BA@mail.gmail.com>
References: <BANLkTikw+DqY+8S+5icmzfbnAE9-13pZGQ@mail.gmail.com>
<BANLkTimhKEfamSutk7HJdyVvosg7c_bpPw@mail.gmail.com>
<BANLkTiki32HzEYh8f36p8MB5K3jTSnf5BA@mail.gmail.com>
Dave Johansen <davejohansen@gmail.com> writes:
> ... So is there a way to make the
> planner perform the same sort of operation and push those same constraints
> into the sub-queries on its own?
No. As was mentioned upthread, there is a solution for this in 9.1,
although it doesn't work in exactly the way you suggest.
regards, tom lane
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: tgl@sss.pgh.pa.us, davejohansen@gmail.com
Subject: Re: LIMIT and UNION ALL
In-Reply-To: <25771.1306429243@sss.pgh.pa.us>
* 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