Skip to content

Commit 099c572

Browse files
committed
Use deconstruct_array_builtin instead of deconstruct_array
Commit 062a844 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]
1 parent cae0f3c commit 099c572

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/backend/catalog/pg_publication.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,8 +1059,7 @@ pg_get_publication_tables(PG_FUNCTION_ARGS)
10591059
* publication name.
10601060
*/
10611061
arr = PG_GETARG_ARRAYTYPE_P(0);
1062-
deconstruct_array(arr, TEXTOID, -1, false, TYPALIGN_INT,
1063-
&elems, NULL, &nelems);
1062+
deconstruct_array_builtin(arr, TEXTOID, &elems, NULL, &nelems);
10641063

10651064
/* Get Oids of tables from each publication. */
10661065
for (i = 0; i < nelems; i++)

0 commit comments

Comments
 (0)