↑↓ select ↵ open ⌫ change scope Open full search

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

Functions / Xml Functions

The function xmlcomment creates an XML value containing an XML comment with the specified text as content.

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

Signatures & examples

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 with a “-”, otherwise the resulting construct would not be a valid XML comment. If the argument is null, the result is null.
Version history 4
  1. 12 → 13 changed
  2. 9.6 → 10 changed
  3. 8.3 → 8.4 changed
  4. 8.2 → 8.3 added

Definition snapshot: b7bd9cda · English manual source