|
PostgreSQL Source Code git master
|
#include "executor/tablefunc.h"#include "fmgr.h"#include "nodes/execnodes.h"#include "nodes/primnodes.h"

Go to the source code of this file.
Macros | |
| #define | PG_GETARG_XML_P(n) DatumGetXmlP(PG_GETARG_DATUM(n)) |
| #define | PG_RETURN_XML_P(x) PG_RETURN_POINTER(x) |
Typedefs | |
| typedef varlena | xmltype |
| typedef struct PgXmlErrorContext | PgXmlErrorContext |
Enumerations | |
| enum | XmlStandaloneType { XML_STANDALONE_YES , XML_STANDALONE_NO , XML_STANDALONE_NO_VALUE , XML_STANDALONE_OMITTED } |
| enum | XmlBinaryType { XMLBINARY_BASE64 , XMLBINARY_HEX } |
| enum | PgXmlStrictness { PG_XML_STRICTNESS_LEGACY , PG_XML_STRICTNESS_WELLFORMED , PG_XML_STRICTNESS_ALL } |
Variables | |
| PGDLLIMPORT int | xmlbinary |
| PGDLLIMPORT int | xmloption |
| PGDLLIMPORT const TableFuncRoutine | XmlTableRoutine |
| #define PG_GETARG_XML_P | ( | n | ) | DatumGetXmlP(PG_GETARG_DATUM(n)) |
| Enumerator | |
|---|---|
| PG_XML_STRICTNESS_LEGACY | |
| PG_XML_STRICTNESS_WELLFORMED | |
| PG_XML_STRICTNESS_ALL | |
| Enumerator | |
|---|---|
| XMLBINARY_BASE64 | |
| XMLBINARY_HEX | |
| Enumerator | |
|---|---|
| XML_STANDALONE_YES | |
| XML_STANDALONE_NO | |
| XML_STANDALONE_NO_VALUE | |
| XML_STANDALONE_OMITTED | |
Definition at line 25 of file xml.h.
Definition at line 51 of file xml.h.
References fb(), and PG_DETOAST_DATUM.
Referenced by ExecEvalXmlExpr(), xmlconcat(), and XmlTableSetDocument().
Definition at line 2739 of file xml.c.
References appendStringInfoCharMacro, appendStringInfoString(), buf, initStringInfo(), and str.
Referenced by ExplainProperty(), ExplainPropertyList(), map_sql_value_to_xml_value(), and XmlTableGetValue().
|
extern |
Definition at line 2422 of file xml.c.
References appendBinaryStringInfo(), appendStringInfo(), appendStringInfoString(), Assert, buf, fb(), ident, initStringInfo(), NO_XML_SUPPORT, pg_mblen_cstr(), and pg_strncasecmp().
Referenced by database_to_xml_internal(), map_multipart_sql_identifier_to_xml_name(), map_sql_catalog_to_xmlschema_types(), map_sql_schema_to_xmlschema_types(), map_sql_table_to_xmlschema(), query_to_xml_internal(), schema_to_xml_internal(), SPI_sql_row_to_xmlelement(), and transformXmlExpr().
Definition at line 2520 of file xml.c.
References appendStringInfoString(), ARR_ELEMTYPE, buf, DATE_NOT_FINITE, DatumGetArrayTypeP, DatumGetBool(), DatumGetByteaPP, DatumGetDateADT(), DatumGetTimestamp(), deconstruct_array(), EncodeDateOnly(), EncodeDateTime(), ereport, errcode(), errdetail(), errmsg, ERROR, escape_xml(), fb(), get_typlenbyvalalign(), getBaseType(), getTypeOutputInfo(), i, initStringInfo(), j2date(), map_sql_value_to_xml_value(), MAXDATELEN, OidOutputFunctionCall(), pfree(), PG_CATCH, PG_END_TRY, PG_RE_THROW, PG_TRY, pg_xml_done(), pg_xml_init(), PG_XML_STRICTNESS_ALL, POSTGRES_EPOCH_JDATE, pstrdup(), result, str, timestamp2tm(), TIMESTAMP_NOT_FINITE, tm, pg_tm::tm_mday, pg_tm::tm_mon, pg_tm::tm_year, type, type_is_array_domain, USE_XSD_DATES, value, VARDATA_ANY(), VARSIZE_ANY_EXHDR(), xml_ereport(), xmlbinary, and XMLBINARY_BASE64.
Referenced by ExecEvalXmlExpr(), map_sql_value_to_xml_value(), SPI_sql_row_to_xmlelement(), and xmlelement().
Definition at line 2478 of file xml.c.
References appendBinaryStringInfo(), appendStringInfoString(), buf, fb(), initStringInfo(), MAX_UNICODE_EQUIVALENT_STRING, name, pg_mblen_cstr(), and pg_unicode_to_server().
Referenced by get_rule_expr().
|
extern |
Referenced by map_sql_value_to_xml_value(), pgxml_result_to_text(), pgxmlNodeSetToText(), xml_encode_special_chars(), xmlelement(), XmlTableDestroyOpaque(), XmlTableInitOpaque(), xmltext(), xmltotext_with_options(), xpath_bool(), xpath_list(), xpath_nodeset(), xpath_number(), xpath_string(), xpath_table(), and xslt_process().
|
extern |
Referenced by pgxml_result_to_text(), pgxml_xpath(), pgxmlNodeSetToText(), xml_encode_special_chars(), xpath_table(), and xslt_process().
|
extern |
Referenced by map_sql_value_to_xml_value(), pgxml_result_to_text(), pgxml_xpath(), pgxmlNodeSetToText(), xml_encode_special_chars(), xmlelement(), XmlTableFetchRow(), XmlTableGetValue(), XmlTableInitOpaque(), XmlTableSetColumnFilter(), XmlTableSetDocument(), XmlTableSetNamespace(), XmlTableSetRowFilter(), xmltext(), xmltotext_with_options(), xpath_table(), and xslt_process().
Definition at line 1172 of file xml.c.
References arg, ErrorSaveContext::error_occurred, fb(), GetDatabaseEncoding(), NO_XML_SUPPORT, and XMLOPTION_DOCUMENT.
Referenced by ExecEvalXmlExpr().
Definition at line 575 of file xml.c.
References appendBinaryStringInfo(), appendStringInfoString(), buf, StringInfoData::data, DatumGetXmlP(), fb(), initStringInfo(), len, lfirst, NO_XML_SUPPORT, pfree(), PointerGetDatum(), str, stringinfo_to_xmltype(), text_to_cstring(), VARHDRSZ, VARSIZE(), and x.
Referenced by ExecEvalXmlExpr(), and xmlconcat2().
|
extern |
Definition at line 894 of file xml.c.
References arg, XmlExpr::args, buf, ERROR, exprType(), fb(), forboth, i, lappend(), lfirst, map_sql_value_to_xml_value(), XmlExpr::named_args, NIL, NO_XML_SUPPORT, PG_CATCH, PG_END_TRY, PG_RE_THROW, PG_TRY, pg_xml_done(), pg_xml_init(), PG_XML_STRICTNESS_ALL, result, str, strVal, and xml_ereport().
Referenced by ExecEvalXmlExpr().
|
extern |
Definition at line 1032 of file xml.c.
References data, fb(), GetDatabaseEncoding(), NO_XML_SUPPORT, and SOFT_ERROR_OCCURRED.
Referenced by ExecEvalXmlExpr(), and texttoxml().
Definition at line 57 of file xml.h.
References fb(), and PointerGetDatum().
Definition at line 1054 of file xml.c.
References appendStringInfo(), appendStringInfoChar(), appendStringInfoString(), arg, buf, ereport, errcode(), errdetail(), errmsg, ERROR, fb(), initStringInfo(), NO_XML_SUPPORT, pfree(), pg_strcasecmp(), result, stringinfo_to_xmltype(), and text_to_cstring().
Referenced by ExecEvalXmlExpr().
Definition at line 1106 of file xml.c.
References appendStringInfoString(), buf, data, fb(), initStringInfo(), len, NO_XML_SUPPORT, str, stringinfo_to_xmltype(), text_to_cstring(), VARHDRSZ, VARSIZE(), XML_STANDALONE_NO, XML_STANDALONE_NO_VALUE, XML_STANDALONE_OMITTED, and XML_STANDALONE_YES.
Referenced by ExecEvalXmlExpr().
|
extern |
Definition at line 678 of file xml.c.
References buf, cstring_to_text_with_len(), data, ereport, errcode(), errmsg, ERROR, ErrorSaveContext::error_occurred, fb(), GetDatabaseEncoding(), len, newline, NO_XML_SUPPORT, PG_CATCH, PG_END_TRY, PG_RE_THROW, PG_TRY, pg_xml_done(), pg_xml_init(), PG_XML_STRICTNESS_ALL, result, root, str, xml_ereport(), and XMLOPTION_DOCUMENT.
Referenced by ExecEvalXmlExpr().
|
extern |
Definition at line 108 of file xml.c.
Referenced by map_sql_type_to_xmlschema_type(), and map_sql_value_to_xml_value().
|
extern |
Definition at line 109 of file xml.c.
Referenced by texttoxml(), xml_in(), xml_is_well_formed(), and xml_recv().
|
extern |
Definition at line 222 of file xml.c.
Referenced by ExecInitTableFuncScan().