Re: Surfacing qualifiers

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: Surfacing qualifiers
Дата
Msg-id 1206566801.22579.7.camel@dell.linuxdev.us.dell.com
обсуждение исходный текст
Ответ на Re: Surfacing qualifiers  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: Surfacing qualifiers  (David Fetter <david@fetter.org>)
Re: Surfacing qualifiers  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Wed, 2008-03-26 at 14:38 -0400, Andrew Dunstan wrote:
> I'm still waiting to see an example of where you say this patch is even 
> marginally useful.

It's not hard to think of one:

SELECT * FROM remote_table() WHERE x = 5;

Applying the predicate on the remote database (pushing the predicate
below the function scan) is an elementary optimization, and in many
cases would be enormously more efficient than materializing the entire
remote table at the local site and then applying the qual there.

Certainly I agree with Tom that proper SQL/MED support requires
significant support from both the executor and the optimizer. This is
just a quick hack to take advantage of the existing predicate pushdown
logic -- I just thought it was a cute trick, not something I'd suggest
we include in mainline sources.

-Neil




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Chris Browne
Дата:
Сообщение: Re: Sending queries directly
Следующее
От: Tom Lane
Дата:
Сообщение: Timing of parameter/variable name lookup vs legacy behaviors