X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 596965356B for ; Wed, 23 Mar 2005 17:33:13 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 60220-03 for ; Wed, 23 Mar 2005 17:33:07 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 82CBF5294B for ; Wed, 23 Mar 2005 17:33:06 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j2NHX0LI008116; Wed, 23 Mar 2005 12:33:00 -0500 (EST) To: Dawid Kuroczko Cc: pgsql-general@postgresql.org Subject: Re: Delay INSERT 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> Comments: In-reply-to Dawid Kuroczko message dated "Wed, 23 Mar 2005 17:34:49 +0100" Date: Wed, 23 Mar 2005 12:33:00 -0500 Message-ID: <8115.1111599180@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.007 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/1146 X-Sequence-Number: 75461 Dawid Kuroczko 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