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 <bertranddrouvot.pg@gmail.com>
Discussion: https://postgr.es/m/Zwi5g2GzlUX1NqxR@ip-10-97-1-34.eu-west-3.compute.internal
This commit is contained in:
Álvaro Herrera 2024-10-11 09:54:18 +02:00
parent cae0f3c405
commit 099c572d33
No known key found for this signature in database
GPG Key ID: 1C20ACB9D5C564AE

View File

@ -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++)