Re: Delay INSERT

From: Richard Huxton <dev(at)archonet(dot)com>
To: Dawid Kuroczko <qnex42(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Delay INSERT
Date: 2005-03-23 16:49:49
Message-ID: 42419E2D.3090802@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-php

Dawid Kuroczko wrote:
> On Wed, 23 Mar 2005 14:50:47 +0000, Richard Huxton <dev(at)archonet(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tzahi Fadida 2005-03-23 16:50:46 Existence of tuples in relations and a multicolumn index.
Previous Message FERREIRA William (COFRAMI) 2005-03-23 16:43:11 postgresql max memory (pl/Perl)

Browse pgsql-php by date

  From Date Subject
Next Message Greg Stark 2005-03-23 17:02:35 Re: Delay INSERT
Previous Message Dawid Kuroczko 2005-03-23 16:34:49 Re: Delay INSERT