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 <bertranddrouvot.pg@gmail.com> Discussion: https://postgr.es/m/Zwi5g2GzlUX1NqxR@ip-10-97-1-34.eu-west-3.compute.internal
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy