pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Remove no-longer-appropriate special case in psql's \conninfo co 3+ messages / 1 participants [nested] [flat]
* pgsql: Remove no-longer-appropriate special case in psql's \conninfo co @ 2018-08-03 16:21 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2018-08-03 16:21 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Remove no-longer-appropriate special case in psql's \conninfo code. \conninfo prints the results of PQhost() and some other libpq functions. It used to override the PQhost() result with the hostaddr parameter if that'd been given, but that's unhelpful when multiple hosts were listed in the connection string. Furthermore, it seems unnecessary in the wake of commit 1944cdc98, since PQhost does any useful substitution itself. So let's just remove the extra code and print PQhost()'s result without any editorialization. Back-patch to v10, as 1944cdc98 (just) was. Discussion: https://postgr.es/m/23287.1533227021@sss.pgh.pa.us Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/c7a8f786775e073a3fa785ed2842cc24f9eb6ae8 Modified Files -------------- src/bin/psql/command.c | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Remove no-longer-appropriate special case in psql's \conninfo co @ 2018-08-03 16:21 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2018-08-03 16:21 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Remove no-longer-appropriate special case in psql's \conninfo code. \conninfo prints the results of PQhost() and some other libpq functions. It used to override the PQhost() result with the hostaddr parameter if that'd been given, but that's unhelpful when multiple hosts were listed in the connection string. Furthermore, it seems unnecessary in the wake of commit 1944cdc98, since PQhost does any useful substitution itself. So let's just remove the extra code and print PQhost()'s result without any editorialization. Back-patch to v10, as 1944cdc98 (just) was. Discussion: https://postgr.es/m/23287.1533227021@sss.pgh.pa.us Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/d8b2beb269c9606513a1693ac2e21586aa693e1a Modified Files -------------- src/bin/psql/command.c | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Remove no-longer-appropriate special case in psql's \conninfo co @ 2018-08-03 16:21 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2018-08-03 16:21 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Remove no-longer-appropriate special case in psql's \conninfo code. \conninfo prints the results of PQhost() and some other libpq functions. It used to override the PQhost() result with the hostaddr parameter if that'd been given, but that's unhelpful when multiple hosts were listed in the connection string. Furthermore, it seems unnecessary in the wake of commit 1944cdc98, since PQhost does any useful substitution itself. So let's just remove the extra code and print PQhost()'s result without any editorialization. Back-patch to v10, as 1944cdc98 (just) was. Discussion: https://postgr.es/m/23287.1533227021@sss.pgh.pa.us Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/ed5d8196c0cc769f9e893a59d184ca7efa1fe20a Modified Files -------------- src/bin/psql/command.c | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2018-08-03 16:21 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-08-03 16:21 pgsql: Remove no-longer-appropriate special case in psql's \conninfo co Tom Lane <tgl@sss.pgh.pa.us> 2018-08-03 16:21 pgsql: Remove no-longer-appropriate special case in psql's \conninfo co Tom Lane <tgl@sss.pgh.pa.us> 2018-08-03 16:21 pgsql: Remove no-longer-appropriate special case in psql's \conninfo co Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox