- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit5a6c39b
committed
Disable commit timestamps during bootstrap
Attempting to use commit timestamps during bootstrapping leads to anassertion failure, that can be reached for example with an initdb -cthat enables track_commit_timestamp. It makes little sense to registera commit timestamp for a BootstrapTransactionId, so let's disable theactivation of the module in this case.This problem has been independently reported once by each author of thiscommit. Each author has proposed basically the same patch, relying onIsBootstrapProcessingMode() to skip the use of commit_ts duringbootstrap. The test addition is a suggestion by me, and is applied downto 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.comDiscussion:https://postgr.es/m/87plejmnpy.fsf@163.comBackpatch-through: 131 parent78ebda6 commit5a6c39b
File tree
2 files changed
+8
-2
lines changed- src
- backend/access/transam
- test/modules/commit_ts/t
2 files changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
707 | 707 | | |
708 | 708 | | |
709 | 709 | | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
710 | 717 | | |
711 | 718 | | |
712 | 719 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
0 commit comments
Comments
(0)