Received: from mail.ngi.de ([195.243.0.227]) by hub.org (8.9.3/8.9.3) with ESMTP id DAA09234 for ; Tue, 30 Nov 1999 03:08:35 -0500 (EST) (envelope-from michael@fam-meskes.de) Received: from p3E9D3E58.dip0.t-ipconnect.de (root@p3E9D3E58.dip0.t-ipconnect.de [62.157.62.88]) by mail.ngi.de (8.9.3/8.9.3) with ESMTP id JAA85826 for ; Tue, 30 Nov 1999 09:01:06 +0100 (CET) (envelope-from michael@fam-meskes.de) Received: (from michael@localhost) by tanja.fam-meskes.de (8.9.3/8.9.0/Debian/GNU) id JAA00347 for pgsql-interfaces@postgresql.org; Mon, 29 Nov 1999 09:44:25 +0100 Date: Mon, 29 Nov 1999 09:44:24 +0100 From: Michael Meskes To: pgsql-interfaces@postgresql.org Subject: Re: [INTERFACES] ERROR: cannot find attribute 1 of relation pg_temp.460.0 Message-ID: <19991129094424.A331@fam-meskes.de> Mail-Followup-To: pgsql-interfaces@postgresql.org References: <19991128231814.A487@ultra.hr> <9171.943832726@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0i In-Reply-To: <9171.943832726@sss.pgh.pa.us>; from tgl@sss.pgh.pa.us on Sun, Nov 28, 1999 at 06:45:26PM -0500 On Sun, Nov 28, 1999 at 06:45:26PM -0500, Tom Lane wrote: > I believe this is triggered by ecpg's autocommit feature, and that > you could work around it by ensuring that at least one commit occurs > between creation of the temp table and application exit. It looks IMO the naming of autocommit is all but a good one. There is only one way to commit a transaction in ecpg and that's by issuing a COMMIT resp. END WORK statement. The only difference between the two ways of operation in ecpg is how to start a transaction. With AUTOCOMMIT set to ON a transaction is started only via a BEGIN WORK statement. Ot in other words if you do not start a transaction each statement is its own one and thus autocommitted. If AUTOCOMMIT is set to OFF ecpg always starts a new transaction after a COMMIT resp. a ROLLBACK. > like 6.5.* gets confused if it has to delete a never-yet-committed > temp table :-(. Yes, this looks like there is no commit after the create and AUTOCOMMIT is set to OFF (default). Michael -- Michael Meskes | Go SF 49ers! Th.-Heuss-Str. 61, D-41812 Erkelenz | Go Rhein Fire! Tel.: (+49) 2431/72651 | Use Debian GNU/Linux! Email: Michael@Fam-Meskes.De | Use PostgreSQL!