postgresql/src/backend
Robert Haas 0fcc2decd4 In clog_redo(), don't set XactCtl->shared->latest_page_number.
The comment is no longer accurate, and hasn't been entirely accurate
since Hot Standby was introduced. The original idea here was that
StartupCLOG() wouldn't be called until the end of recovery and
therefore this value would be uninitialized when this code is reached,
but Hot Standby made that true only when hot_standby=off, and commit
1f113abdf8 means that this value is now
always initialized before replay even starts.

The original purpose of this code was to bypass the sanity check
in SimpleLruTruncate(), which will no longer occur: now, if something
is wrong, that sanity check might trip during recovery. That's
probably a good thing, because in the current code base
latest_page_number should always be initialized and therefore we
expect that the sanity check should pass. If it doesn't, something
has gone wrong, and complaining about it is appropriate.

Patch by me, reviewed by Heikki Linnakangas.

Discussion: http://postgr.es/m/CA+TgmoZYig9+AQodhF5sRXuKkJ=RgFDugLr3XX_dz_F-p=TwTg@mail.gmail.com
2021-01-27 13:11:30 -05:00
..
access In clog_redo(), don't set XactCtl->shared->latest_page_number. 2021-01-27 13:11:30 -05:00
bootstrap Update copyright for 2021 2021-01-02 13:06:25 -05:00
catalog Fix ALTER DEFAULT PRIVILEGES with duplicated objects 2021-01-20 11:38:17 +09:00
commands Refactor code in tablecmds.c to check and process tablespace moves 2021-01-27 11:54:16 +09:00
executor Rethink recently-added SPI interfaces. 2021-01-26 16:37:12 -05:00
foreign Update copyright for 2021 2021-01-02 13:06:25 -05:00
jit Update copyright for 2021 2021-01-02 13:06:25 -05:00
lib Update copyright for 2021 2021-01-02 13:06:25 -05:00
libpq Move SSL information callback earlier to capture more information 2021-01-22 09:26:27 +09:00
main Update copyright for 2021 2021-01-02 13:06:25 -05:00
nodes Implement support for bulk inserts in postgres_fdw 2021-01-20 23:57:27 +01:00
optimizer Fix pull_varnos' miscomputation of relids set for a PlaceHolderVar. 2021-01-21 15:37:23 -05:00
parser Re-allow DISTINCT in pl/pgsql expressions. 2021-01-22 16:26:22 -05:00
partitioning Update copyright for 2021 2021-01-02 13:06:25 -05:00
po Translation updates 2020-05-18 12:49:30 +02:00
port Update copyright for 2021 2021-01-02 13:06:25 -05:00
postmaster Add pg_stat_database counters for sessions and session time 2021-01-17 13:52:31 +01:00
regex Fix ancient bug in parsing of BRE-mode regular expressions. 2021-01-08 12:16:00 -05:00
replication Fix two typos in snapbuild.c. 2021-01-25 12:15:10 -08:00
rewrite Update copyright for 2021 2021-01-02 13:06:25 -05:00
snowball Update copyright for 2021 2021-01-02 13:06:25 -05:00
statistics Update copyright for 2021 2021-01-02 13:06:25 -05:00
storage Remove CheckpointLock. 2021-01-25 12:34:38 -05:00
tcop Improve performance of repeated CALLs within plpgsql procedures. 2021-01-25 22:28:29 -05:00
tsearch Update copyright for 2021 2021-01-02 13:06:25 -05:00
utils Improve performance of repeated CALLs within plpgsql procedures. 2021-01-25 22:28:29 -05:00
.gitignore
common.mk
Makefile Update copyright for 2021 2021-01-02 13:06:25 -05:00
nls.mk Add missing gettext triggers 2020-04-28 13:35:40 +02:00