From: | Joe Conway <mail(at)joeconway(dot)com> |
---|---|
To: | punch-hassle-guise(at)duck(dot)com, pgsql-novice(at)lists(dot)postgresql(dot)org |
Subject: | Re: Command Line option misunderstanding |
Date: | 2024-12-02 20:12:34 |
Message-ID: | 5b83c211-e5aa-42e1-a3c9-29b455ddd763@joeconway.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
On 12/2/24 13:47, punch-hassle-guise(at)duck(dot)com 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
From | Date | Subject | |
---|---|---|---|
Next Message | Laurenz Albe | 2024-12-02 20:13:28 | Re: Command Line option misunderstanding |
Previous Message | punch-hassle-guise | 2024-12-02 18:47:22 | Command Line option misunderstanding |