aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/array_userfuncs.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2016-10-27 11:19:51 -0400
committerRobert Haas <rhaas@postgresql.org>2016-10-27 11:34:28 -0400
commit05e2293f4c70cdda00357322f62e3ccd8b1043db (patch)
tree1d21ee0e5996314fe7af48ce4c839c89266e3434 /src/backend/utils/adt/array_userfuncs.c
parent445035a6ed148fd79ea82f484284219673cd138d (diff)
downloadpostgresql-05e2293f4c70cdda00357322f62e3ccd8b1043db.tar.gz
postgresql-05e2293f4c70cdda00357322f62e3ccd8b1043db.zip
Fix possible pg_basebackup failure on standby with "include WAL".
If a restartpoint flushed no dirty buffers, it could fail to update the minimum recovery point, leading to a minimum recovery point prior to the starting REDO location. perform_base_backup() would interpret that as meaning that no WAL files at all needed to be included in the backup, failing an internal sanity check. To fix, have restartpoints always update the minimum recovery point to just after the checkpoint record itself, so that the file (or files) containing the checkpoint record will always be included in the backup. Code by Amit Kapila, per a design suggestion by me, with some additional work on the code comment by me. Test case by Michael Paquier. Report by Kyotaro Horiguchi.
Diffstat (limited to 'src/backend/utils/adt/array_userfuncs.c')
0 files changed, 0 insertions, 0 deletions