Re: Can I trigger an action from a coalesce ?

Поиск
Список
Период
Сортировка
От Christophe Pettus
Тема Re: Can I trigger an action from a coalesce ?
Дата
Msg-id 1D8B4F65-D170-4200-9278-1670BDE50099@thebuild.com
обсуждение исходный текст
Ответ на Re: Can I trigger an action from a coalesce ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general

> On Feb 22, 2020, at 14:36, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> The problem that I'm worried about is premature evaluation of the
> "immutable" function, causing the NOTICE to come out once during
> query planning, independently of whether/how many times it should
> come out during execution.

Ah, good point.  My solution also does assume that a DEFAULT expression is only evaluated if the default is required,
andthat behavior isn't (afaik) a promise. 

--
-- Christophe Pettus
   xof@thebuild.com




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

Предыдущее
От: "Andrus"
Дата:
Сообщение: How to get error message details from libpq based psqlODBC driver (regression)
Следующее
От: "Andrus"
Дата:
Сообщение: Re: How to fix 0xC0000005 exception in Postgres 9.0