Re: Delay INSERT

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: Delay INSERT
Дата
Msg-id 871xa670t0.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: Delay INSERT  (Dawid Kuroczko <qnex42@gmail.com>)
Список pgsql-general
Dawid Kuroczko <qnex42@gmail.com> writes:

> PostgreSQL doesn't have such issues with blocking, so only difference
> between INSERT and INSERT DELAYED from PostgreSQL's standpoint
> would be waiting and not for the result...

An insert can be blocked if there's a UNIQUE constraint and another
transaction has an insert or update pending for the same key. If the other
transaction commits you get a unique constraint violation, if it aborts your
insert succeeds.

--
greg

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

Предыдущее
От: "A. Mous"
Дата:
Сообщение: Re: Simple query takes a long time on win2K
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Extracting object source code from database to store in CVS...