postgres/src/backend
Peter Eisentraut d746021de1 Add construct_array_builtin, deconstruct_array_builtin
There were many calls to construct_array() and deconstruct_array() for
built-in types, for example, when dealing with system catalog columns.
These all hardcoded the type attributes necessary to pass to these
functions.

To simplify this a bit, add construct_array_builtin(),
deconstruct_array_builtin() as wrappers that centralize this hardcoded
knowledge.  This simplifies many call sites and reduces the amount of
hardcoded stuff that is spread around.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/2914356f-9e5f-8c59-2995-5997fc48bcba%40enterprisedb.com
2022-07-01 11:23:15 +02:00
..
access Add construct_array_builtin, deconstruct_array_builtin 2022-07-01 11:23:15 +02:00
bootstrap Be more careful about GucSource for internally-driven GUC settings. 2022-06-08 13:26:18 -04:00
catalog Add construct_array_builtin, deconstruct_array_builtin 2022-07-01 11:23:15 +02:00
commands Add construct_array_builtin, deconstruct_array_builtin 2022-07-01 11:23:15 +02:00
executor Add construct_array_builtin, deconstruct_array_builtin 2022-07-01 11:23:15 +02:00
foreign Create routine able to set single-call SRFs for Materialize mode 2022-03-07 10:26:29 +09:00
jit Pre-beta mechanical code beautification. 2022-05-12 15:17:30 -04:00
lib Pre-beta mechanical code beautification. 2022-05-12 15:17:30 -04:00
libpq Remove misguided SSL key file ownership check in libpq. 2022-05-26 14:14:05 -04:00
main Fix collection of typos in the code and the documentation 2022-03-15 11:29:35 +09:00
nodes Harden range_table_mutator() against null RangeTblEntry.subquery. 2022-06-26 08:58:05 -04:00
optimizer Improve comments for trivial_subqueryscan(). 2022-06-09 19:30:00 +09:00
parser Add construct_array_builtin, deconstruct_array_builtin 2022-07-01 11:23:15 +02:00
partitioning Pre-beta mechanical code beautification. 2022-05-12 15:17:30 -04:00
po Translation updates 2022-06-27 08:19:02 +02:00
port Ensure that the argument of shmdt(2) is declared "void *". 2022-02-15 17:17:28 -05:00
postmaster Be more careful about GucSource for internally-driven GUC settings. 2022-06-08 13:26:18 -04:00
regex Pre-beta mechanical code beautification. 2022-05-12 15:17:30 -04:00
replication Add construct_array_builtin, deconstruct_array_builtin 2022-07-01 11:23:15 +02:00
rewrite Fix incautious CTE matching in rewriteSearchAndCycle(). 2022-04-23 12:16:12 -04:00
snowball Update copyright for 2022 2022-01-07 19:04:57 -05:00
statistics Add construct_array_builtin, deconstruct_array_builtin 2022-07-01 11:23:15 +02:00
storage Harden dsm_impl.c against unexpected EEXIST. 2022-07-01 14:17:54 +12:00
tcop Fix DDL deparse of CREATE OPERATOR CLASS 2022-05-20 18:52:55 +02:00
tsearch Add construct_array_builtin, deconstruct_array_builtin 2022-07-01 11:23:15 +02:00
utils Add construct_array_builtin, deconstruct_array_builtin 2022-07-01 11:23:15 +02:00
.gitignore
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
Makefile Server-side gzip compression. 2022-01-24 15:13:18 -05:00
nls.mk Report progress of startup operations that take a long time. 2021-10-25 11:51:57 -04:00