Re: bug in psql?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Aleksey M Boltenkov" <holybolt(at)rambler(dot)ru>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: bug in psql?
Date: 2020-08-15 05:56:32
Message-ID: 849647.1597470992@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Aleksey M Boltenkov" <holybolt(at)rambler(dot)ru> writes:
> Is this a bug?

> pg01:5432 postgres(at)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

In response to

  • bug in psql? at 2020-08-15 05:35:29 from Aleksey M Boltenkov

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Aleksey M Boltenkov 2020-08-15 06:35:00 RE: bug in psql?
Previous Message Pavel Stehule 2020-08-15 05:38:58 Re: bug in psql?