Skip to content

Fix build against PostgreSQL 19#383

Open
devrimgunduz wants to merge 1 commit into
pgpointcloud:masterfrom
devrimgunduz:master
Open

Fix build against PostgreSQL 19#383
devrimgunduz wants to merge 1 commit into
pgpointcloud:masterfrom
devrimgunduz:master

Conversation

@devrimgunduz

@devrimgunduz devrimgunduz commented Jul 11, 2026

Copy link
Copy Markdown
  1. pc_access.c PG19 removed the bits8 typedef (utils/array.h now uses uint8 directly, e.g. ARR_NULLBITMAP() returns uint8*). Replace all uses of bits8 with uint8 (array_get_isnull(), pcpatch_from_point_array(), pcpatch_from_patch_array(), array_to_cstring_array()).

  2. pc_pgsql.c PG19 added an int *fgc_flags output parameter to FuncnameGetCandidates() (8 args instead of 7), used to report why a lookup failed. Add a new #elif PGSQL_VERSION < 190 branch that keeps the existing PG14-PG18 (7-arg) call, and a PG19+ branch that passes a local int fgc_flags to satisfy the new signature. The flags aren't otherwise consumed since this call only wants the OID of a uniquely-named function.

Per pgdg-packaging/pgdg-rpms#213

 1. pc_access.c
    PG19 removed the `bits8` typedef (utils/array.h now uses `uint8`
    directly, e.g. ARR_NULLBITMAP() returns uint8*). Replace all uses
    of `bits8` with `uint8` (array_get_isnull(), pcpatch_from_point_array(),
    pcpatch_from_patch_array(), array_to_cstring_array()).

 2. pc_pgsql.c
    PG19 added an `int *fgc_flags` output parameter to
    FuncnameGetCandidates() (8 args instead of 7), used to report why a
    lookup failed. Add a new `#elif PGSQL_VERSION < 190` branch that
    keeps the existing PG14-PG18 (7-arg) call, and a PG19+ branch that
    passes a local `int fgc_flags` to satisfy the new signature. The
    flags aren't otherwise consumed since this call only wants the OID
    of a uniquely-named function.
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