mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
libpq: Remove deprecated connection parameters authtype and tty
The authtype parameter was deprecated and made inactive in commitd5bbe2aca5
, but the environment variable was left defined and thus tested with a getenv call even though the value is of no use. Also, if it would exist it would be copied but never freed as the cleanup code had been removed. tty was deprecated in commitcb7fb3ca95
but most of the infrastructure around it remained in place. Author: Daniel Gustafsson <daniel@yesql.se> Discussion: https://postgr.es/m/DDDF36F3-582A-4C02-8598-9B464CC42B34@yesql.se
This commit is contained in:
@ -232,6 +232,11 @@ PGconn *PQsetdbLogin(const char *pghost,
|
||||
if it had been passed to <xref linkend="libpq-PQconnectdb"/>, and the remaining
|
||||
parameters are then applied as specified for <xref linkend="libpq-PQconnectdbParams"/>.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<literal>pgtty</literal> is no longer used and any value passed will
|
||||
be ignored.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
@ -2119,10 +2124,10 @@ char *PQport(const PGconn *conn);
|
||||
|
||||
<listitem>
|
||||
<para>
|
||||
Returns the debug <acronym>TTY</acronym> of the connection.
|
||||
(This is obsolete, since the server no longer pays attention
|
||||
to the <acronym>TTY</acronym> setting, but the function remains
|
||||
for backward compatibility.)
|
||||
This function no longer does anything, but it remains for backwards
|
||||
compatibility. The function always return an empty string, or
|
||||
<symbol>NULL</symbol> if the <parameter>conn</parameter> argument is
|
||||
<symbol>NULL</symbol>.
|
||||
|
||||
<synopsis>
|
||||
char *PQtty(const PGconn *conn);
|
||||
|
Reference in New Issue
Block a user