Re: combine SQL SELECT statements into one

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: combine SQL SELECT statements into one
Дата
Msg-id dcc563d11002011225p80b1af7ta400155584e1f1fb@mail.gmail.com
обсуждение исходный текст
Ответ на Re: combine SQL SELECT statements into one  ("Igor Neyman" <ineyman@perceptron.com>)
Список 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 по дате отправления:

Предыдущее
От: frank joerdens
Дата:
Сообщение: Locking referenced table when creating and dropping tables with foreign key constraints
Следующее
От: Chris.Ellis@shropshire.gov.uk
Дата:
Сообщение: Re: combine SQL SELECT statements into one