Search PostgreSQL documentation
PG 18 · Browse by category, or enter a name or keyword
Category index4025
Writing SECURITY DEFINER Functions SafelyWriting SECURITY DEFINER Functions Safely
Because a SECURITY DEFINER function is executed with the privileges of the user that owns it, care is needed to ensure that the function cannot be m…Writing SECURITY DEFINER Functions Safely
Writing Trigger Functions in C37.3. Writing Trigger Functions in C
This section describes the low-level details of the interface to a trigger function. This information is only needed when writing trigger functions in C.…Writing Trigger Functions in C
XML Functions9.15. XML Functions
The functions and function-like expressions described in this section operate on values of type xml. See Section 8.13 for information about the xml type. The function-lik…XML Functions
XML Limits and Conformance to SQL/XMLD.3. XML Limits and Conformance to SQL/XML
Significant revisions to the XML-related specifications in ISO/IEC 9075-14 (SQL/XML) were introduced with SQL:2006. PostgreSQL's implementation of …XML Limits and Conformance to SQL/XML
XML Predicates9.15.2. XML Predicates
The expressions described in this section check properties of xml values.XML Predicates
XML Type8.13. XML Type
The xml data type can be used to store XML data. Its advantage over storing XML data in a text field is that it checks the input values for well-formedness, and there are supp…XML Type
xml2 — XPath querying and XSLT functionalityF.50. xml2 — XPath querying and XSLT functionality
The xml2 module provides XPath querying and XSLT functionality.xml2 — XPath querying and XSLT functionality
xml_is_well_formed9.15.2.4. xml_is_well_formed
xml_is_well_formed ( text ) → boolean xml_is_well_formed_document ( text ) → boolean xml_is_well_formed_content ( text ) → boolean
These functions check whether …xml_is_well_formed
xmlagg9.15.1.8. xmlagg
xmlagg ( xml ) → xml
The function xmlagg is, unlike the other functions described here, an aggregate function. It concatenates the input values to the aggregate function cal…xmlagg
xmlcomment9.15.1.2. xmlcomment
xmlcomment ( text ) → xml
The function xmlcomment creates an XML value containing an XML comment with the specified text as content. The text cannot contain “--” or end …xmlcomment
xmlconcat9.15.1.3. xmlconcat
xmlconcat ( xml [, ...] ) → xml
The function xmlconcat concatenates a list of individual XML values to create a single value containing an XML content fragment. Null valu…xmlconcat
xmlelement9.15.1.4. xmlelement
xmlelement ( NAME name [, XMLATTRIBUTES ( attvalue [ AS attname ] [, ...] ) ] [, content [, ...]] ) → xml
The xmlelement expression produces an XML element with the give…xmlelement
XMLEXISTS9.15.2.3. XMLEXISTS
XMLEXISTS ( text PASSING [BY {REF|VALUE}] xml [BY {REF|VALUE}] ) → boolean
The function xmlexists evaluates an XPath 1.0 expression (the first argument), with the passed …XMLEXISTS
xmlforest9.15.1.5. xmlforest
xmlforest ( content [ AS name ] [, ...] ) → xml
The xmlforest expression produces an XML forest (sequence) of elements using the given names and content. As for xmlelemen…xmlforest
xmlpi9.15.1.6. xmlpi
xmlpi ( NAME name [, content ] ) → xml
The xmlpi expression creates an XML processing instruction. As for xmlelement, the name must be a simple identifier, while the content …xmlpi
xmlroot9.15.1.7. xmlroot
xmlroot ( xml, VERSION {text|NO VALUE} [, STANDALONE {YES|NO|NO VALUE} ] ) → xml
The xmlroot expression alters the properties of the root node of an XML value. If a version…xmlroot
xmltable9.15.3.3. xmltable
XMLTABLE ( [ XMLNAMESPACES ( namespace_uri AS namespace_name [, ...] ), ] row_expression PASSING [BY {REF|VALUE}] document_expression [BY {REF|VALUE}] COLUMNS name { type …xmltable
xmltext9.15.1.1. xmltext
xmltext ( text ) → xml
The function xmltext returns an XML value with a single text node containing the input argument as its content. Predefined entities like ampersand (&…xmltext
xpath9.15.3.1. xpath
xpath ( xpath text, xml xml [, nsarray text[] ] ) → xml[]
The function xpath evaluates the XPath 1.0 expression xpath (given as text) against the XML value xml. It returns an…xpath
xpath_exists9.15.3.2. xpath_exists
xpath_exists ( xpath text, xml xml [, nsarray text[] ] ) → boolean
The function xpath_exists is a specialized form of the xpath function. Instead of returning the indi…xpath_exists
xpath_tableF.50.3. xpath_table
xpath_table(text key, text document, text relation, text xpaths, text criteria) returns setof record
xpath_table is a table function that evaluates a set of XPath queries…xpath_table
XSLT FunctionsF.50.4. XSLT Functions
The following functions are available if libxslt is installed:XSLT Functions
xslt_processF.50.4.1. xslt_process
xslt_process(text document, text stylesheet, text paramlist) returns text
This function applies the XSL stylesheet to the document and returns the transformed result. …xslt_process
Zero-Column TablesZero-Column Tables
PostgreSQL allows a table of no columns to be created (for example, CREATE TABLE foo();). This is an extension from the SQL standard, which does not allow zero-column tabl…Zero-Column Tables
“All-the-Same” Inner Tuples65.3.4.3. “All-the-Same” Inner Tuples
The SP-GiST core can override the results of the operator class's picksplit function when picksplit fails to divide the supplied leaf values into at lea…“All-the-Same” Inner Tuples
More results
Find definitions in the PostgreSQL manuals, reference library, and extension catalogue.
pg17: choose a version ex: extensions only ↑↓ select ↵ open