Re: Any idea for serializing INSERTING SERIAL column?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Any idea for serializing INSERTING SERIAL column?
Дата
Msg-id 7719.1306899272@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Any idea for serializing INSERTING SERIAL column?  (Tatsuo Ishii <ishii@postgresql.org>)
Список pgsql-hackers
Tatsuo Ishii <ishii@postgresql.org> writes:
>> Sorry, I'm not real familiar with pgpool, but have you thought about
>> using an advisory lock on the target table, instead of a "real" lock
>> (SELECT ... FOR UPDATE / LOCK table)?

> Problem with the advisory lock is, it will not work if the target
> table is empty.

(a) why not?  You could surely use the table OID as a key for the   advisory lock.
(b) advisory lock on the sequence might be better anyway.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Improve corner cases in pg_ctl's new wait-for-postmaster-startup
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PERFORM] Hash Anti Join performance degradation