X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 65A75D1D703 for ; Tue, 16 Dec 2003 01:28:49 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 50296-07 for ; Mon, 15 Dec 2003 21:28:30 -0400 (AST) Received: from candle.pha.pa.us (candle.pha.pa.us [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 7C7C0D1D351 for ; Mon, 15 Dec 2003 21:28:20 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id hBG1SMr20109; Mon, 15 Dec 2003 20:28:22 -0500 (EST) From: Bruce Momjian Message-Id: <200312160128.hBG1SMr20109@candle.pha.pa.us> Subject: Re: Possible bug in ECPGlib thread-safety (Postgres In-Reply-To: <200312161223.30595.philip@utiba.com> To: Philip Yarra Date: Mon, 15 Dec 2003 20:28:22 -0500 (EST) Cc: Demetres Pantermalis , pgsql-interfaces@postgresql.org X-Mailer: ELM [version 2.4ME+ PL108 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/38 X-Sequence-Number: 4647 Philip Yarra wrote: > On Tue, 16 Dec 2003 12:08 pm, Bruce Momjian wrote: > > I have updated the 7.4.X does and CVS head docs to mention that ecpg SET > > CONNECTION is not thread-aware, and I have added this to the ecpg TODO: > > > > o Make SET CONNECTION thread-aware > > One thing that concerns me: I doubt this is supported in other database > systems... people who relied on this feature in ECPG would likely encounter > threading bugs if they port their code to other DBs. And threading bugs can > be nasty to find. Does anyone know how other DBs handle this issue? > > I thinks it's a worthy feature, but perhaps the pre-compiler should warn > people that they are relying on non-standard behaviour? It would cause people moving _from_ PostgreSQL, but no one does that, of course. :-) I thought the standard wasn't clear so we could do it. You have a good point, but that AT clause is annoying people. Other comments? -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073