8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e5a091 commit bab4269Copy full SHA for bab4269
contrib/xml2/README.pgxml
@@ -27,7 +27,7 @@ Description of functions
27
28
The first set of functions are straightforward XML parsing and XPath queries:
29
30
-pgxml_parse(document) RETURNS bool
+xml_valid(document) RETURNS bool
31
32
This parses the document text in its parameter and returns true if the
33
document is well-formed XML.
contrib/xml2/pgxml.sql.in
@@ -1,6 +1,6 @@
1
--SQL for XML parser
2
3
-CREATE OR REPLACE FUNCTION pgxml_parse(text) RETURNS bool
+CREATE OR REPLACE FUNCTION xml_valid(text) RETURNS bool
4
AS 'MODULE_PATHNAME' LANGUAGE 'c' WITH (isStrict);
5
6
CREATE OR REPLACE FUNCTION xpath_string(text,text) RETURNS text
contrib/xml2/xpath.c
@@ -39,7 +39,7 @@ xmlChar *pgxml_texttoxmlchar(text *textstring);
39
static xmlXPathObjectPtr pgxml_xpath(text *document, xmlChar* xpath);
40
41
42
-Datum pgxml_parse(PG_FUNCTION_ARGS);
+Datum xml_valid(PG_FUNCTION_ARGS);
43
Datum xpath_nodeset(PG_FUNCTION_ARGS);
44
Datum xpath_string(PG_FUNCTION_ARGS);
45
Datum xpath_number(PG_FUNCTION_ARGS);
@@ -162,12 +162,12 @@ pgxml_parser_init()
162
163
/* Returns true if document is well-formed */
164
165
-PG_FUNCTION_INFO_V1(pgxml_parse);
+PG_FUNCTION_INFO_V1(xml_valid);
166
167
Datum
168
-pgxml_parse(PG_FUNCTION_ARGS)
+xml_valid(PG_FUNCTION_ARGS)
169
{
170
- /* called as pgxml_parse(document) */
+ /* called as xml_valid(document) */
171
xmlDocPtr doctree;
172
text *t = PG_GETARG_TEXT_P(0); /* document buffer */
173
int32 docsize = VARSIZE(t) - VARHDRSZ;
@@ -646,11 +646,11 @@ Datum xpath_table(PG_FUNCTION_ARGS)
646
per_query_ctx = rsinfo->econtext->ecxt_per_query_memory;
647
oldcontext = MemoryContextSwitchTo(per_query_ctx);
648
649
-/* Create the tuplestore - SortMem is the max in-memory size before it is
650
- * shipped to a disk heap file. Just like ... SortMem!
+/* Create the tuplestore - work_mem is the max in-memory size before a
+ * file is created on disk to hold it.< 5DD7 /code>
651
*/
652
653
- tupstore = tuplestore_begin_heap(true, false, SortMem);
+ tupstore = tuplestore_begin_heap(true, false, work_mem);
654
655
MemoryContextSwitchTo(oldcontext);
656