pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: exclusion@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18340: BitString may break nodetoString() conversion for a raw parse tree
Date: Tue, 13 Feb 2024 10:34:32 -0500
Message-ID: <2565845.1707838472@sss.pgh.pa.us> (raw)
In-Reply-To: <18340-4aa1ae6ed4121912@postgresql.org>
References: <18340-4aa1ae6ed4121912@postgresql.org>

PG Bug reporting form <noreply@postgresql.org> writes:
> When a server compiled with -DWRITE_READ_PARSE_PLAN_TREES, the following
> query:
> SELECT x' 0';
> produces:
> ERROR:  did not find '}' at end of input node

> Observed starting from commit 40ad8f9de, which implemented
> WRITE_READ_PARSE_PLAN_TREES for raw parse trees.

Bleah.  That's presumably my fault, will take a look.

> More interesting results may be obtained (e.g.,
> WARNING:  outfuncs/readfuncs failed to produce an equal raw parse tree
> ), but with raw trees only, not with node trees stored in the database,
> considering core code.
> Still codesearch.debian.net shows that nodeToString() used by several
> extensions: pg_qual_stats, pgpool2, hypopg, pglogical; perhaps some of
> them use that conversion unsafely (without processing a node with
> transformExpr() or so).

I doubt there's any reason to consider this a critical problem
right now.  We should fix it of course, in the expectation that
we might need it to work someday.

			regards, tom lane





view thread (2+ messages)

Message-ID: <2565845.1707838472@sss.pgh.pa.us>
Permalink:  ../2565845.1707838472@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2565845.1707838472@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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, exclusion@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #18340: BitString may break nodetoString() conversion for a raw parse tree
  In-Reply-To: <2565845.1707838472@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