Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TW92z-0002AL-GW for pgsql-bugs@postgresql.org; Wed, 07 Nov 2012 17:04:13 +0000 Received: from mail-la0-f46.google.com ([209.85.215.46]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TW92w-0002lS-TM for pgsql-bugs@postgresql.org; Wed, 07 Nov 2012 17:04:12 +0000 Received: by mail-la0-f46.google.com with SMTP id h6so1393026lag.19 for ; Wed, 07 Nov 2012 09:04:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:in-reply-to:references :content-type:x-mailer:content-transfer-encoding:mime-version; bh=XG1qZZphr2zwXfewc/TPeJUloWQUo1q6SC7IvKA2NLA=; b=YznVfHHxmRxSedpoPkqOGMDJD/Bt77NK66DW4YbwFwOl2WAMVC3qbMSP7Ij02u88DV u5CNvhGP/YdTSAw+ZDycW7e+mrNWO9X2JYAIs3WBkt8HhhpfytqJj0ThrHKaf42PsS+1 ctgDHA1yehDGjp1nwF/1F7TqM6C8o7fT7LJ1S/7ALgjEccThypyAR9+vdJk1ta7hWXZX eRC1Lw8rSO4ZD+AGNcQrAKk4AIgjfgIllqk7pQo/k13JiwKjGT02UKwkh/4MR/0KX5lg Y9Yf8K+uOZqjAfJlyJ17dAWCYRRcFoIOKQFhnfPmGBwMI9Ii8F1jhMcE0F5SuhrUYhMl B4EQ== Received: by 10.112.17.169 with SMTP id p9mr2180042lbd.9.1352307849898; Wed, 07 Nov 2012 09:04:09 -0800 (PST) Received: from [192.168.1.75] (dnm.58.115.126.92.dsl.krasnet.ru. [92.126.115.58]) by mx.google.com with ESMTPS id sy1sm8218985lab.16.2012.11.07.09.04.07 (version=SSLv3 cipher=OTHER); Wed, 07 Nov 2012 09:04:08 -0800 (PST) Message-ID: <1352307845.27348.16.camel@localhost> Subject: Re: PQsendQueryParams() causes prepared statement error From: Denis Feklushkin To: Tom Lane Cc: pgsql-bugs Date: Thu, 08 Nov 2012 01:04:05 +0800 In-Reply-To: <10383.1352306934@sss.pgh.pa.us> References: <1352255590.27348.11.camel@localhost> <10383.1352306934@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.2-1 Content-Transfer-Encoding: 8bit Mime-Version: 1.0 X-Pg-Spam-Score: -2.7 (--) X-Archive-Number: 201211/36 X-Sequence-Number: 34594 В Срд, 07/11/2012 в 11:48 -0500, Tom Lane пишет: > Denis Feklushkin writes: > > in 9.2.0: > > PQsendQueryParams() with multiple command statement (like "select 123; > > select 456") unexpectedly causes error: > > > "cannot insert multiple commands into a prepared statement." > > This is not a bug, it's intentional (and documented) behavior. Advise as I can override this? I am need a simple form of overlapped processing, as in manual: "the client can be handling the results of one command while the server is still working on later queries in the same command string."