Re: proposal: alternative psql commands quit and exit - Mailing list pgsql-hackers

From Vik Fearing
Subject Re: proposal: alternative psql commands quit and exit
Date
Msg-id 1f9ba8ed-0c16-5b9e-412f-f27769a6fb91@2ndquadrant.com
Whole thread Raw
In response to Re: proposal: alternative psql commands quit and exit  (KAWAMICHI Ryoji <kawamichi@tkl.iis.u-tokyo.ac.jp>)
Responses Re: proposal: alternative psql commands quit and exit
List pgsql-hackers
On 01/24/2018 10:17 AM, KAWAMICHI Ryoji wrote:
> test=# select '
> test'# quit
> Use \q to quit or press control-C to clear the input buffer.
> test'# ' from t;
>  ?column? 
> ----------
>          +
>  quit    +
>  
> (1 row)

> test=# select '
> test'# \q
> test'# ' from t;
>  ?column? 
> ----------
>          +
>  \q      +
>  
> (1 row)

I haven't applied the patch, but what happens if you combine these?
From your examples, I would imagine something like this:

test=# select '
test'# quit
Use \q to quit or press control-C to clear the input buffer.
test'# \q
test'#

Surely that's not helpful.
-- 
Vik Fearing                                          +33 6 46 75 15 36
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support


pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: Re: [HACKERS] pgbench randomness initialization
Next
From: Ryan Murphy
Date:
Subject: Is it valid to have logical replication between 2 databases on thesame postgres server?