Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f1CNFux83491 for ; Mon, 12 Feb 2001 18:15:56 -0500 (EST) (envelope-from Inoue@tpf.co.jp) Received: (qmail 23833 invoked from network); 12 Feb 2001 23:15:49 -0000 Received: from unknown (HELO viscomail.tpf.co.jp) (100.0.0.108) by sd2.10.0.100.in-addr.arpa with SMTP; 12 Feb 2001 23:15:49 -0000 Received: from tpf.co.jp (3d_note1 [126.0.1.61]) by viscomail.tpf.co.jp (8.8.8+Sun/8.8.8) with ESMTP id IAA03572; Tue, 13 Feb 2001 08:15:47 +0900 (JST) Message-ID: <3A886ED0.184C7B12@tpf.co.jp> Date: Tue, 13 Feb 2001 08:16:32 +0900 From: Hiroshi Inoue X-Mailer: Mozilla 4.73 [ja] (Windows NT 5.0; U) X-Accept-Language: ja MIME-Version: 1.0 To: Steve Wranovsky CC: pgsql-interfaces@postgresql.org, pgsql-odbc@postgresql.org Subject: Re: [ODBC] RE: 7.1 beta 3 Linux ODBC BEGINBehaviour References: <3976.981826245@sss.pgh.pa.us> <4.3.2.7.2.20010212102302.00bca7c0@mail.merge.com> Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/104 X-Sequence-Number: 1061 Steve Wranovsky wrote: > > >> > >> Given these considerations, I think it's a mistake for ODBC to treat > >> SELECT differently from other queries for the purpose of setting > >> transaction boundaries. > >> > > > >OK, agreed. > >However simply putting back the behabior make it impossible to call > >VACUUM in psqlodbc autocommit off mode. > > > >My idea is as follows. > > [In autocommit off mode] > > 1) All statements except STMT_TYPE_OTHER issue > > "BEGIN" if a trasaction isn't in progress. > > 2) STMT_TYPE_OTHER statements automatically issue > > "COMMIT" if a transaction is progress. > > > >Comments ? > > I now agree with point 1 above, but for point 2, I believe you should > force the user to issue a COMMIT if a transaction is in progress > when they try a VACUUM ANALYZE. I've been waiting for reply. I see. It's the simplest change. But you seem to have to change your existent your code. Or you may have to distinguish your code according to PG servers. Is it OK ? Regards, Hiroshi Inoue