Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: postgresql-cfbot/postgresql
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: cf/5279~1
Choose a base ref
...
head repository: postgresql-cfbot/postgresql
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cf/5279
Choose a head ref
  • 2 commits
  • 15 files changed
  • 2 contributors

Commits on Aug 9, 2025

  1. Add XMLSerialize: version and explicit XML declaration

    * Explicit XML declaration (SQL/XML:2023, X078)
    
    This patch adds the options INCLUDING XMLDECLARATION and
    EXCLUDING XMLDECLARATION to XMLSERIALIZE, allowing users
    to explicitly control the presence of the XML declaration
    (e.g., <?xml version="1.0" encoding="UTF-8"?>) in the
    serialized output of XML values. If neither option is
    specified, the output includes the declaration only if the
    input XML value already contained one.
    
    * Version support (SQL/XML:2023, X076)
    
    The VERSION option allows specifying the version string
    to use in the XML declaration. If specified, the version
    must conform to the lexical rules of the XML standard,
    e.g., '1.0' or '1.1'. If omitted or NULL, version '1.0'
    is assumed.
    
    In DOCUMENT mode, the version string is validated by
    libxml2’s `xmlNewDoc()`, which will raise an error for
    invalid versions and a warning for unsupported ones.
    No validation is performed in CONTENT mode. This option
    has no effect unless INCLUDING XMLDECLARATION is also
    specified or the input XML value already contains a
    declaration.
    
    Examples:
    
    SELECT xmlserialize(
             DOCUMENT xmlval AS text
             VERSION '1.0'
             INCLUDING XMLDECLARATION);
    
    SELECT xmlserialize(
             DOCUMENT xmlval AS text
             EXCLUDING XMLDECLARATION);
    
    This patch also includes regression tests and documentation.
    jimjonesbr authored and Commitfest Bot committed Aug 9, 2025
    Configuration menu
    Copy the full SHA
    219ae92 View commit details
    Browse the repository at this point in the history
  2. [CF 5279] v6 - Add XMLSerialize: version (SQL/XML X076), explicit dec…

    …laration (SQL/XML X078)
    
    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/5279
    
    The branch will be overwritten each time a new patch version is posted to
    the thread, and also periodically to check for bitrot caused by changes
    on the master branch.
    
    Patch(es): https://www.postgresql.org/message-id/[email protected]
    Author(s): Jim Jones
    Commitfest Bot committed Aug 9, 2025
    Configuration menu
    Copy the full SHA
    1a418d4 View commit details
    Browse the repository at this point in the history
Loading