Re: bug in psql? - Mailing list pgsql-general

From Tom Lane
Subject Re: bug in psql?
Date
Msg-id 849647.1597470992@sss.pgh.pa.us
Whole thread Raw
In response to bug in psql?  ("Aleksey M Boltenkov" <holybolt@rambler.ru>)
Responses RE: bug in psql?
List pgsql-general
"Aleksey M Boltenkov" <holybolt@rambler.ru> writes:
> Is this a bug?

> pg01:5432 postgres@db=# select 'any expression'any expression\d+;

No.  The "\d+;" is taken as a backslash command, and is executed.
The rest of what you typed is still waiting in the query buffer.

It's bit weird perhaps, since \d seems like a "do-something"
command rather than a query buffer editing command.  But
psql uses the same rules for both cases.

            regards, tom lane



pgsql-general by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: bug in psql?
Next
From: "Aleksey M Boltenkov"
Date:
Subject: RE: bug in psql?