Re: psql --no-connect option

From: "Tristan Partin" <tristan(at)neon(dot)tech>
To: "Gurjeet Singh" <gurjeet(at)singh(dot)im>, "Postgres Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: psql --no-connect option
Date: 2023-08-25 02:19:22
Message-ID: CV19L4B1RJGP.2ESS2D0JP2W78@gonk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu Aug 24, 2023 at 2:55 PM CDT, Gurjeet Singh wrote:
> Currently, psql exits if a database connection is not established when
> psql is launched.
>
> Sometimes it may be useful to launch psql without connecting to the
> database. For example, a user may choose to start psql and then pipe
> commands via stdin, one of which may eventually perform the \connect
> command. Or the user may be interested in performing operations that
> psql can perform, like setting variables etc., before optionally
> initiating a connection.

Speaking for myself, but you do bring up a fairly interesting usecase.
Is this a feature you have found yourself wanting in the past?

--
Tristan Partin
Neon (https://neon.tech)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2023-08-25 03:03:13 Re: Support run-time partition pruning for hash join
Previous Message Hayato Kuroda (Fujitsu) 2023-08-25 02:11:37 RE: [PoC] pg_upgrade: allow to upgrade publisher node