pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dawid Kuroczko <qnex42@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Delay INSERT
Date: Wed, 23 Mar 2005 12:33:00 -0500
Message-ID: <8115.1111599180@sss.pgh.pa.us> (raw)
In-Reply-To: <758d5e7f05032308342828a03f@mail.gmail.com>
References: <20050321131047.93504.qmail@web53406.mail.yahoo.com>
	<20050321161555.GA22145@winnie.fuhr.org>
	<14435275218.20050323193122@on.kg>
	<42418247.7070108@archonet.com>
	<758d5e7f05032308342828a03f@mail.gmail.com>

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...

With the right client-side code you can transmit multiple queries before
receiving the result from the first one.  I don't think libpq in its
current incarnation really supports this, but in principle it's doable.

The interesting questions have to do with error handling: if the
"delayed" insert fails, what happens and what is the impact on
subsequent queries?  I have no idea how MySQL defines that.

			regards, tom lane



view thread (12+ messages)  latest in thread

Message-ID: <8115.1111599180@sss.pgh.pa.us>
Permalink:  ../8115.1111599180@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/8115.1111599180@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: tgl@sss.pgh.pa.us, qnex42@gmail.com, pgsql-general@postgresql.org
  Subject: Re: Delay INSERT
  In-Reply-To: <8115.1111599180@sss.pgh.pa.us>
  References: <20050321131047.93504.qmail@web53406.mail.yahoo.com> <20050321161555.GA22145@winnie.fuhr.org> <14435275218.20050323193122@on.kg> <42418247.7070108@archonet.com> <758d5e7f05032308342828a03f@mail.gmail.com> <8115.1111599180@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox