Make pg_regress print a connstring with sockdir

From: Craig Ringer <craig(at)2ndquadrant(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Make pg_regress print a connstring with sockdir
Date: 2017-08-28 05:28:54
Message-ID: CAMsr+YE_suMKUpnhVez0kAk06qjjROFxGP1R=LmT7cH46wYK-Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi all

It's a pain having to find the postmaster command line to get the port
pg_regress started a server on. We print the port in the pg_regress output,
why not the socket directory / host?

How about

running on 'port=50848 host=/tmp/pg_regress-UMrcT3' with PID 16409

per the attached?

If you'd prefer nicer wording at the expense of two lines, maybe

running with PID 16409
connection string: 'port=50848 host=/tmp/blah'

--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

Attachment Content-Type Size
v1-0001-Show-sockdir-hostname-in-pg_regress-startup-outpu.patch text/x-patch 910 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Rushabh Lathia 2017-08-28 05:57:42 Re: hash partitioning based on v10Beta2
Previous Message Craig Ringer 2017-08-28 05:18:35 psql --batch