Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id D01D5632774 for ; Mon, 13 Jul 2009 18:57:51 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 29049-06 for ; Mon, 13 Jul 2009 18:57:35 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by mail.postgresql.org (Postfix) with ESMTP id 190AE633BF6 for ; Mon, 13 Jul 2009 18:57:41 -0300 (ADT) Received: from 125-237-255-118.jetstream.xtra.co.nz ([125.237.255.118] helo=[192.168.1.3]) by tremor.opencloud.co.nz with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1MQTWi-0003fu-OU; Tue, 14 Jul 2009 09:57:37 +1200 Message-ID: <4A5BADCF.7030001@opencloud.com> Date: Tue, 14 Jul 2009 09:57:35 +1200 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.22 (X11/20090608) MIME-Version: 1.0 To: Thomas Kellerer CC: pgsql-jdbc@postgresql.org Subject: Re: DELETE ... RETURNING References: <226a19190907131251m6c3786f5id8e8025f5c53cf66@mail.gmail.com> <4A5BAA29.9000004@opencloud.com> In-Reply-To: X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200907/29 X-Sequence-Number: 19797 Thomas Kellerer wrote: > But my understanding is, that it should print "deleted: 3", and then > iterate over the returned ids (but at least show the correct update count) You might want to turn on logLevel=2 and see what the server's actually telling us. The update count is usually just derived from the command status string, maybe something odd is happening there with DELETE .. RETURNING -O