Re: GetLastInsertID ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: GetLastInsertID ?
Дата
Msg-id 21842.1073279950@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: GetLastInsertID ?  (Doug McNaught <doug@mcnaught.org>)
Список pgsql-general
Doug McNaught <doug@mcnaught.org> writes:
> Mike Nolan <nolan@gw.tssi.com> writes:
>> Is currval for each process maintained at the front end (e.g., the PHP or
>> psql connection) or at the back end?

The latter.

>> If the latter, isn't there always
>> the potential for memory overflows or other high-demand situations causing
>> the pairing of nextval/currval to get corrupted or lost, in which case
>> RELYING upon it for the last key value could be a source of problems.

> How, exactly, would this happen?  Is this worry based on an analysis
> of the source code, or just speculation?

Perhaps more to the point, what in the world makes you think that
storage at the front end would be safer?  The backend we have some
control over.

            regards, tom lane

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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: why the need for is null?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: altering a column