1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-28 18:48:04 +03:00

Make walsender options order-independent

While doing this, also move base backup options into
a struct instead of increasing the number of parameters
to multiple functions for each new option.
This commit is contained in:
Magnus Hagander
2011-01-23 23:39:18 +01:00
parent 39e911e28a
commit e5487f65fd
5 changed files with 109 additions and 43 deletions

View File

@@ -12,6 +12,8 @@
#ifndef _BASEBACKUP_H
#define _BASEBACKUP_H
extern void SendBaseBackup(const char *backup_label, bool progress, bool fastcheckpoint);
#include "replication/replnodes.h"
extern void SendBaseBackup(BaseBackupCmd *cmd);
#endif /* _BASEBACKUP_H */

View File

@@ -45,9 +45,7 @@ typedef struct IdentifySystemCmd
typedef struct BaseBackupCmd
{
NodeTag type;
char *label;
bool progress;
bool fastcheckpoint;
List *options;
} BaseBackupCmd;