From: Álvaro Herrera Date: Fri, 11 Oct 2024 07:54:18 +0000 (+0200) Subject: Use deconstruct_array_builtin instead of deconstruct_array X-Git-Tag: REL_18_BETA1~1739 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=099c572d3384f1cbac6f6a108f56de222c10c11e;p=postgresql.git Use deconstruct_array_builtin instead of deconstruct_array Commit 062a84442424 introduced use of deconstruct_array when deconstruct_array_builtin can be used instead. Do that to save some code. Author: Bertrand Drouvot Discussion: https://postgr.es/m/Zwi5g2GzlUX1NqxR@ip-10-97-1-34.eu-west-3.compute.internal --- diff --git a/src/backend/catalog/pg_publication.c b/src/backend/catalog/pg_publication.c index 7fe5fe2b86c..7e5e357fd9e 100644 --- a/src/backend/catalog/pg_publication.c +++ b/src/backend/catalog/pg_publication.c @@ -1059,8 +1059,7 @@ pg_get_publication_tables(PG_FUNCTION_ARGS) * publication name. */ arr = PG_GETARG_ARRAYTYPE_P(0); - deconstruct_array(arr, TEXTOID, -1, false, TYPALIGN_INT, - &elems, NULL, &nelems); + deconstruct_array_builtin(arr, TEXTOID, &elems, NULL, &nelems); /* Get Oids of tables from each publication. */ for (i = 0; i < nelems; i++)