Re: Odd plpgsql behaviour

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Odd plpgsql behaviour
Дата
Msg-id 7985.1100532586@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Odd plpgsql behaviour  (Mike Rylander <mrylander@gmail.com>)
Список pgsql-hackers
Mike Rylander <mrylander@gmail.com> writes:
> IIRC, the reason for this is that the entire IF test is passed to the
> SQL engine as a SELECT statement after replacing the TG_* identifiers
> with their respective values.
> In this case, since OLD.name does not exist during INSERT it cannot be
> replaced.  Perhaps someone else can shed a little more light on this.

Nope, that's about all there is to say about it ...
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: GiST: PickSplit and multi-attr indexes
Следующее
От: Tom Lane
Дата:
Сообщение: Re: psql \e broken again