diff --git a/src/test/regress/expected/xml.out b/src/test/regress/expected/xml.out
index d6a51f9e38c..93a79cda8fd 100644
--- a/src/test/regress/expected/xml.out
+++ b/src/test/regress/expected/xml.out
@@ -285,19 +285,6 @@ SELECT xmlparse(content '');
(1 row)
-SELECT xmlparse(content '');
-ERROR: invalid XML content
-DETAIL: line 1: Premature end of data in tag unclosed line 1
-
- ^
-SELECT xmlparse(content '');
-ERROR: invalid XML content
-DETAIL: line 1: Opening and ending tag mismatch: child line 1 and parent
-
- ^
-line 1: Opening and ending tag mismatch: parent line 1 and child
-
- ^
SELECT xmlparse(document ' ');
ERROR: invalid XML document
DETAIL: line 1: Start tag expected, '<' not found
@@ -356,19 +343,6 @@ SELECT xmlparse(document '');
(1 row)
-SELECT xmlparse(document '');
-ERROR: invalid XML document
-DETAIL: line 1: Premature end of data in tag unclosed line 1
-
- ^
-SELECT xmlparse(document '');
-ERROR: invalid XML document
-DETAIL: line 1: Opening and ending tag mismatch: child line 1 and parent
-
- ^
-line 1: Opening and ending tag mismatch: parent line 1 and child
-
- ^
SELECT xmlpi(name foo);
xmlpi
---------
diff --git a/src/test/regress/expected/xml_1.out b/src/test/regress/expected/xml_1.out
index d3f2bdfc141..9323b84ae21 100644
--- a/src/test/regress/expected/xml_1.out
+++ b/src/test/regress/expected/xml_1.out
@@ -180,12 +180,6 @@ DETAIL: This functionality requires the server to be built with libxml support.
SELECT xmlparse(content '');
ERROR: unsupported XML feature
DETAIL: This functionality requires the server to be built with libxml support.
-SELECT xmlparse(content '');
-ERROR: unsupported XML feature
-DETAIL: This functionality requires the server to be built with libxml support.
-SELECT xmlparse(content '');
-ERROR: unsupported XML feature
-DETAIL: This functionality requires the server to be built with libxml support.
SELECT xmlparse(document ' ');
ERROR: unsupported XML feature
DETAIL: This functionality requires the server to be built with libxml support.
@@ -213,12 +207,6 @@ DETAIL: This functionality requires the server to be built with libxml support.
SELECT xmlparse(document '');
ERROR: unsupported XML feature
DETAIL: This functionality requires the server to be built with libxml support.
-SELECT xmlparse(document '');
-ERROR: unsupported XML feature
-DETAIL: This functionality requires the server to be built with libxml support.
-SELECT xmlparse(document '');
-ERROR: unsupported XML feature
-DETAIL: This functionality requires the server to be built with libxml support.
SELECT xmlpi(name foo);
ERROR: unsupported XML feature
DETAIL: This functionality requires the server to be built with libxml support.
diff --git a/src/test/regress/expected/xml_2.out b/src/test/regress/expected/xml_2.out
index 376b7bd015b..f956322c693 100644
--- a/src/test/regress/expected/xml_2.out
+++ b/src/test/regress/expected/xml_2.out
@@ -279,19 +279,6 @@ SELECT xmlparse(content '');
(1 row)
-SELECT xmlparse(content '');
-ERROR: invalid XML content
-DETAIL: line 1: Premature end of data in tag unclosed line 1
-
- ^
-SELECT xmlparse(content '');
-ERROR: invalid XML content
-DETAIL: line 1: Opening and ending tag mismatch: child line 1 and parent
-
- ^
-line 1: Opening and ending tag mismatch: parent line 1 and child
-
- ^
SELECT xmlparse(document ' ');
ERROR: invalid XML document
DETAIL: line 1: Start tag expected, '<' not found
@@ -342,19 +329,6 @@ SELECT xmlparse(document '');
(1 row)
-SELECT xmlparse(document '');
-ERROR: invalid XML document
-DETAIL: line 1: Premature end of data in tag unclosed line 1
-
- ^
-SELECT xmlparse(document '');
-ERROR: invalid XML document
-DETAIL: line 1: Opening and ending tag mismatch: child line 1 and parent
-
- ^
-line 1: Opening and ending tag mismatch: parent line 1 and child
-
- ^
SELECT xmlpi(name foo);
xmlpi
---------
diff --git a/src/test/regress/sql/xml.sql b/src/test/regress/sql/xml.sql
index 15ccbe1d35d..953bac09e45 100644
--- a/src/test/regress/sql/xml.sql
+++ b/src/test/regress/sql/xml.sql
@@ -77,8 +77,6 @@ SELECT xmlparse(content '');
SELECT xmlparse(content '');
SELECT xmlparse(content '&idontexist;');
SELECT xmlparse(content '');
-SELECT xmlparse(content '');
-SELECT xmlparse(content '');
SELECT xmlparse(document ' ');
SELECT xmlparse(document 'abc');
@@ -89,8 +87,6 @@ SELECT xmlparse(document '');
SELECT xmlparse(document '');
SELECT xmlparse(document '&idontexist;');
SELECT xmlparse(document '');
-SELECT xmlparse(document '');
-SELECT xmlparse(document '');
SELECT xmlpi(name foo);