Is there a bug in psql? (SELECT ''';) - Mailing list pgsql-general

From Wen Yi
Subject Is there a bug in psql? (SELECT ''';)
Date
Msg-id tencent_27D6CDAD1699DE403EC409B96949CBB8CC0A@qq.com
Whole thread Raw
Responses AW: Is there a bug in psql? (SELECT ''';)  (Marco Lechner <mlechner@bfs.de>)
Re: Is there a bug in psql? (SELECT ''';)  (hubert depesz lubaczewski <depesz@depesz.com>)
Re: Is there a bug in psql? (SELECT ''';)  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-general
Hi team,
when I learn the postgres, I try to store the ' into the database,
but something unexpected happend.

postgres=# CREATE TABLE test (str varchar);
CREATE TABLE
postgres=# INSERT INTO test values (''');
postgres'# SELECT * FROM test;
postgres'# exit
Use control-D to quit.
postgres'# \q
Use control-D to quit.
postgres'#
\q
bash-5.1$

And I do another test

postgres=# SELECT ''';
postgres'# exit
Use control-D to quit.
postgres'# \q
Use control-D to quit.
postgres'#
\q
bash-5.1$

Is there a bug in psql?

Yours,
Wen Yi

pgsql-general by date:

Previous
From: Lian Jiang
Date:
Subject: Re: speed up full table scan using psql
Next
From: Marco Lechner
Date:
Subject: AW: Is there a bug in psql? (SELECT ''';)