Re: lastval()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: lastval()
Дата
Msg-id 501.1115789296@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: lastval()  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Abhijit Menon-Sen wrote:
>> By the way, what would lastval() do if an insert trigger inserts a row
>> into a table with another serial column?

> It fails, just like it would fail now if the trigger inserted into the
> same table that used the trigger, or a rule.

If it actually *failed* that would be one thing, but the proposed
patch does not do that.  It looks more like the philosophy we usually
denigrate MySQL for, viz never fail even if you are staring a certain
application bug in the face.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: refactor index build
Следующее
От: Tom Lane
Дата:
Сообщение: Re: lastval()