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/5209~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/5209
Choose a head ref
  • 2 commits
  • 3 files changed
  • 2 contributors

Commits on Feb 20, 2025

  1. Support POSITION with nondeterministic collations

    This allows using text position search functions with nondeterministic
    collations.  These functions are
    
    - position, strpos
    - replace
    - split_part
    - string_to_array
    - string_to_table
    
    which all use common internal infrastructure.
    
    There was previously no internal implementation of this, so it was met
    with a not-supported error.  This adds the internal implementation and
    removes the error.
    
    Unlike with deterministic collations, the search cannot use any
    byte-by-byte optimized techniques but has to go substring by
    substring.  We also need to consider that the found match could have a
    different length than the needle and that there could be substrings of
    different length matching at a position.  In most cases, we need to
    find the longest such substring (greedy semantics).
    
    Discussion: https://www.postgresql.org/message-id/flat/[email protected]
    petere authored and Commitfest Bot committed Feb 20, 2025
    Configuration menu
    Copy the full SHA
    da277c8 View commit details
    Browse the repository at this point in the history
  2. [CF 5209] v2 - Support POSITION with nondeterministic collations

    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/5209
    
    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): Peter Eisentraut
    Commitfest Bot committed Feb 20, 2025
    Configuration menu
    Copy the full SHA
    7ec322a View commit details
    Browse the repository at this point in the history
Loading