summaryrefslogtreecommitdiff
path: root/contrib/pg_trgm/trgm_op.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/pg_trgm/trgm_op.c')
-rw-r--r--contrib/pg_trgm/trgm_op.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/contrib/pg_trgm/trgm_op.c b/contrib/pg_trgm/trgm_op.c
index e9b7981619f..cbcc481a172 100644
--- a/contrib/pg_trgm/trgm_op.c
+++ b/contrib/pg_trgm/trgm_op.c
@@ -977,12 +977,7 @@ show_trgm(PG_FUNCTION_ARGS)
d[i] = PointerGetDatum(item);
}
- a = construct_array(d,
- ARRNELEM(trg),
- TEXTOID,
- -1,
- false,
- TYPALIGN_INT);
+ a = construct_array_builtin(d, ARRNELEM(trg), TEXTOID);
for (i = 0; i < ARRNELEM(trg); i++)
pfree(DatumGetPointer(d[i]));