postgresql/src/bin
Michael Paquier 6fb7c5d67c Centralize timestamp computation of control file on updates
This commit moves the timestamp computation of the control file within
the routine of src/common/ in charge of updating the backend's control
file, which is shared by multiple frontend tools (pg_rewind,
pg_checksums and pg_resetwal) and the backend itself.

This change has as direct effect to update the control file's timestamp
when writing the control file in pg_rewind and pg_checksums, something
that is helpful to keep track of control file updates for those
operations, something also tracked by the backend at startup within its
logs.  This part is arguably a bug, as ControlFileData->time should be
updated each time a new version of the control file is written, but this
is a behavior change so no backpatch is done.

Author: Amul Sul
Reviewed-by: Nathan Bossart, Michael Paquier, Bharath Rupireddy
Discussion: https://postgr.es/m/CAAJ_b97nd_ghRpyFV9Djf9RLXkoTbOUqnocq11WGq9TisX09Fw@mail.gmail.com
2021-11-29 13:36:13 +09:00
..
initdb Replace random(), pg_erand48(), etc with a better PRNG API and algorithm. 2021-11-28 21:33:07 -05:00
pg_amcheck Remove tests added by bd807be693. 2021-11-07 15:32:32 -05:00
pg_archivecleanup Move Perl test modules to a better namespace 2021-10-24 10:28:19 -04:00
pg_basebackup Remove useless LZ4 system call on failure when writing file header 2021-11-24 20:12:54 +09:00
pg_checksums Move Perl test modules to a better namespace 2021-10-24 10:28:19 -04:00
pg_config Move Perl test modules to a better namespace 2021-10-24 10:28:19 -04:00
pg_controldata Move Perl test modules to a better namespace 2021-10-24 10:28:19 -04:00
pg_ctl Move Perl test modules to a better namespace 2021-10-24 10:28:19 -04:00
pg_dump Adjust pg_dump's priority ordering for casts. 2021-11-22 17:16:29 -05:00
pg_resetwal Centralize timestamp computation of control file on updates 2021-11-29 13:36:13 +09:00
pg_rewind Be more specific about OOM in XLogReaderAllocate 2021-11-22 13:43:43 -03:00
pg_test_fsync Replace random(), pg_erand48(), etc with a better PRNG API and algorithm. 2021-11-28 21:33:07 -05:00
pg_test_timing Move Perl test modules to a better namespace 2021-10-24 10:28:19 -04:00
pg_upgrade Fix tests of pg_upgrade across different major versions 2021-10-13 09:22:00 +09:00
pg_verifybackup Move Perl test modules to a better namespace 2021-10-24 10:28:19 -04:00
pg_waldump Be more specific about OOM in XLogReaderAllocate 2021-11-22 13:43:43 -03:00
pgbench Replace random(), pg_erand48(), etc with a better PRNG API and algorithm. 2021-11-28 21:33:07 -05:00
pgevent
psql Improve psql tab completion for views, FDWs, sequences and transforms 2021-11-29 10:28:29 +09:00
scripts Clarify that --system reindexes system catalogs *only* 2021-10-27 16:28:11 +02:00
Makefile