pgsql: Fix reading of BitString nodes - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Fix reading of BitString nodes
Date
Msg-id E1ocDeJ-001rN3-0V@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix reading of BitString nodes

The node tokenizer went out of its way to store BitString node values
without the leading 'b'.  But everything else in the system stores the
leading 'b'.  This would break if a BitString node is
read-printed-read.

Also, the node tokenizer didn't know that BitString node tokens could
also start with 'x'.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/4159834.1657405226@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2cb1a5a8d4aeb63da2d6a2d22169f05c60bb5828

Modified Files
--------------
src/backend/nodes/read.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)


pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: pgsql: Remove uses of register due to incompatibility with C++17 and up
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Message style improvements