Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Fix build due to new checks in PostgreSQL 16 #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 18, 2022
Merged

Fix build due to new checks in PostgreSQL 16 #25

merged 1 commit into from
Nov 18, 2022

Conversation

MarinaPolyakova
Copy link

Due to the commit c8b2ef05f481ef06326d7b9f3eb14b303f215c7e in PostgreSQL 16 the macro PG_DETOAST_DATUM returns a pointer to a varlena structure and the input to the function DatumGetPointer must be of type Datum. So

  • Use a simple cast instead of the function DatumGetPointer.
  • In the macro VOPS_TEXT_TILE use the function pg_detoast_datum directly instead of the macro DatumGetTextP. As a result, call the function DatumGetPointer in the macro VOPS_GET_TILE because here the val type is usually Datum.

Due to the commit c8b2ef05f481ef06326d7b9f3eb14b303f215c7e in PostgreSQL 16 the
macro PG_DETOAST_DATUM returns a pointer to a varlena structure and the input to
the function DatumGetPointer must be of type Datum. So
- Use a simple cast instead of the function DatumGetPointer.
- In the macro VOPS_TEXT_TILE use the function pg_detoast_datum directly instead
  of the macro DatumGetTextP. As a result, call the function DatumGetPointer in
  the macro VOPS_GET_TILE because here the val type is usually Datum.
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.

2 participants