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: b4cbc10
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: c947307
Choose a head ref
  • 2 commits
  • 20 files changed
  • 2 contributors

Commits on Dec 12, 2025

  1. Add XMLCast function (SQL/XML X025)

    This patch introduces support for the XMLCAST function, as specified
    in SQL/XML:2023 (ISO/IEC 9075-14:2023), Subclause 6.7 "<XML cast
    specification>". It enables standards-compliant conversion between
    SQL data types and XML, following the lexical rules defined by the
    W3C XML Schema Part 2.
    
    XMLCast provides an alternative to CAST when converting SQL values
    into XML content, ensuring the output uses canonical XML Schema
    lexical representations. For example, timestamp and interval values
    are rendered as xs:dateTime and xs:duration (e.g.,
    "2024-01-01T12:00:00Z" or "P1Y2M"), conforming to ISO 8601 formats.
    
    Conversely, XMLCast also allows converting XML content back into SQL
    types (e.g., boolean, numeric, date/time), validating the input string
    according to XML Schema lexical forms.
    
    Supported casts include:
    * SQL -> XML: boolean, numeric, character, date/time, interval, binary
    * XML -> SQL: the inverse of the above, with lexical validation
    
    The BY REF and BY VALUE clauses are accepted for SQL/XML compatibility,
    but ignored.
    
    To support proper handling of infinity values in numeric types during
    XML casting (as required by XML Schema specifications), two helper
    functions (numeric_is_inf and numeric_is_positive_inf) have been
    added to numeric.c.
    jimjonesbr authored and Commitfest Bot committed Dec 12, 2025
    Configuration menu
    Copy the full SHA
    08185be View commit details
    Browse the repository at this point in the history
  2. [CF 5110] v17 - Add XMLCast (SQL/XML X025)

    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/5110
    
    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/6cc581e9-858c-4aae-93e3-d2f67d6826b7@uni-muenster.de
    Author(s): Jim Jones
    Commitfest Bot committed Dec 12, 2025
    Configuration menu
    Copy the full SHA
    c947307 View commit details
    Browse the repository at this point in the history
Loading