pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Aleksey M Boltenkov <holybolt@rambler.ru>
Cc: pgsql-general@postgresql.org
Subject: Re: bug in psql?
Date: Sat, 15 Aug 2020 01:56:32 -0400
Message-ID: <849647.1597470992@sss.pgh.pa.us> (raw)
In-Reply-To: <1597469729.11420.19912.20756@mail.rambler.ru>
References: <1597469729.11420.19912.20756@mail.rambler.ru>

"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





view thread (10+ messages)  latest in thread

Message-ID: <849647.1597470992@sss.pgh.pa.us>
Permalink:  ../849647.1597470992@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/849647.1597470992@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, holybolt@rambler.ru
  Subject: Re: bug in psql?
  In-Reply-To: <849647.1597470992@sss.pgh.pa.us>
  References: <1597469729.11420.19912.20756@mail.rambler.ru> <849647.1597470992@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox