Use deconstruct_array_builtin instead of deconstruct_array
authorÁlvaro Herrera <[email protected]>
Fri, 11 Oct 2024 07:54:18 +0000 (09:54 +0200)
committerÁlvaro Herrera <[email protected]>
Fri, 11 Oct 2024 07:54:18 +0000 (09:54 +0200)
Commit 062a84442424 introduced use of deconstruct_array when
deconstruct_array_builtin can be used instead.  Do that to save some
code.

Author: Bertrand Drouvot <[email protected]>
Discussion: https://postgr.es/m/[email protected]

src/backend/catalog/pg_publication.c

index 7fe5fe2b86cfdc02640af2c1229529e490d7abe3..7e5e357fd9ef496d98c7b4f6bafece729a443e08 100644 (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++)