X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id B3A0DD1C958 for ; Thu, 24 Jul 2003 15:18:54 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 47047-08 for ; Thu, 24 Jul 2003 12:18:08 -0300 (ADT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 64826D1C941 for ; Thu, 24 Jul 2003 12:18:49 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id h6OFIP726909; Thu, 24 Jul 2003 11:18:25 -0400 (EDT) From: Bruce Momjian Message-Id: <200307241518.h6OFIP726909@candle.pha.pa.us> Subject: Re: libpq_r In-Reply-To: To: Peter Eisentraut Date: Thu, 24 Jul 2003 11:18:25 -0400 (EDT) Cc: Lee Kindness , Tom Lane , PostgreSQL Development X-Mailer: ELM [version 2.4ME+ PL99 (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: 200307/732 X-Sequence-Number: 41337 Peter Eisentraut wrote: > Bruce Momjian writes: > > > Now I see what you are saying, that _REENTRANT just makes it reentrant, > > _REENTRANT only makes additional functions visible in the header files, it > doesn't change any functions to behave differently. (This is not hard to > imagine, because the lack of reentrancy of most functions lies in the > public interface, and you can't change that transparently.) > > > and doesn't have a downside in terms of performance. > > It follows from the above that this is irrelevant. > > > However, notice the flags needed under Linux: > > > > THREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS" > > Those flags are bogus. You don't need any flags under Linux. Is that true for all versions of Linux? Don't we need the first one so we compile cleanly. Also, the remaining to linux settings: THREAD_LIBS="-lpthread" NEED_REENTRANT_FUNC_NAMES=yes I assume -lpthread does have an effect on the library, or does it? -- 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