aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorÁlvaro Herrera <alvherre@alvh.no-ip.org>2024-10-11 09:54:18 +0200
committerÁlvaro Herrera <alvherre@alvh.no-ip.org>2024-10-11 09:54:18 +0200
commit099c572d3384f1cbac6f6a108f56de222c10c11e (patch)
tree91fe006315df4f997c2c5d1b21b74bea9d65cb79 /src
parentcae0f3c40554e85cd004732f3f57b9cb936136d2 (diff)
downloadpostgresql-099c572d3384f1cbac6f6a108f56de222c10c11e.tar.gz
postgresql-099c572d3384f1cbac6f6a108f56de222c10c11e.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/backend/catalog/pg_publication.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/catalog/pg_publication.c b/src/backend/catalog/pg_publication.c
index 7fe5fe2b86c..7e5e357fd9e 100644
--- a/src/backend/catalog/pg_publication.c
+++ b/src/backend/catalog/pg_publication.c
@@ -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++)