aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2021-01-04 19:47:58 +0900
committerMichael Paquier <michael@paquier.xyz>2021-01-04 19:47:58 +0900
commitb49154b3b7a45523ce4081fdae8d65049342fcec (patch)
treed5e212ecbc5a2931e08d3c8fde3e9ea15ae09b2e /src
parenta271a1b50e9bec07e2ef3a05e38e7285113e4ce6 (diff)
downloadpostgresql-b49154b3b7a45523ce4081fdae8d65049342fcec.tar.gz
postgresql-b49154b3b7a45523ce4081fdae8d65049342fcec.zip
Simplify some comments in xml.c
Author: Justin Pryzby Discussion: https://postgr.es/m/X/Ff7jfnvJUab013@paquier.xyz
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/adt/xml.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/backend/utils/adt/xml.c b/src/backend/utils/adt/xml.c
index ca38f961078..7350940b66d 100644
--- a/src/backend/utils/adt/xml.c
+++ b/src/backend/utils/adt/xml.c
@@ -4534,13 +4534,7 @@ XmlTableFetchRow(TableFuncScanState *state)
xtCxt = GetXmlTableBuilderPrivateData(state, "XmlTableFetchRow");
- /*
- * XmlTable returns table - set of composite values. The error context, is
- * used for producement more values, between two calls, there can be
- * created and used another libxml2 error context. It is libxml2 global
- * value, so it should be refreshed any time before any libxml2 usage,
- * that is finished by returning some value.
- */
+ /* Propagate our own error context to libxml2 */
xmlSetStructuredErrorFunc((void *) xtCxt->xmlerrcxt, xml_errorHandler);
if (xtCxt->xpathobj == NULL)
@@ -4594,7 +4588,7 @@ XmlTableGetValue(TableFuncScanState *state, int colnum,
xtCxt->xpathobj->type == XPATH_NODESET &&
xtCxt->xpathobj->nodesetval != NULL);
- /* Propagate context related error context to libxml2 */
+ /* Propagate our own error context to libxml2 */
xmlSetStructuredErrorFunc((void *) xtCxt->xmlerrcxt, xml_errorHandler);
*isnull = false;
@@ -4737,7 +4731,7 @@ XmlTableDestroyOpaque(TableFuncScanState *state)
xtCxt = GetXmlTableBuilderPrivateData(state, "XmlTableDestroyOpaque");
- /* Propagate context related error context to libxml2 */
+ /* Propagate our own error context to libxml2 */
xmlSetStructuredErrorFunc((void *) xtCxt->xmlerrcxt, xml_errorHandler);
if (xtCxt->xpathscomp != NULL)