aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistget.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2021-11-29 13:36:13 +0900
committerMichael Paquier <michael@paquier.xyz>2021-11-29 13:36:13 +0900
commit6fb7c5d67cdd55454fe6317f939a191f85e96473 (patch)
tree74fdb6e0cf9a5732a2c31cb0f7867cf638232db2 /src/backend/access/gist/gistget.c
parent3804539e48e794781c6145c7f988f5d507418fa8 (diff)
downloadpostgresql-6fb7c5d67cdd55454fe6317f939a191f85e96473.tar.gz
postgresql-6fb7c5d67cdd55454fe6317f939a191f85e96473.zip
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
Diffstat (limited to 'src/backend/access/gist/gistget.c')
0 files changed, 0 insertions, 0 deletions