Re: libpq_r

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Lee Kindness <lkindness(at)csl(dot)co(dot)uk>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: libpq_r
Date: 2003-07-24 15:21:17
Message-ID: Pine.LNX.4.56.0307241716560.3595@krusty.credativ.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

--
Peter Eisentraut peter_e(at)gmx(dot)net

In response to

  • Re: libpq_r at 2003-07-24 14:44:27 from Bruce Momjian

Responses

  • Re: libpq_r at 2003-07-24 15:18:25 from Bruce Momjian
  • Re: libpq_r at 2003-07-24 15:30:10 from Larry Rosenman

Browse pgsql-hackers by date

  From Date Subject
Next Message ohp 2003-07-24 15:23:51 Re: Feature request -- Log Database Name
Previous Message Bruce Momjian 2003-07-24 15:18:25 Re: libpq_r