Re: Delay INSERT - Mailing list pgsql-general

From Richard Huxton
Subject Re: Delay INSERT
Date
Msg-id 42419E2D.3090802@archonet.com
Whole thread Raw
In response to Re: Delay INSERT  (Dawid Kuroczko <qnex42@gmail.com>)
List pgsql-general
Dawid Kuroczko wrote:
> On Wed, 23 Mar 2005 14:50:47 +0000, Richard Huxton <dev@archonet.com> wrote:
>
>>ON.KG wrote:
>>
>>>Does PostgreSQL have something like "INSERT DELAYD" - like it is used in
>>>MySQL?
>>>or any other way to delay inserting?
>>
>>What precisely does this do?
>
> It adds an insert into a 'do this' queue and returns.  From PostgreSQL-s
> point of view it would be equivalent of issuing INSERT and not waiting
> for the result.

OK - thanks.

> The MySQL has this mainly because when other statement such as
> SELECT or UPDATE is in progress, the INSERT would be blocked.
>
> 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...

Well, if you don't actually care whether it got inserted or not, just
throw the data away! That's got to be the quickest of all.

--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: Vernon
Date:
Subject: Command Prompt on Window version
Next
From: Tom Lane
Date:
Subject: Re: Simple query takes a long time on win2K