X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B444E52D81 for ; Thu, 14 Jul 2005 13:02:11 -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 24655-08 for ; Thu, 14 Jul 2005 16:02:03 +0000 (GMT) Received: from candle.pha.pa.us (candle.pha.pa.us [64.139.89.126]) by svr1.postgresql.org (Postfix) with ESMTP id 0B2E152D7C for ; Thu, 14 Jul 2005 13:02:02 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id j6EG20d15449; Thu, 14 Jul 2005 12:02:00 -0400 (EDT) From: Bruce Momjian Message-Id: <200507141602.j6EG20d15449@candle.pha.pa.us> Subject: Re: Libpq driver: thread problem In-Reply-To: To: Dave Page Date: Thu, 14 Jul 2005 12:02:00 -0400 (EDT) Cc: pgsql-odbc@postgresql.org, Anoop Kumar X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.009 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/59 X-Sequence-Number: 5525 Dave Page wrote: > > > > -----Original Message----- > > From: pgsql-odbc-owner@postgresql.org > > [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Dave Page > > Sent: 14 July 2005 12:06 > > To: pgsql-odbc@postgresql.org > > Cc: Anoop Kumar > > Subject: [ODBC] Libpq driver: thread problem > > > > One thing to note, the Windows Port of PostgreSQL has never > > worked with > > the --enable-thread-safety option. This has never been a problem for > > pgAdmin (for example), but may be here. > > After some discussion with Magnus Hagander, that is probably a red > herring. He recalls that --enable-thread-safety is needed on platforms > that don't have a thread safe API already - windows does as I'm sure you > know. I don't think that is correct --- you do need that flag for libpq to be thread safe. If the thread flag doesn't work on Win32, we need to fix it. I know we applies some patches during 8.0 beta so it _should_ work, and if it doesn't we need to add it to the TODO list or fix it. The main issue with the flag, as I remember, is to allow multiple threads to open libpq connections. If you don't do that, you don't need the flag. -- 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