Re: Make pg_regress print a connstring with sockdir

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Craig Ringer <craig(at)2ndquadrant(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Make pg_regress print a connstring with sockdir
Date: 2017-08-28 06:08:46
Message-ID: CAB7nPqSiAGG60LtV76=ZHVT98BY0OwHSSdo3HOhMJtnoR7jggg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Aug 28, 2017 at 2:28 PM, Craig Ringer <craig(at)2ndquadrant(dot)com> wrote:
> 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'

Yeah, I think that this is a good idea.
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Mithun Cy 2017-08-28 06:39:46 NoMovementScanDirection in heapgettup() and heapgettup_pagemode()
Previous Message Rushabh Lathia 2017-08-28 05:57:42 Re: hash partitioning based on v10Beta2