[PostGIS] #5965: PG19 compile is spitting out warnings about PG_GSERIALIZED_DATUM_NEEDS_DETOAST

PostGIS trac at osgeo.org
Sun Sep 7 10:38:21 PDT 2025


#5965: PG19 compile is spitting out warnings about
PG_GSERIALIZED_DATUM_NEEDS_DETOAST
----------------------+---------------------------
  Reporter:  robe     |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  blocker  |  Milestone:  PostGIS 3.7.0
 Component:  postgis  |    Version:  master
Resolution:           |   Keywords:
----------------------+---------------------------
Comment (by Laurenz Albe):

 I need this additional patch for the build to succeed:

 {{{#!diff
 diff --git a/libpgcommon/lwgeom_pg.h b/libpgcommon/lwgeom_pg.h
 index 102d84f35..d7a7c0755 100644
 --- a/libpgcommon/lwgeom_pg.h
 +++ b/libpgcommon/lwgeom_pg.h
 @@ -92,7 +92,7 @@ void pg_install_lwgeom_handlers(void);
  #define PG_GSERIALIZED_DATUM_NEEDS_DETOAST(datum) \
         (VARATT_IS_EXTENDED((datum)) || VARATT_IS_EXTERNAL((datum)) ||
 VARATT_IS_COMPRESSED((datum)))
  #define PG_GETARG_GSERIALIZED_HEADER(varno) \
 -       PG_GSERIALIZED_DATUM_NEEDS_DETOAST(PG_GETARG_DATUM(varno)) \
 +
 PG_GSERIALIZED_DATUM_NEEDS_DETOAST(DatumGetPointer(PG_GETARG_DATUM(varno)))
 \
         ? ((GSERIALIZED *)PG_DETOAST_DATUM_SLICE(PG_GETARG_DATUM(varno),
 0, gserialized_max_header_size())) \
         : ((GSERIALIZED *)(PG_GETARG_DATUM(varno)))
  }}}
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5965#comment:6>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list