Re: libpq not reentrant - Mailing list pgsql-bugs

From Tom Lane
Subject Re: libpq not reentrant
Date
Msg-id 6626.1011368123@sss.pgh.pa.us
Whole thread Raw
In response to Re: libpq not reentrant  (Federico Di Gregorio <fog@initd.org>)
Responses Re: libpq not reentrant  (Federico Di Gregorio <fog@initd.org>)
List pgsql-bugs
Federico Di Gregorio <fog@initd.org> writes:
>> Given that as of 7.2, MD5 is the preferred password encryption method
>> and crypt() is deprecated, I'm not inclined to spend a lot of work
>> trying to develop a bulletproof autoconf procedure for making crypt
>> re-entrant.  I'm strongly inclined to just document the problem and
>> leave it at that.  Comments?

> yes. what about using crypt from DES (reentrant) if postgres is being
> linked with it?

Dunno, how would we detect that?  Is it any more portable than crypt_r?
Is it worth the trouble?

> is the MD5 stuff reentrant?

Yes.  It's all our own code, so we don't have to rely on the vagaries of
local libraries, either.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: libpq not reentrant
Next
From: Federico Di Gregorio
Date:
Subject: Re: libpq not reentrant