postgresql/src/backend
Masahiko Sawada bacbc4863b Refactor Copy{From|To}GetRoutine() to use pass-by-reference argument.
The change improves efficiency by eliminating unnecessary copying of
CopyFormatOptions.

The coverity also complained about inefficiencies caused by
pass-by-value.

Oversight in 7717f6300 and 2e4127b6d.

Reported-by: Junwang Zhao <zhjwpku@gmail.com>
Reported-by: Tom Lane <tgl@sss.pgh.pa.us> (per reports from coverity)
Author: Sutou Kouhei <kou@clear-code.com>
Reviewed-by: Junwang Zhao <zhjwpku@gmail.com>
Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>
Discussion: https://postgr.es/m/CAEG8a3L6YCpPksTQMzjD_CvwDEhW3D_t=5md9BvvdOs5k+TA=Q@mail.gmail.com
2025-03-04 10:38:41 -08:00
..
access Compress TID lists when writing GIN tuples to disk 2025-03-04 19:02:05 +01:00
archive Update copyright for 2025 2025-01-01 11:21:55 -05:00
backup Change relpath() et al to return path by value 2025-02-25 09:02:07 -05:00
bootstrap Remove unnecessary (char *) casts [mem] 2025-02-12 08:50:13 +01:00
catalog Simplify some logic around setting pg_attribute.atthasdef. 2025-03-03 13:35:48 -05:00
commands Refactor Copy{From|To}GetRoutine() to use pass-by-reference argument. 2025-03-04 10:38:41 -08:00
executor Generalize hash and ordering support in amapi 2025-02-27 17:03:31 +01:00
foreign Update copyright for 2025 2025-01-01 11:21:55 -05:00
jit Simplify executor's handling of CaseTestExpr & CoerceToDomainValue. 2025-01-30 13:21:42 -05:00
lib Update copyright for 2025 2025-01-01 11:21:55 -05:00
libpq backend libpq void * argument for binary data 2025-02-23 14:27:02 +01:00
main Update copyright for 2025 2025-01-01 11:21:55 -05:00
nodes Delay extraction of TIDBitmap per page offsets 2025-02-24 16:10:19 -05:00
optimizer Avoid NullTest deduction for clone clauses 2025-03-04 16:11:03 +09:00
parser Add ATAlterConstraint struct for ALTER .. CONSTRAINT 2025-02-19 13:06:13 +01:00
partitioning Fix bug in cbc127917 to handle nested Append correctly 2025-02-25 09:24:42 +09:00
po Update copyright for 2025 2025-01-01 11:21:55 -05:00
port Update copyright for 2025 2025-01-01 11:21:55 -05:00
postmaster Split pgstat_bestart() into three different routines 2025-03-04 14:09:44 +09:00
regex Support PG_UNICODE_FAST locale in the builtin collation provider. 2025-01-17 15:56:30 -08:00
replication Fix the race condition in ReplicationSlotAcquire(). 2025-02-27 09:47:04 +05:30
rewrite Eliminate code duplication in replace_rte_variables callbacks 2025-02-25 16:11:34 +09:00
snowball Update to latest Snowball sources. 2025-02-18 21:13:54 -05:00
statistics Add relallfrozen to pg_class 2025-03-03 11:18:05 -05:00
storage Make FP_LOCK_SLOTS_PER_BACKEND look like a function 2025-03-04 18:33:12 +01:00
tcop Avoid including explain.h in explain_format.h and explain_dr.h 2025-02-28 13:17:29 -05:00
tsearch Add is_analyze parameter to vacuum_delay_point(). 2025-02-11 16:38:14 -06:00
utils Make FP_LOCK_SLOTS_PER_BACKEND look like a function 2025-03-04 18:33:12 +01:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Blind attempt to fix LLVM dependency in the backend 2022-09-15 10:53:48 +07:00
Makefile Update copyright for 2025 2025-01-01 11:21:55 -05:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00
nls.mk Return yyparse() result not via global variable 2025-01-24 06:55:39 +01:00