Re: authtype parameter in libpq

Peter Eisentraut <peter.eisentraut@enterprisedb.com>

From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-03-09T14:51:41Z
Lists: pgsql-hackers
On 08.03.21 10:57, Peter Eisentraut wrote:
> On 04.03.21 16:06, Daniel Gustafsson wrote:
>> authtype is completely dead in terms of reading back the value, to the 
>> point of
>> it being a memleak if it indeed was found in as an environment variable.
>>
>>> But I tend to think we should remove them both altogether (modulo ABI 
>>> and API preservation).
>>
>> No disagreement from me, the attached takes a stab at that to get an 
>> idea what
>> it would look like.  PQtty is left to maintain API stability but the 
>> parameters
>> are removed from the conn object as thats internal to libpq.
> 
> This looks like this right idea to me.

committed, with some tweaks



Commits

  1. libpq: Remove deprecated connection parameters authtype and tty

  2. From: Phil Thompson <phil@river-bank.demon.co.uk>