mirror of
https://github.com/postgres/postgres.git
synced 2025-09-03 15:22:11 +03:00
Use deconstruct_array_builtin instead of deconstruct_array
Commit 062a844424
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:
@@ -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++)
|
||||
|
Reference in New Issue
Block a user