Re: combine SQL SELECT statements into one - Mailing list pgsql-general

From Scott Marlowe
Subject Re: combine SQL SELECT statements into one
Date
Msg-id dcc563d11002011225p80b1af7ta400155584e1f1fb@mail.gmail.com
Whole thread Raw
In response to Re: combine SQL SELECT statements into one  ("Igor Neyman" <ineyman@perceptron.com>)
List pgsql-general
On Mon, Feb 1, 2010 at 12:09 PM, Igor Neyman <ineyman@perceptron.com> wrote:
> Original poster asked for the sql that will touch inventory table only
> once.
>
> Your statement (with 3 subqueries) will do it 3 times.

I'm pretty sure that starting with 8.3 the engine will collapse all
those into one seq scan internally.

pgsql-general by date:

Previous
From: frank joerdens
Date:
Subject: Locking referenced table when creating and dropping tables with foreign key constraints
Next
From: Chris.Ellis@shropshire.gov.uk
Date:
Subject: Re: combine SQL SELECT statements into one