5 INSERT INTO xmltest VALUES (1, '<value>one</value>');
6 ERROR: unsupported XML feature
7 LINE 1: INSERT INTO xmltest VALUES (1, '<value>one</value>');
9 DETAIL: This functionality requires the server to be built with libxml support.
10 HINT: You need to rebuild PostgreSQL using --with-libxml.
11 INSERT INTO xmltest VALUES (2, '<value>two</value>');
12 ERROR: unsupported XML feature
13 LINE 1: INSERT INTO xmltest VALUES (2, '<value>two</value>');
15 DETAIL: This functionality requires the server to be built with libxml support.
16 HINT: You need to rebuild PostgreSQL using --with-libxml.
17 INSERT INTO xmltest VALUES (3, '<wrong');
18 ERROR: unsupported XML feature
19 LINE 1: INSERT INTO xmltest VALUES (3, '<wrong');
21 DETAIL: This functionality requires the server to be built with libxml support.
22 HINT: You need to rebuild PostgreSQL using --with-libxml.
23 SELECT * FROM xmltest;
28 SELECT xmlcomment('test');
29 ERROR: unsupported XML feature
30 DETAIL: This functionality requires the server to be built with libxml support.
31 HINT: You need to rebuild PostgreSQL using --with-libxml.
32 SELECT xmlcomment('-test');
33 ERROR: unsupported XML feature
34 DETAIL: This functionality requires the server to be built with libxml support.
35 HINT: You need to rebuild PostgreSQL using --with-libxml.
36 SELECT xmlcomment('test-');
37 ERROR: unsupported XML feature
38 DETAIL: This functionality requires the server to be built with libxml support.
39 HINT: You need to rebuild PostgreSQL using --with-libxml.
40 SELECT xmlcomment('--test');
41 ERROR: unsupported XML feature
42 DETAIL: This functionality requires the server to be built with libxml support.
43 HINT: You need to rebuild PostgreSQL using --with-libxml.
44 SELECT xmlcomment('te st');
45 ERROR: unsupported XML feature
46 DETAIL: This functionality requires the server to be built with libxml support.
47 HINT: You need to rebuild PostgreSQL using --with-libxml.
48 SELECT xmlconcat(xmlcomment('hello'),
49 xmlelement(NAME qux, 'foo'),
51 ERROR: unsupported XML feature
52 DETAIL: This functionality requires the server to be built with libxml support.
53 HINT: You need to rebuild PostgreSQL using --with-libxml.
54 SELECT xmlconcat('hello', 'you');
55 ERROR: unsupported XML feature
56 LINE 1: SELECT xmlconcat('hello', 'you');
58 DETAIL: This functionality requires the server to be built with libxml support.
59 HINT: You need to rebuild PostgreSQL using --with-libxml.
60 SELECT xmlconcat(1, 2);
61 ERROR: argument of XMLCONCAT must be type xml, not type integer
62 LINE 1: SELECT xmlconcat(1, 2);
64 SELECT xmlconcat('bad', '<syntax');
65 ERROR: unsupported XML feature
66 LINE 1: SELECT xmlconcat('bad', '<syntax');
68 DETAIL: This functionality requires the server to be built with libxml support.
69 HINT: You need to rebuild PostgreSQL using --with-libxml.
70 SELECT xmlconcat('<foo/>', NULL, '<?xml version="1.1" standalone="no"?><bar/>');
71 ERROR: unsupported XML feature
72 LINE 1: SELECT xmlconcat('<foo/>', NULL, '<?xml version="1.1" standa...
74 DETAIL: This functionality requires the server to be built with libxml support.
75 HINT: You need to rebuild PostgreSQL using --with-libxml.
76 SELECT xmlconcat('<?xml version="1.1"?><foo/>', NULL, '<?xml version="1.1" standalone="no"?><bar/>');
77 ERROR: unsupported XML feature
78 LINE 1: SELECT xmlconcat('<?xml version="1.1"?><foo/>', NULL, '<?xml...
80 DETAIL: This functionality requires the server to be built with libxml support.
81 HINT: You need to rebuild PostgreSQL using --with-libxml.
82 SELECT xmlconcat(NULL);
88 SELECT xmlconcat(NULL, NULL);
94 SELECT xmlelement(name element,
95 xmlattributes (1 as one, 'deuce' as two),
97 ERROR: unsupported XML feature
98 DETAIL: This functionality requires the server to be built with libxml support.
99 HINT: You need to rebuild PostgreSQL using --with-libxml.
100 SELECT xmlelement(name element,
101 xmlattributes ('unnamed and wrong'));
102 ERROR: unsupported XML feature
103 DETAIL: This functionality requires the server to be built with libxml support.
104 HINT: You need to rebuild PostgreSQL using --with-libxml.
105 SELECT xmlelement(name element, xmlelement(name nested, 'stuff'));
106 ERROR: unsupported XML feature
107 DETAIL: This functionality requires the server to be built with libxml support.
108 HINT: You need to rebuild PostgreSQL using --with-libxml.
109 SELECT xmlelement(name employee, xmlforest(name, age, salary as pay)) FROM emp;
110 ERROR: unsupported XML feature
111 DETAIL: This functionality requires the server to be built with libxml support.
112 HINT: You need to rebuild PostgreSQL using --with-libxml.
113 SELECT xmlelement(name duplicate, xmlattributes(1 as a, 2 as b, 3 as a));
114 ERROR: unsupported XML feature
115 DETAIL: This functionality requires the server to be built with libxml support.
116 HINT: You need to rebuild PostgreSQL using --with-libxml.
117 SELECT xmlelement(name num, 37);
118 ERROR: unsupported XML feature
119 DETAIL: This functionality requires the server to be built with libxml support.
120 HINT: You need to rebuild PostgreSQL using --with-libxml.
121 SELECT xmlelement(name foo, text 'bar');
122 ERROR: unsupported XML feature
123 DETAIL: This functionality requires the server to be built with libxml support.
124 HINT: You need to rebuild PostgreSQL using --with-libxml.
125 SELECT xmlelement(name foo, xml 'bar');
126 ERROR: unsupported XML feature
127 DETAIL: This functionality requires the server to be built with libxml support.
128 HINT: You need to rebuild PostgreSQL using --with-libxml.
129 SELECT xmlelement(name foo, text 'b<a/>r');
130 ERROR: unsupported XML feature
131 DETAIL: This functionality requires the server to be built with libxml support.
132 HINT: You need to rebuild PostgreSQL using --with-libxml.
133 SELECT xmlelement(name foo, xml 'b<a/>r');
134 ERROR: unsupported XML feature
135 DETAIL: This functionality requires the server to be built with libxml support.
136 HINT: You need to rebuild PostgreSQL using --with-libxml.
137 SELECT xmlelement(name foo, array[1, 2, 3]);
138 ERROR: unsupported XML feature
139 DETAIL: This functionality requires the server to be built with libxml support.
140 HINT: You need to rebuild PostgreSQL using --with-libxml.
141 SET xmlbinary TO base64;
142 SELECT xmlelement(name foo, bytea 'bar');
143 ERROR: unsupported XML feature
144 DETAIL: This functionality requires the server to be built with libxml support.
145 HINT: You need to rebuild PostgreSQL using --with-libxml.
146 SET xmlbinary TO hex;
147 SELECT xmlelement(name foo, bytea 'bar');
148 ERROR: unsupported XML feature
149 DETAIL: This functionality requires the server to be built with libxml support.
150 HINT: You need to rebuild PostgreSQL using --with-libxml.
151 SELECT xmlparse(content 'abc');
152 ERROR: unsupported XML feature
153 DETAIL: This functionality requires the server to be built with libxml support.
154 HINT: You need to rebuild PostgreSQL using --with-libxml.
155 SELECT xmlparse(content '<abc>x</abc>');
156 ERROR: unsupported XML feature
157 DETAIL: This functionality requires the server to be built with libxml support.
158 HINT: You need to rebuild PostgreSQL using --with-libxml.
159 SELECT xmlparse(document 'abc');
160 ERROR: unsupported XML feature
161 DETAIL: This functionality requires the server to be built with libxml support.
162 HINT: You need to rebuild PostgreSQL using --with-libxml.
163 SELECT xmlparse(document '<abc>x</abc>');
164 ERROR: unsupported XML feature
165 DETAIL: This functionality requires the server to be built with libxml support.
166 HINT: You need to rebuild PostgreSQL using --with-libxml.
167 SELECT xmlpi(name foo);
168 ERROR: unsupported XML feature
169 DETAIL: This functionality requires the server to be built with libxml support.
170 HINT: You need to rebuild PostgreSQL using --with-libxml.
171 SELECT xmlpi(name xml);
172 ERROR: unsupported XML feature
173 DETAIL: This functionality requires the server to be built with libxml support.
174 HINT: You need to rebuild PostgreSQL using --with-libxml.
175 SELECT xmlpi(name xmlstuff);
176 ERROR: unsupported XML feature
177 DETAIL: This functionality requires the server to be built with libxml support.
178 HINT: You need to rebuild PostgreSQL using --with-libxml.
179 SELECT xmlpi(name foo, 'bar');
180 ERROR: unsupported XML feature
181 DETAIL: This functionality requires the server to be built with libxml support.
182 HINT: You need to rebuild PostgreSQL using --with-libxml.
183 SELECT xmlpi(name foo, 'in?>valid');
184 ERROR: unsupported XML feature
185 DETAIL: This functionality requires the server to be built with libxml support.
186 HINT: You need to rebuild PostgreSQL using --with-libxml.
187 SELECT xmlpi(name foo, null);
188 ERROR: unsupported XML feature
189 DETAIL: This functionality requires the server to be built with libxml support.
190 HINT: You need to rebuild PostgreSQL using --with-libxml.
191 SELECT xmlpi(name xml, null);
192 ERROR: unsupported XML feature
193 DETAIL: This functionality requires the server to be built with libxml support.
194 HINT: You need to rebuild PostgreSQL using --with-libxml.
195 SELECT xmlpi(name xmlstuff, null);
196 ERROR: unsupported XML feature
197 DETAIL: This functionality requires the server to be built with libxml support.
198 HINT: You need to rebuild PostgreSQL using --with-libxml.
199 SELECT xmlpi(name "xml-stylesheet", 'href="mystyle.css" type="text/css"');
200 ERROR: unsupported XML feature
201 DETAIL: This functionality requires the server to be built with libxml support.
202 HINT: You need to rebuild PostgreSQL using --with-libxml.
203 SELECT xmlpi(name foo, ' bar');
204 ERROR: unsupported XML feature
205 DETAIL: This functionality requires the server to be built with libxml support.
206 HINT: You need to rebuild PostgreSQL using --with-libxml.
207 SELECT xmlroot(xml '<foo/>', version no value, standalone no value);
208 ERROR: unsupported XML feature
209 LINE 1: SELECT xmlroot(xml '<foo/>', version no value, standalone no...
211 DETAIL: This functionality requires the server to be built with libxml support.
212 HINT: You need to rebuild PostgreSQL using --with-libxml.
213 SELECT xmlroot(xml '<foo/>', version '2.0');
214 ERROR: unsupported XML feature
215 LINE 1: SELECT xmlroot(xml '<foo/>', version '2.0');
217 DETAIL: This functionality requires the server to be built with libxml support.
218 HINT: You need to rebuild PostgreSQL using --with-libxml.
219 SELECT xmlroot(xml '<foo/>', version no value, standalone yes);
220 ERROR: unsupported XML feature
221 LINE 1: SELECT xmlroot(xml '<foo/>', version no value, standalone ye...
223 DETAIL: This functionality requires the server to be built with libxml support.
224 HINT: You need to rebuild PostgreSQL using --with-libxml.
225 SELECT xmlroot(xml '<?xml version="1.1"?><foo/>', version no value, standalone yes);
226 ERROR: unsupported XML feature
227 LINE 1: SELECT xmlroot(xml '<?xml version="1.1"?><foo/>', version no...
229 DETAIL: This functionality requires the server to be built with libxml support.
230 HINT: You need to rebuild PostgreSQL using --with-libxml.
231 SELECT xmlroot(xmlroot(xml '<foo/>', version '1.0'), version '1.1', standalone no);
232 ERROR: unsupported XML feature
233 LINE 1: SELECT xmlroot(xmlroot(xml '<foo/>', version '1.0'), version...
235 DETAIL: This functionality requires the server to be built with libxml support.
236 HINT: You need to rebuild PostgreSQL using --with-libxml.
237 SELECT xmlroot('<?xml version="1.1" standalone="yes"?><foo/>', version no value, standalone no);
238 ERROR: unsupported XML feature
239 LINE 1: SELECT xmlroot('<?xml version="1.1" standalone="yes"?><foo/>...
241 DETAIL: This functionality requires the server to be built with libxml support.
242 HINT: You need to rebuild PostgreSQL using --with-libxml.
243 SELECT xmlroot('<?xml version="1.1" standalone="yes"?><foo/>', version no value, standalone no value);
244 ERROR: unsupported XML feature
245 LINE 1: SELECT xmlroot('<?xml version="1.1" standalone="yes"?><foo/>...
247 DETAIL: This functionality requires the server to be built with libxml support.
248 HINT: You need to rebuild PostgreSQL using --with-libxml.
249 SELECT xmlroot('<?xml version="1.1" standalone="yes"?><foo/>', version no value);
250 ERROR: unsupported XML feature
251 LINE 1: SELECT xmlroot('<?xml version="1.1" standalone="yes"?><foo/>...
253 DETAIL: This functionality requires the server to be built with libxml support.
254 HINT: You need to rebuild PostgreSQL using --with-libxml.
270 ERROR: unsupported XML feature
271 DETAIL: This functionality requires the server to be built with libxml support.
272 HINT: You need to rebuild PostgreSQL using --with-libxml.
273 SELECT xmlserialize(content data as character varying(20)) FROM xmltest;
278 SELECT xmlserialize(content 'good' as char(10));
279 ERROR: unsupported XML feature
280 LINE 1: SELECT xmlserialize(content 'good' as char(10));
282 DETAIL: This functionality requires the server to be built with libxml support.
283 HINT: You need to rebuild PostgreSQL using --with-libxml.
284 SELECT xmlserialize(document 'bad' as text);
285 ERROR: unsupported XML feature
286 LINE 1: SELECT xmlserialize(document 'bad' as text);
288 DETAIL: This functionality requires the server to be built with libxml support.
289 HINT: You need to rebuild PostgreSQL using --with-libxml.
290 SELECT xml '<foo>bar</foo>' IS DOCUMENT;
291 ERROR: unsupported XML feature
292 LINE 1: SELECT xml '<foo>bar</foo>' IS DOCUMENT;
294 DETAIL: This functionality requires the server to be built with libxml support.
295 HINT: You need to rebuild PostgreSQL using --with-libxml.
296 SELECT xml '<foo>bar</foo><bar>foo</bar>' IS DOCUMENT;
297 ERROR: unsupported XML feature
298 LINE 1: SELECT xml '<foo>bar</foo><bar>foo</bar>' IS DOCUMENT;
300 DETAIL: This functionality requires the server to be built with libxml support.
301 HINT: You need to rebuild PostgreSQL using --with-libxml.
302 SELECT xml '<abc/>' IS NOT DOCUMENT;
303 ERROR: unsupported XML feature
304 LINE 1: SELECT xml '<abc/>' IS NOT DOCUMENT;
306 DETAIL: This functionality requires the server to be built with libxml support.
307 HINT: You need to rebuild PostgreSQL using --with-libxml.
308 SELECT xml 'abc' IS NOT DOCUMENT;
309 ERROR: unsupported XML feature
310 LINE 1: SELECT xml 'abc' IS NOT DOCUMENT;
312 DETAIL: This functionality requires the server to be built with libxml support.
313 HINT: You need to rebuild PostgreSQL using --with-libxml.
314 SELECT '<>' IS NOT DOCUMENT;
315 ERROR: unsupported XML feature
316 LINE 1: SELECT '<>' IS NOT DOCUMENT;
318 DETAIL: This functionality requires the server to be built with libxml support.
319 HINT: You need to rebuild PostgreSQL using --with-libxml.
320 SELECT xmlagg(data) FROM xmltest;
326 SELECT xmlagg(data) FROM xmltest WHERE id > 10;
332 SELECT xmlelement(name employees, xmlagg(xmlelement(name name, name))) FROM emp;
333 ERROR: unsupported XML feature
334 DETAIL: This functionality requires the server to be built with libxml support.
335 HINT: You need to rebuild PostgreSQL using --with-libxml.
336 -- Check mapping SQL identifier to XML name
337 SELECT xmlpi(name ":::_xml_abc135.%-&_");
338 ERROR: unsupported XML feature
339 DETAIL: This functionality requires the server to be built with libxml support.
340 HINT: You need to rebuild PostgreSQL using --with-libxml.
341 SELECT xmlpi(name "123");
342 ERROR: unsupported XML feature
343 DETAIL: This functionality requires the server to be built with libxml support.
344 HINT: You need to rebuild PostgreSQL using --with-libxml.
345 PREPARE foo (xml) AS SELECT xmlconcat('<foo/>', $1);
346 ERROR: unsupported XML feature
347 LINE 1: PREPARE foo (xml) AS SELECT xmlconcat('<foo/>', $1);
349 DETAIL: This functionality requires the server to be built with libxml support.
350 HINT: You need to rebuild PostgreSQL using --with-libxml.
351 SET XML OPTION DOCUMENT;
352 EXECUTE foo ('<bar/>');
353 ERROR: prepared statement "foo" does not exist
355 ERROR: prepared statement "foo" does not exist
356 SET XML OPTION CONTENT;
357 EXECUTE foo ('<bar/>');
358 ERROR: prepared statement "foo" does not exist
359 EXECUTE foo ('good');
360 ERROR: prepared statement "foo" does not exist
361 -- Test backwards parsing
362 CREATE VIEW xmlview1 AS SELECT xmlcomment('test');
363 CREATE VIEW xmlview2 AS SELECT xmlconcat('hello', 'you');
364 ERROR: unsupported XML feature
365 LINE 1: CREATE VIEW xmlview2 AS SELECT xmlconcat('hello', 'you');
367 DETAIL: This functionality requires the server to be built with libxml support.
368 HINT: You need to rebuild PostgreSQL using --with-libxml.
369 CREATE VIEW xmlview3 AS SELECT xmlelement(name element, xmlattributes (1 as ":one:", 'deuce' as two), 'content&');
370 ERROR: unsupported XML feature
371 DETAIL: This functionality requires the server to be built with libxml support.
372 HINT: You need to rebuild PostgreSQL using --with-libxml.
373 CREATE VIEW xmlview4 AS SELECT xmlelement(name employee, xmlforest(name, age, salary as pay)) FROM emp;
374 ERROR: unsupported XML feature
375 DETAIL: This functionality requires the server to be built with libxml support.
376 HINT: You need to rebuild PostgreSQL using --with-libxml.
377 CREATE VIEW xmlview5 AS SELECT xmlparse(content '<abc>x</abc>');
378 CREATE VIEW xmlview6 AS SELECT xmlpi(name foo, 'bar');
379 ERROR: unsupported XML feature
380 DETAIL: This functionality requires the server to be built with libxml support.
381 HINT: You need to rebuild PostgreSQL using --with-libxml.
382 CREATE VIEW xmlview7 AS SELECT xmlroot(xml '<foo/>', version no value, standalone yes);
383 ERROR: unsupported XML feature
384 LINE 1: CREATE VIEW xmlview7 AS SELECT xmlroot(xml '<foo/>', version...
386 DETAIL: This functionality requires the server to be built with libxml support.
387 HINT: You need to rebuild PostgreSQL using --with-libxml.
388 CREATE VIEW xmlview8 AS SELECT xmlserialize(content 'good' as char(10));
389 ERROR: unsupported XML feature
390 LINE 1: ...EATE VIEW xmlview8 AS SELECT xmlserialize(content 'good' as ...
392 DETAIL: This functionality requires the server to be built with libxml support.
393 HINT: You need to rebuild PostgreSQL using --with-libxml.
394 CREATE VIEW xmlview9 AS SELECT xmlserialize(content 'good' as text);
395 ERROR: unsupported XML feature
396 LINE 1: ...EATE VIEW xmlview9 AS SELECT xmlserialize(content 'good' as ...
398 DETAIL: This functionality requires the server to be built with libxml support.
399 HINT: You need to rebuild PostgreSQL using --with-libxml.
400 SELECT table_name, view_definition FROM information_schema.views
401 WHERE table_name LIKE 'xmlview%' ORDER BY 1;
402 table_name | view_definition
403 ------------+-------------------------------------------------------------------------------
404 xmlview1 | SELECT xmlcomment('test'::text) AS xmlcomment;
405 xmlview5 | SELECT XMLPARSE(CONTENT '<abc>x</abc>'::text STRIP WHITESPACE) AS "xmlparse";
408 -- Text XPath expressions evaluation
409 SELECT xpath('/value', data) FROM xmltest;
414 SELECT xpath(NULL, NULL) IS NULL FROM xmltest;
419 SELECT xpath('', '<!-- error -->');
420 ERROR: unsupported XML feature
421 LINE 1: SELECT xpath('', '<!-- error -->');
423 DETAIL: This functionality requires the server to be built with libxml support.
424 HINT: You need to rebuild PostgreSQL using --with-libxml.
425 SELECT xpath('//text()', '<local:data xmlns:local="http://127.0.0.1"><local:piece id="1">number one</local:piece><local:piece id="2" /></local:data>');
426 ERROR: unsupported XML feature
427 LINE 1: SELECT xpath('//text()', '<local:data xmlns:local="http://12...
429 DETAIL: This functionality requires the server to be built with libxml support.
430 HINT: You need to rebuild PostgreSQL using --with-libxml.
431 SELECT xpath('//loc:piece/@id', '<local:data xmlns:local="http://127.0.0.1"><local:piece id="1">number one</local:piece><local:piece id="2" /></local:data>', ARRAY[ARRAY['loc', 'http://127.0.0.1']]);
432 ERROR: unsupported XML feature
433 LINE 1: SELECT xpath('//loc:piece/@id', '<local:data xmlns:local="ht...
435 DETAIL: This functionality requires the server to be built with libxml support.
436 HINT: You need to rebuild PostgreSQL using --with-libxml.
437 SELECT xpath('//b', '<a>one <b>two</b> three <b>etc</b></a>');
438 ERROR: unsupported XML feature
439 LINE 1: SELECT xpath('//b', '<a>one <b>two</b> three <b>etc</b></a>'...
441 DETAIL: This functionality requires the server to be built with libxml support.
442 HINT: You need to rebuild PostgreSQL using --with-libxml.