Re: Cleaning up ERRCODE usage in our XML code - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: Cleaning up ERRCODE usage in our XML code
Date
Msg-id 9F53B2D2-9180-4E48-A797-78677A062948@yesql.se
Whole thread Raw
In response to Re: Cleaning up ERRCODE usage in our XML code  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Cleaning up ERRCODE usage in our XML code
List pgsql-hackers
> On 20 Sep 2024, at 21:00, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> I wrote:
>> [ v1-clean-up-errcodes-for-xml.patch ]
>
> Per cfbot, rebased over d5622acb3.  No functional changes.

Looking over these I don't see anything mis-characterized so +1 on going ahead
with these.  It would be neat if we end up translating xml2 errors into XQuery
Error SQLSTATEs but this is a clear improvement over what we have until then.

There is an ERRCODE_INTERNAL_ERROR in xml_out_internal() which seems a tad odd
given that any error would be known to be parsing related and b) are caused by
libxml and not internally.  Not sure if it's worth bothering with but with the
other ones improved it stood out.

--
Daniel Gustafsson




pgsql-hackers by date:

Previous
From: Shayon Mukherjee
Date:
Subject: Re: [PATCH] Proposal to Enable/Disable Index using ALTER INDEX
Next
From: jian he
Date:
Subject: Re: ANALYZE ONLY