Re: 'alternatives'

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 'alternatives'
Дата
Msg-id 18562.1354143015@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: 'alternatives'  (Andres Freund <andres@anarazel.de>)
Список pgsql-general
Andres Freund <andres@anarazel.de> writes:
> The commit introducing this is:
> http://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=bd3daddaf232d95b0c9ba6f99b0170a0147dd8af
> What that does to add hashing support for IN(). But hashing can be
> pessimal in comparison to a explicit check if only a few values come in,
> so this can be checked at runtime after the above commit...

Yeah.  If you look at the subplans, one is designed for retail probes
and the other is designed for sucking up the entire subquery result into
a hashtable.  EXPLAIN ANALYZE will show you that only one gets used at
runtime.  (The idea of dynamic switchover hasn't gotten anywhere yet.)

            regards, tom lane


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

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Updateable VIEWS and the manual
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_listening_channels()