Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 6EF9F1337B61 for ; Sat, 9 Apr 2011 13:03:06 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 71747-06 for ; Sat, 9 Apr 2011 16:02:59 +0000 (UTC) X-Greylist: delayed 00:10:11.36418 by SQLgrey-1.7.6 Received: from smtp.hsia.fairmont.com (smtp.hsia.fairmont.com [142.131.15.59]) by mail.postgresql.org (Postfix) with ESMTP id 192C2133616B for ; Sat, 9 Apr 2011 13:02:58 -0300 (ADT) Received: from [71.6.53.194] (unverified [71.6.53.194]) by smtp.hsia.fairmont.com (Vircom SMTPRS 4.7.840.0) with ESMTP id ; Sat, 9 Apr 2011 11:52:16 -0400 X-Modus-BlackList: 71.6.53.194=OK;michael@fam-meskes.de=OK X-Modus-Trusted: 71.6.53.194=NO X-Modus-Audit: FALSE;0;0;0 Received: from hyperion ([142.131.207.133]) (authenticated bits=0) by [71.6.53.194] (8.13.1/8.13.1) with ESMTP id p39FqeBR025796; Sat, 9 Apr 2011 08:52:41 -0700 Received: by hyperion (Postfix, from userid 1000) id A2CF8C8135; Sat, 9 Apr 2011 17:52:41 +0200 (CEST) Date: Sat, 9 Apr 2011 17:52:41 +0200 From: Michael Meskes To: Daniel Lyons Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #5969: ecpg can't see sqlca Message-ID: <20110409155241.GA6640@hyperion.credativ.lan> References: <201104082247.p38MlWot030910@wwwmaster.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <201104082247.p38MlWot030910@wwwmaster.postgresql.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201104/50 X-Sequence-Number: 29969 On Fri, Apr 08, 2011 at 10:47:32PM +0000, Daniel Lyons wrote: > Under the current FreeBSD and the current PostgreSQL, ecpg-processed C > programs don't see the sqlca global variable. This wreaks havoc with error > handling. For example: Could you please send me the precompiled version of your test case? Do you have THREAD_SAFETY compiled into PostgreSQL? Michael -- Michael Meskes Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org) Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org Jabber: michael.meskes at googlemail dot com VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL