| From: | Jim Jones <jim(dot)jones(at)uni-muenster(dot)de> |
|---|---|
| To: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | [PATCH] Add XMLText function (SQL/XML X038) |
| Date: | 2023-03-25 11:49:33 |
| Message-ID: | 86617a66-ec95-581f-8d54-08059cca8885@uni-muenster.de |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
This small patch proposes the implementation of the standard SQL/XML
function XMLText (X038). It basically converts a text parameter into an
xml text node. It uses the libxml2 function xmlEncodeSpecialChars[1] to
escape possible predefined entities.
This patch also contains documentation and regression tests.
Any thoughts?
Best, Jim
1 -
https://gnome.pages.gitlab.gnome.org/libxml2/devhelp/libxml2-entities.html#xmlEncodeSpecialChars
| Attachment | Content-Type | Size |
|---|---|---|
| v1-0001-Add-XMLText-function-SQL-XML-X038.patch | text/x-patch | 8.7 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Pavel Stehule | 2023-03-25 11:53:10 | Re: [PATCH] Add XMLText function (SQL/XML X038) |
| Previous Message | marekmosiewicz | 2023-03-25 11:22:36 | Re: Disable vacuuming to provide data history |