Re: proposal: alternative psql commands quit and exit

From: Vik Fearing <vik(dot)fearing(at)2ndquadrant(dot)com>
To: KAWAMICHI Ryoji <kawamichi(at)tkl(dot)iis(dot)u-tokyo(dot)ac(dot)jp>, Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, Everaldo Canuto <everaldo(dot)canuto(at)gmail(dot)com>, Chapman Flack <chap(at)anastigmatix(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Stephen Frost <sfrost(at)snowman(dot)net>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: proposal: alternative psql commands quit and exit
Date: 2018-01-24 09:33:17
Message-ID: 1f9ba8ed-0c16-5b9e-412f-f27769a6fb91@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ryan Murphy 2018-01-24 09:41:14 Is it valid to have logical replication between 2 databases on the same postgres server?
Previous Message Fabien COELHO 2018-01-24 09:33:10 Re: Re: [HACKERS] pgbench randomness initialization