Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k6oqy-0001Yx-JG for pgsql-general@arkaria.postgresql.org; Sat, 15 Aug 2020 05:35:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k6oqw-0004Gw-8M for pgsql-general@arkaria.postgresql.org; Sat, 15 Aug 2020 05:35:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k6oqv-0004Gn-RX for pgsql-general@lists.postgresql.org; Sat, 15 Aug 2020 05:35:38 +0000 Received: from mxout1.rambler.ru ([81.19.78.100]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k6oqp-0002S4-5C for pgsql-general@postgresql.org; Sat, 15 Aug 2020 05:35:37 +0000 Received: from saddam2.rambler.ru (saddam2.rambler.ru [10.32.16.2]) by mxout1.rambler.ru (Postfix) with ESMTP id 261E0C2C171 for ; Sat, 15 Aug 2020 08:35:29 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rambler.ru; s=mail; t=1597469729; bh=TeROztlwhLe8tluVj/k/BTiLyhsuEmIiSIqfuwLnnRc=; h=From:To:Reply-To:Subject:Date; b=BGYgAiyNIWH0Acsn5+zfuiL9SW417drsLj0R9hHougivGINLTqYhFM6NMBXDGSt2e Ef1mENwFyYCzyQYK4uakavVhJpbCmwx+tgheZLYypE0tUKlfRTGD5i8WfeWZQWCo/V c0bTkHHpilwTehh2KbHW7BNHCutYr/XwrSo9T0Ew= Received: from localhost.localdomain (localhost [127.0.0.1]) by saddam2.rambler.ru (Postfix) with ESMTP id 05045C7C279 for ; Sat, 15 Aug 2020 08:35:29 +0300 (MSK) Received: from [93.123.182.191] by mail.rambler.ru with HTTP; Sat, 15 Aug 2020 08:35:29 +0300 From: "Aleksey M Boltenkov" To: pgsql-general@postgresql.org Reply-To: "Aleksey M Boltenkov" Subject: bug in psql? Date: Sat, 15 Aug 2020 08:35:29 +0300 Content-Transfer-Encoding: 7bit Content-Type: multipart/alternative; boundary="_----------=_1597469729199125" Message-Id: <1597469729.11420.19912.20756@mail.rambler.ru> MIME-Version: 1.0 X-Mailer: Rambler WebMail, http://mail.rambler.ru/ X-Rambler-User: holybolt@rambler.ru/93.123.182.191 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --_----------=_1597469729199125 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8"; format="flowed" Is this a bug? Executing of malformed (quote symbols) select in psql results in unexpected behaviour: pg01:5432 postgres@db=3D# select 'any expression'any expression\d+; List of relations Schema =E2=94=82 Name =E2=94=82 Type =E2=94=82 Owner =E2=94=82 Size =E2=94= =82 Description =E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2= =95=AA=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95= =90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90= =E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2= =95=90=E2=95=90=E2=95=AA=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95= =90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=AA=E2=95=90=E2=95=90=E2=95=90= =E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=AA=E2= =95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95= =90=E2=95=90=E2=95=90=E2=95=90=E2=95=AA=E2=95=90=E2=95=90=E2=95=90=E2=95=90= =E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2= =95=90=E2=95=90 public =E2=94=82 geography_columns =E2=94=82 view =E2=94=82 postgres =E2=94= =82 0 bytes =E2=94=82 public =E2=94=82 geometry_columns =E2=94=82 view =E2=94=82 postgres =E2=94= =82 0 bytes =E2=94=82 public =E2=94=82 pg_buffercache =E2=94=82 view =E2=94=82 postgres =E2=94=82= 0 bytes =E2=94=82 public =E2=94=82 pg_stat_statements =E2=94=82 view =E2=94=82 postgres =E2= =94=82 0 bytes =E2=94=82 public =E2=94=82 raster_columns =E2=94=82 view =E2=94=82 postgres =E2=94=82= 0 bytes =E2=94=82 public =E2=94=82 raster_overviews =E2=94=82 view =E2=94=82 postgres =E2=94= =82 0 bytes =E2=94=82 public =E2=94=82 spatial_ref_sys =E2=94=82 table =E2=94=82 postgres =E2=94= =82 4616 kB =E2=94=82 ... Aleksey M Boltenkov. --_----------=_1597469729199125 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="utf-8"
Is this a bug?

Executing= of malformed (quote symbols) select in psql results in unexpected behaviou= r:

pg01:5432 postgres@db=3D# = select 'any expression'any expression\d+;
List of relations
Schema = =E2=94=82 Name =E2=94=82 Type =E2=94=82 Owner =E2=94=82 Size =E2=94=82 Desc= ription
=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90= =E2=95=90=E2=95=AA=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2= =95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95= =90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90= =E2=95=90=E2=95=90=E2=95=90=E2=95=AA=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2= =95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=AA=E2=95=90=E2=95= =90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90= =E2=95=AA=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2= =95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=AA=E2=95=90=E2=95=90=E2=95= =90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90= =E2=95=90=E2=95=90=E2=95=90
public =E2=94=82 geography_columns =E2=94= =82 view =E2=94=82 postgres =E2=94=82 0 bytes =E2=94=82
public =E2=94= =82 geometry_columns =E2=94=82 view =E2=94=82 postgres =E2=94=82 0 bytes = =E2=94=82
public =E2=94=82 pg_buffercache =E2=94=82 view =E2=94=82 post= gres =E2=94=82 0 bytes =E2=94=82
public =E2=94=82 pg_stat_statements = =E2=94=82 view =E2=94=82 postgres =E2=94=82 0 bytes =E2=94=82
public = =E2=94=82 raster_columns =E2=94=82 view =E2=94=82 postgres =E2=94=82 0 byte= s =E2=94=82
public =E2=94=82 raster_overviews =E2=94=82 view =E2=94=82 = postgres =E2=94=82 0 bytes =E2=94=82
public =E2=94=82 spatial_ref_sys = =E2=94=82 table =E2=94=82 postgres =E2=94=82 4616 kB =E2=94=82
...


Aleksey M Boltenkov.

= --_----------=_1597469729199125--