Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rZuoO-00773Z-UE for pgsql-bugs@arkaria.postgresql.org; Tue, 13 Feb 2024 15:35:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rZuoN-000iFZ-2t for pgsql-bugs@arkaria.postgresql.org; Tue, 13 Feb 2024 15:35:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rZuoM-000iFR-Qp for pgsql-bugs@lists.postgresql.org; Tue, 13 Feb 2024 15:35:06 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rZuoG-006Ynt-3E for pgsql-bugs@lists.postgresql.org; Tue, 13 Feb 2024 15:35:05 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 41DFYW922565846; Tue, 13 Feb 2024 10:34:33 -0500 From: Tom Lane To: exclusion@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18340: BitString may break nodetoString() conversion for a raw parse tree In-reply-to: <18340-4aa1ae6ed4121912@postgresql.org> References: <18340-4aa1ae6ed4121912@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Tue, 13 Feb 2024 09:00:00 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2565844.1707838472.1@sss.pgh.pa.us> Date: Tue, 13 Feb 2024 10:34:32 -0500 Message-ID: <2565845.1707838472@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form 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