postgresql/src/bin
Tom Lane 4fe2aa7656 Reduce memory leakage in initdb.
While testing commit 3e51b278d, I noted that initdb leaks about a
megabyte worth of data due to the sloppy bookkeeping in its
string-manipulating code.  That's not a huge amount on modern machines,
but it's still kind of annoying, and it's easy to fix by recognizing
that we might as well treat these arrays of strings as
modifiable-in-place.  There's no caller that cares about preserving
the old state of the array after replace_token or replace_guc_value.

With this fix, valgrind sees only a few hundred bytes leaked during
an initdb run.

Discussion: https://postgr.es/m/2844176.1674681919@sss.pgh.pa.us
2023-03-22 14:28:45 -04:00
..
initdb Reduce memory leakage in initdb. 2023-03-22 14:28:45 -04:00
pg_amcheck Teach verify_heapam() to validate update chains within a page. 2023-03-22 08:48:54 -04:00
pg_archivecleanup Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_basebackup meson: tests: Adjust with_icu/ZSTD env vars for pg_dump, pg_basebackup 2023-03-08 17:04:15 -08:00
pg_checksums Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_config Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_controldata Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_ctl Break up long GETTEXT_FILES lists 2023-03-08 15:05:43 +01:00
pg_dump Simplify and speed up pg_dump's creation of parent-table links. 2023-03-17 13:43:10 -04:00
pg_resetwal Break up long GETTEXT_FILES lists 2023-03-08 15:05:43 +01:00
pg_rewind Break up long GETTEXT_FILES lists 2023-03-08 15:05:43 +01:00
pg_test_fsync Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_test_timing Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_upgrade Avoid using atooid for numerical comparisons which arent Oids 2023-03-21 12:57:21 +01:00
pg_verifybackup Add support for progress reporting to pg_verifybackup 2023-02-06 14:40:31 +09:00
pg_waldump pg_waldump: Allow hexadecimal values for -t/--timeline option 2023-03-21 08:05:23 +01:00
pgbench pgbench: Prepare commands in pipelines in advance 2023-02-21 10:56:37 +01:00
pgevent Update copyright for 2023 2023-01-02 15:00:37 -05:00
psql Add SHELL_ERROR and SHELL_EXIT_CODE magic variables to psql. 2023-03-21 13:03:56 -04:00
scripts initdb: derive encoding from locale for ICU; similar to libc. 2023-03-10 10:51:24 -08:00
Makefile Update copyright for 2023 2023-01-02 15:00:37 -05:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00