@@ -1924,7 +1924,7 @@ Datum vops_text_output(PG_FUNCTION_ARGS)
19241924PG_FUNCTION_INFO_V1 (vops_text_typmod_in );
19251925Datum vops_text_typmod_in (PG_FUNCTION_ARGS )
19261926{
1927- ArrayType * arr = (ArrayType * )DatumGetPointer ( PG_DETOAST_DATUM (PG_GETARG_DATUM (0 ) ));
1927+ ArrayType * arr = (ArrayType * ) PG_DETOAST_DATUM (PG_GETARG_DATUM (0 ));
19281928 int n ;
19291929 int32 * typemods = ArrayGetIntegerTypmods (arr , & n );
19301930 int len ;
@@ -4418,7 +4418,7 @@ vops_substitute_tables_with_projections(char const* queryString, Query *query)
44184418 datum = SPI_getbinval (tuple , tupDesc , 3 , & isnull );
44194419 if (!isnull )
44204420 {
4421- vectorColumns = (ArrayType * )DatumGetPointer ( PG_DETOAST_DATUM (datum ) );
4421+ vectorColumns = (ArrayType * ) PG_DETOAST_DATUM (datum );
44224422
44234423 /* Construct set of used vector columns */
44244424 deconstruct_array (vectorColumns , INT4OID , 4 , true, 'i' , & vectorAttnos , NULL , & nVectorColumns );
@@ -4431,7 +4431,7 @@ vops_substitute_tables_with_projections(char const* queryString, Query *query)
44314431 datum = SPI_getbinval (tuple , tupDesc , 4 , & isnull );
44324432 if (!isnull )
44334433 {
4434- scalarColumns = isnull ? NULL : (ArrayType * )DatumGetPointer ( PG_DETOAST_DATUM (datum ) );
4434+ scalarColumns = isnull ? NULL : (ArrayType * ) PG_DETOAST_DATUM (datum );
44354435
44364436 /* Construct set of used scalar columns */
44374437 deconstruct_array (scalarColumns , INT4OID , 4 , true, 'i' , & scalarAttnos , NULL , & nScalarColumns );
0 commit comments