Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pV6OX-00055i-Iw for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Feb 2023 07:52:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pV6OV-0006Zh-JT for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Feb 2023 07:51:59 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pV6OV-0006ZY-9M for pgsql-hackers@lists.postgresql.org; Thu, 23 Feb 2023 07:51:59 +0000 Received: from wnew4-smtp.messagingengine.com ([64.147.123.18]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pV6ON-0003bZ-U3 for pgsql-hackers@lists.postgresql.org; Thu, 23 Feb 2023 07:51:58 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.west.internal (Postfix) with ESMTP id D140A2B068EE; Thu, 23 Feb 2023 02:51:49 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 23 Feb 2023 02:51:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1677138709; x= 1677145909; bh=CZLgrmaeVwsU9/J+AU/Ujc1Dj6IjIOwI3/FK/7UuOxA=; b=U gZYGmyGl8BfgO9L7QgwgCZejXHmSSQe77+cp0GoZvl00bL6v77VzgBQ8ZHllkihm m++63RwnpAJu38q+4N1gN83fYbl53pvr3FXp/ICJ7hm1R/Ji37TvU52fK+3iBIlA iWUtCh61oZddLkortBIgbRM7NEhPcxQjbo+GtWYACUhs0Kdxn5plA9wysxQfvDP+ UetNXrFrmUXfuk0wMG9FZ8mUbVi75o4FkM3gr4bQKSnHjDiqymWTutpsOMlUqNGl obllkbo9fyTPCAGnS8WS8cSCzMUQ+0LAMEQ8ZoqdNRV6Z8eHspSR8xzNt+pJIe9K ZkLwLoLYHcQKUD0wbi69g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudektddgudduudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomheprfgv thgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnh htvghrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnhepheelffeggedujeet iefhleetuddvieffhfffvdejvdffgeejkeduleduheduieefnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgr uhhtsegvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 23 Feb 2023 02:51:48 -0500 (EST) Message-ID: <3baf8f25-3bd7-7db5-0b31-e4c92b6269ba@enterprisedb.com> Date: Thu, 23 Feb 2023 08:51:47 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH] Add pretty-printed XML output option Content-Language: en-US To: Jim Jones , Peter Smith Cc: Nikolay Samokhvalov , PostgreSQL Hackers , Andrey Borodin References: <2f5df461-dad8-6d7d-4568-08e10608a69b@uni-muenster.de> <62643598-b80d-90f4-8901-b85dccadf4c4@enterprisedb.com> <4c2efca5-8257-2424-6687-07c65e319e95@uni-muenster.de> <2eac4d78-2b20-e8ec-54cc-22a88653a1cc@uni-muenster.de> <6cb296fe-4b49-3691-633e-2e2366997b04@uni-muenster.de> From: Peter Eisentraut In-Reply-To: <6cb296fe-4b49-3691-633e-2e2366997b04@uni-muenster.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 23.02.23 07:36, Jim Jones wrote: > On 23.02.23 02:52, Peter Smith wrote: >> Here are my review comments for patch v17-0001. >> >> ====== >> src/test/regress/sql/xml.sql >> >> The blank line(s) which previously separated the xmlserialize tests >> from the xml IS [NOT] DOCUMENT tests are now missing... > > v18 adds a new line in the xml.sql file to separate the xmlserialize > test cases from the rest. In kwlist.h you have PG_KEYWORD("indent", INDENT, UNRESERVED_KEYWORD, AS_LABEL) but you can actually make it BARE_LABEL, which is preferable. More importantly, you need to add the new keyword to the bare_label_keyword production in gram.y. I thought we had some tooling in the build system to catch this kind of omission, but it's apparently not working right now. Elsewhere, let's rename the xmlformat() C function to xmlserialize() (or maybe something like xmlserialize_indent()), so the association is clearer.