Re: XMLDocument (SQL/XML X030) - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: XMLDocument (SQL/XML X030)
Date
Msg-id CAFj8pRBMCx+WNg0Pfq_+zTwq2DSW55fkJpttcKCnAr--fZt3Vg@mail.gmail.com
Whole thread Raw
In response to XMLDocument (SQL/XML X030)  (Jim Jones <jim.jones@uni-muenster.de>)
List pgsql-hackers


so 25. 1. 2025 v 9:10 odesílatel Jim Jones <jim.jones@uni-muenster.de> napsal:

On 25.01.25 08:16, Pavel Stehule wrote:
> because the function does nothing, then it is useless to convert input
> to XML and force detosting

Right. Fixed in v7 attached.

I don't see 

+Datum
+xmldocument(PG_FUNCTION_ARGS)
+{
+#ifdef USE_LIBXML
+ PG_RETURN_XML_P(PG_GETARG_XML_P(0));
+#else
+ NO_XML_SUPPORT();
+ return 0;
+#endif /* not USE_LIBXML */
+}
+

you still forces detoasting (inside PG_GETARG_XML_P)



 

Thanks

Best, Jim

pgsql-hackers by date:

Previous
From: Álvaro Herrera
Date:
Subject: Re: Allow NOT VALID foreign key constraints on partitioned tables.
Next
From: Robins Tharakan
Date:
Subject: Re: Convert sepgsql tests to TAP