mirror of
https://github.com/postgres/postgres.git
synced 2025-06-03 00:02:26 -04:00
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:
parent
cae0f3c405
commit
099c572d33
@ -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++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user