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: 24da5b2
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: a7187c3
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Apr 2, 2025

  1. Remove unnecessary type violation in tsvectorrecv().

    compareentry() is declared to work on WordEntryIN structs, but
    tsvectorrecv() is using it in two places to work on WordEntry
    structs.  This is almost okay, since WordEntry is the first
    field of WordEntryIN.  But on machines with 8-byte pointers,
    WordEntryIN will have a larger alignment spec than WordEntry,
    and it's at least theoretically possible that the compiler
    could generate code that depends on the larger alignment.
    
    Given the lack of field reports, this may be just a hypothetical bug
    that upsets nothing except sanitizer tools.  Or it may be real on
    certain hardware but nobody's tried to use tsvectorrecv() on such
    hardware.  In any case we should fix it, and the fix is trivial:
    just change compareentry() so that it works on WordEntry without any
    mention of WordEntryIN.  We can also get rid of the quite-useless
    intermediate function WordEntryCMP.
    
    Bug: #18875
    Reported-by: Alexander Lakhin <[email protected]>
    Author: Tom Lane <[email protected]>
    Discussion: https://postgr.es/m/[email protected]
    Backpatch-through: 13
    tglsfdc committed Apr 2, 2025
    Configuration menu
    Copy the full SHA
    a7187c3 View commit details
    Browse the repository at this point in the history
Loading