aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/formatting.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2025-07-04 15:09:24 +0900
committerMichael Paquier <michael@paquier.xyz>2025-07-04 15:09:24 +0900
commit5a6c39b6df3313e5c2d3aed714a56f5a5c6be3f2 (patch)
treece6ac800e11152bb68440e36691f92d31a34c869 /src/backend/utils/adt/formatting.c
parent78ebda66bf2683d42b853660757aaf16268ee3b7 (diff)
downloadpostgresql-5a6c39b6df3313e5c2d3aed714a56f5a5c6be3f2.tar.gz
postgresql-5a6c39b6df3313e5c2d3aed714a56f5a5c6be3f2.zip
Disable commit timestamps during bootstrap
Attempting to use commit timestamps during bootstrapping leads to an assertion failure, that can be reached for example with an initdb -c that enables track_commit_timestamp. It makes little sense to register a commit timestamp for a BootstrapTransactionId, so let's disable the activation of the module in this case. This problem has been independently reported once by each author of this commit. Each author has proposed basically the same patch, relying on IsBootstrapProcessingMode() to skip the use of commit_ts during bootstrap. The test addition is a suggestion by me, and is applied down to v16. Author: Hayato Kuroda <kuroda.hayato@fujitsu.com> Author: Andy Fan <zhihuifan1213@163.com> Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com> Reviewed-by: Fujii Masao <masao.fujii@oss.nttdata.com> Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://postgr.es/m/OSCPR01MB14966FF9E4C4145F37B937E52F5102@OSCPR01MB14966.jpnprd01.prod.outlook.com Discussion: https://postgr.es/m/87plejmnpy.fsf@163.com Backpatch-through: 13
Diffstat (limited to 'src/backend/utils/adt/formatting.c')
0 files changed, 0 insertions, 0 deletions