public inbox for [email protected]  
help / color / mirror / Atom feed
From: Ron Johnson <[email protected]>
To: [email protected] <[email protected]>
Subject: Re: Using psql's \prompt command
Date: Thu, 30 Jan 2025 17:40:56 -0500
Message-ID: <CANzqJaAWHhkaOq5LzMUTPq38zg6D3=PGP42YjDEGdO11kRnOrQ@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<CAKFQuwbBrjF6Hx3zOo1p7=+ui=qeoZiK46-=Ov8JC=5GqvPe2A@mail.gmail.com>
	<[email protected]>

On Thu, Jan 30, 2025 at 5:28 PM Rich Shepard <[email protected]>
wrote:

> On Thu, 30 Jan 2025, David G. Johnston wrote:
>
> > Prompt isn’t your issue. Prompt stores the value into a variable. Read
> how
> > to reference variables in a psql script.
>
> David,
>
> Thank you. I'll look into using the \set command.
>

Instead of \set (which can be tricky and unintuitive), consider the dialog
command with "psql --set=NAME=VALUE".

https://linux.die.net/man/1/dialog

-- 
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!


view thread (9+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: Using psql's \prompt command
  In-Reply-To: <CANzqJaAWHhkaOq5LzMUTPq38zg6D3=PGP42YjDEGdO11kRnOrQ@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox