Re: experimenting with coalesce, strange EXPLAIN results

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: experimenting with coalesce, strange EXPLAIN results
Дата
Msg-id 19743.1062725530@sss.pgh.pa.us
обсуждение исходный текст
Ответ на experimenting with coalesce, strange EXPLAIN results  (Josh Goldberg <josh@4dmatrix.com>)
Список pgsql-admin
Josh Goldberg <josh@4dmatrix.com> writes:
> I was experimenting with moving some of my case logic out of the
> application and into sql and found  a strange EXPLAIN result with one of
> my COALESCE statements.  Why is each subselect listed twice?  This is in
> 7.3.4 on freebsd 4.8.

Prior to 7.4, COALESCE is just a parse-time macro for a CASE construct,
and so the items do appear twice in the CASE.

            regards, tom lane

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

Предыдущее
От: colin roald
Дата:
Сообщение: age of statistics
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Disk Utilization Increases And Time for Vacuum Increases.