Re: Command Line option misunderstanding - Mailing list pgsql-novice

From Joe Conway
Subject Re: Command Line option misunderstanding
Date
Msg-id 5b83c211-e5aa-42e1-a3c9-29b455ddd763@joeconway.com
Whole thread Raw
In response to Command Line option misunderstanding  (punch-hassle-guise@duck.com)
List pgsql-novice
On 12/2/24 13:47, punch-hassle-guise@duck.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



pgsql-novice by date:

Previous
From: punch-hassle-guise@duck.com
Date:
Subject: Command Line option misunderstanding
Next
From: Laurenz Albe
Date:
Subject: Re: Command Line option misunderstanding