From 14d9b37607ad30c3848ea0f2955a78436eff1268 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 9 Mar 2021 15:01:22 +0100 Subject: libpq: Remove deprecated connection parameters authtype and tty The authtype parameter was deprecated and made inactive in commit d5bbe2aca55bc8, 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 commit cb7fb3ca958ec8bd5a14e7 but most of the infrastructure around it remained in place. Author: Daniel Gustafsson Discussion: https://postgr.es/m/DDDF36F3-582A-4C02-8598-9B464CC42B34@yesql.se --- doc/src/sgml/libpq.sgml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index 6d2e86a1f59..2e0c06102ee 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -232,6 +232,11 @@ PGconn *PQsetdbLogin(const char *pghost, if it had been passed to , and the remaining parameters are then applied as specified for . + + + pgtty is no longer used and any value passed will + be ignored. + @@ -2119,10 +2124,10 @@ char *PQport(const PGconn *conn); - Returns the debug TTY of the connection. - (This is obsolete, since the server no longer pays attention - to the TTY 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 + NULL if the conn argument is + NULL. char *PQtty(const PGconn *conn); -- cgit v1.2.3