public inbox for [email protected]
help / color / mirror / Atom feedFrom: Joe Conway <[email protected]>
To: [email protected]
To: [email protected]
Subject: Re: Command Line option misunderstanding
Date: Mon, 2 Dec 2024 15:12:34 -0500
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
On 12/2/24 13:47, [email protected] wrote:
> It would appear that I have a fundamental misunderstanding
> of either the english language or the psql man page.
<snip>
> My attempts at implementing my understanding of man page
> and attempts at implementing what I perceive to be someones mis-writing
> of man page
>
>
> ----attempt 1--
> psql -h anna -d GT7 -v v1=12 -c 'select :v1'
I forget the details, but I think it has to do with the way "-c"
commands are processed. Try this:
echo 'select :v1' | psql -d test -v v1=42
?column?
----------
42
(1 row)
--
Joe Conway
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com
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], [email protected], [email protected]
Subject: Re: Command Line option misunderstanding
In-Reply-To: <[email protected]>
* 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