X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B5A13D1B220; Wed, 21 Jul 2004 12:42:56 -0300 (ADT) 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 06482-08; Wed, 21 Jul 2004 15:42:35 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id B44A0D1B1D1; Wed, 21 Jul 2004 12:42:34 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i6LFgUNK009142; Wed, 21 Jul 2004 11:42:30 -0400 (EDT) To: Oliver Jowett Cc: "pgsql-jdbc@postgresql.org" , pgsql-hackers@postgresql.org Subject: Re: V3 protocol + DECLARE problems In-reply-to: <40FD982D.2080006@opencloud.com> References: <40FD982D.2080006@opencloud.com> Comments: In-reply-to Oliver Jowett message dated "Wed, 21 Jul 2004 10:09:49 +1200" Date: Wed, 21 Jul 2004 11:42:29 -0400 Message-ID: <9141.1090424549@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/246 X-Sequence-Number: 10630 Oliver Jowett writes: > Logs follow; basically this is issuing a Parse/Bind/Execute for a > parameterized DECLARE, which blows up with "no value found for parameter > 1" despite there definitely being one there. (also, that error appears > on Execute, not Parse/Bind). This may be fixable --- I'm thinking that the problem has to do with not passing down parameters from one portal to another in a situation where they probably should be. > Any chance of getting this fixed for 7.5? I'm up to my keister in PITR and nested-xact issues and won't have time to look at it soon. Do you want to take a look and see if you can find where the ball is getting dropped? > Alternatively, if we can get WITH HOLD / SCROLL behaviour in portals > created by Execute (probably means a protocol change) that works too. This won't be salable unless we decide we really need a protocol change to support nested xacts properly. With the change to SAVEPOINT syntax the motivation for that may have diminished --- in particular I doubt that we can usefully report a nesting depth, so the urge to fool with the Z message has diminished greatly (in my mind anyway). I'd suggest looking into the parameter issue if you want to have confidence in a fix being available in 7.5. regards, tom lane