@@ -1924,7 +1924,7 @@ Datum vops_text_output(PG_FUNCTION_ARGS)
1924
1924
PG_FUNCTION_INFO_V1 (vops_text_typmod_in );
1925
1925
Datum vops_text_typmod_in (PG_FUNCTION_ARGS )
1926
1926
{
1927
- ArrayType * arr = (ArrayType * )DatumGetPointer ( PG_DETOAST_DATUM (PG_GETARG_DATUM (0 ) ));
1927
+ ArrayType * arr = (ArrayType * )PG_DETOAST_DATUM (PG_GETARG_DATUM (0 ));
1928
1928
int n ;
1929
1929
int32 * typemods = ArrayGetIntegerTypmods (arr ,& n );
1930
1930
int len ;
@@ -4418,7 +4418,7 @@ vops_substitute_tables_with_projections(char const* queryString, Query *query)
4418
4418
datum = SPI_getbinval (tuple ,tupDesc ,3 ,& isnull );
4419
4419
if (!isnull )
4420
4420
{
4421
- vectorColumns = (ArrayType * )DatumGetPointer ( PG_DETOAST_DATUM (datum ) );
4421
+ vectorColumns = (ArrayType * )PG_DETOAST_DATUM (datum );
4422
4422
4423
4423
/* Construct set of used vector columns */
4424
4424
deconstruct_array (vectorColumns ,INT4OID ,4 , true,'i' ,& vectorAttnos ,NULL ,& nVectorColumns );
@@ -4431,7 +4431,7 @@ vops_substitute_tables_with_projections(char const* queryString, Query *query)
4431
4431
datum = SPI_getbinval (tuple ,tupDesc ,4 ,& isnull );
4432
4432
if (!isnull )
4433
4433
{
4434
- scalarColumns = isnull ?NULL : (ArrayType * )DatumGetPointer ( PG_DETOAST_DATUM (datum ) );
4434
+ scalarColumns = isnull ?NULL : (ArrayType * )PG_DETOAST_DATUM (datum );
4435
4435
4436
4436
/* Construct set of used scalar columns */
4437
4437
deconstruct_array (scalarColumns ,INT4OID ,4 , true,'i' ,& scalarAttnos ,NULL ,& nScalarColumns );