Re: Delay INSERT - Mailing list pgsql-general

From Greg Stark
Subject Re: Delay INSERT
Date
Msg-id 871xa670t0.fsf@stark.xeocode.com
Whole thread Raw
In response to Re: Delay INSERT  (Dawid Kuroczko <qnex42@gmail.com>)
List 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 by date:

Previous
From: "A. Mous"
Date:
Subject: Re: Simple query takes a long time on win2K
Next
From: Tom Lane
Date:
Subject: Re: Extracting object source code from database to store in CVS...