↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Functions / Xml Functions

xpath_exists

Read the PG 18 manual

The function xpath_exists is a specialized form of the xpath function.

Reading PG 18current·documented in 17 of 27 versions, 9.1 to 20

Signatures & examples

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 individual XML values that satisfy the XPath 1.0 expression, this function returns a Boolean indicating whether the query was satisfied or not (specifically, whether it produced any value other than an empty node-set). This function is equivalent to the XMLEXISTS predicate, except that it also offers support for a namespace mapping argument.
Version history 3
  1. 12 → 13 changed
  2. 9.6 → 10 changed
  3. 9.0 → 9.1 added

Definition snapshot: 2026-09-14T13:14:25.684213+00:00@99e6866c · English manual source