Skip to content

Name the GiST translate-cmptype support function as PostgreSQL 18 defines it - #33

Merged
estebanzimanyi merged 1 commit into
MobilityDB:masterfrom
estebanzimanyi:fix/pg18-translate-cmptype-name
Aug 28, 2026
Merged

Name the GiST translate-cmptype support function as PostgreSQL 18 defines it#33
estebanzimanyi merged 1 commit into
MobilityDB:masterfrom
estebanzimanyi:fix/pg18-translate-cmptype-name

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

PostgreSQL 18 declares the default translate-cmptype support function as gist_translate_cmptype_common in utils/fmgrprotos.h, which mgistutil.c already includes, so the definition it carries takes that name and draws its prototype from the server header the way every other core-named function in the file does — the thirteen copied alongside it read theirs from access/gist_private.h and gisttranslatecmptype reads its from access/gist.h. Building against PostgreSQL 18.3 goes from one -Wmissing-prototypes warning to none, and the support function number the opclasses use is unchanged.

…ines it

PostgreSQL 18 declares the default translate-cmptype support function as
gist_translate_cmptype_common in utils/fmgrprotos.h, which mgistutil.c already
includes, so the definition it carries takes that name and draws its prototype
from the server header the way every other core-named function in the file does.
@estebanzimanyi
estebanzimanyi merged commit 6ec67fa into MobilityDB:master Aug 28, 2026
1 check passed
@estebanzimanyi
estebanzimanyi deleted the fix/pg18-translate-cmptype-name branch August 28, 2026 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant