Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1j6gN4-0001FL-Jo for pgsql-bugs@arkaria.postgresql.org; Tue, 25 Feb 2020 19:59:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j6gN3-0000bn-5t for pgsql-bugs@arkaria.postgresql.org; Tue, 25 Feb 2020 19:59:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j6gN2-0000Wp-Lk for pgsql-bugs@lists.postgresql.org; Tue, 25 Feb 2020 19:59:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j6gN0-0006A4-9x for pgsql-bugs@lists.postgresql.org; Tue, 25 Feb 2020 19:59:55 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 01PJxr9R027913; Tue, 25 Feb 2020 14:59:53 -0500 From: Tom Lane To: andreas@apkudo.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16277: xmlelement allows invalid XML characters when XML version is set to 1.0 In-reply-to: <16277-efdbe9891408668e@postgresql.org> References: <16277-efdbe9891408668e@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Tue, 25 Feb 2020 18:58:57 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <27911.1582660793.1@sss.pgh.pa.us> Date: Tue, 25 Feb 2020 14:59:53 -0500 Message-ID: <27912.1582660793@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PG Bug reporting form writes: > The following example: > SELECT > xmlroot ( > xmlelement (name "test", CHR(26)) > , version '1.0' > ) > Produces xml with the invalid ASCII character 26. On what grounds do you call it invalid? What other behavior would you expect? regards, tom lane