Re: lastval()

Поиск
Список
Период
Сортировка
От Dennis Bjorklund
Тема Re: lastval()
Дата
Msg-id Pine.LNX.4.44.0506060757450.7072-100000@zigo.dhs.org
обсуждение исходный текст
Ответ на Re: lastval()  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
On Mon, 6 Jun 2005, Tom Lane wrote:

> You could fix that by remembering exactly which sequence produced
> the lastval and checking its permissions ...

That is what the implementation does. Instead of remembering the last
value it rememebers the last sequence (and it contains the last value for
that sequence).

The very reason for doing that in the first place was to mimic currval()
as much as possible wrt rights and existence of the sequence.

--
/Dennis Björklund


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: lastval()
Следующее
От: ITAGAKI Takahiro
Дата:
Сообщение: Memory leak in BootStrapXLOG()