Re: lastval()

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: lastval()
Дата
Msg-id 42A3DEB1.8090702@samurai.com
обсуждение исходный текст
Ответ на Re: lastval()  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: lastval()  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
Tom Lane wrote:
> I agree with that --- consider that you couldn't actually promise that
> the sequence hadn't been dropped by the time the answer is returned,
> anyway, unless you take out a lock on the sequence first.  Which doesn't
> seem like a behavior that is wanted here.

The only objection I can see is that it arguably doesn't obey sequence
permissions: you need SELECT on a sequence to see its currval(), whereas
lastval() would return the same information without an equivalent
permission check.

-Neil

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

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