mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
pg_standby: Remove code for .backup files
These files are no longer requested on recovery (since
06f82b2961
), so the code for handling them
here is useless.
Author: Yugo Nagata <nagata@sraoss.co.jp>
This commit is contained in:
@ -94,7 +94,6 @@ int restoreCommandType;
|
|||||||
|
|
||||||
#define XLOG_DATA 0
|
#define XLOG_DATA 0
|
||||||
#define XLOG_HISTORY 1
|
#define XLOG_HISTORY 1
|
||||||
#define XLOG_BACKUP_LABEL 2
|
|
||||||
int nextWALFileType;
|
int nextWALFileType;
|
||||||
|
|
||||||
#define SET_RESTORE_COMMAND(cmd, arg1, arg2) \
|
#define SET_RESTORE_COMMAND(cmd, arg1, arg2) \
|
||||||
@ -211,15 +210,9 @@ CustomizableNextWALFileReady(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If it's a backup file, return immediately. If it's a regular file
|
* Return only if it's the right size already.
|
||||||
* return only if it's the right size already.
|
|
||||||
*/
|
*/
|
||||||
if (IsBackupHistoryFileName(nextWALFileName))
|
if (WalSegSz > 0 && stat_buf.st_size == WalSegSz)
|
||||||
{
|
|
||||||
nextWALFileType = XLOG_BACKUP_LABEL;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
else if (WalSegSz > 0 && stat_buf.st_size == WalSegSz)
|
|
||||||
{
|
{
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user