diff options
author | Masahiko Sawada <msawada@postgresql.org> | 2025-03-04 10:38:41 -0800 |
---|---|---|
committer | Masahiko Sawada <msawada@postgresql.org> | 2025-03-04 10:38:41 -0800 |
commit | bacbc4863b3bfb79b9577f11f2c77e4df9f66d66 (patch) | |
tree | dd242c1aa05c18d264f4d3fe5b890018e9e01b3e /src/backend/access/gist/gistbuild.c | |
parent | 0b2a45a5d1f2b088640a7eb7817ca6a0513a2717 (diff) | |
download | postgresql-bacbc4863b3bfb79b9577f11f2c77e4df9f66d66.tar.gz postgresql-bacbc4863b3bfb79b9577f11f2c77e4df9f66d66.zip |
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
Diffstat (limited to 'src/backend/access/gist/gistbuild.c')
0 files changed, 0 insertions, 0 deletions