You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-06-14 23:44:58 +02:00
More flexible configuration for databases
Master and standby can both be configured on the backup server and pgBackRest will automatically determine which is the master. This means no configuration changes for backup are required after failing over from a master to standby when a separate backup server is used.
This commit is contained in:
@ -531,13 +531,16 @@ sub backrestConfig
|
||||
my $oOption = optionRuleGet();
|
||||
|
||||
# Make sure the specified option exists
|
||||
if (!defined($$oOption{$strKey}))
|
||||
{
|
||||
confess &log(ERROR, "option ${strKey} does not exist");
|
||||
}
|
||||
# ??? This is too simplistic to handle new indexed options. The check below works for now but it would be good
|
||||
# ??? to bring back more sophisticated checking in the future.
|
||||
# if (!defined($$oOption{$strKey}))
|
||||
# {
|
||||
# confess &log(ERROR, "option ${strKey} does not exist");
|
||||
# }
|
||||
|
||||
# If this option is a hash and the value is already set then append to the array
|
||||
if ($$oOption{$strKey}{&OPTION_RULE_TYPE} eq OPTION_TYPE_HASH &&
|
||||
if (defined($$oOption{$strKey}) &&
|
||||
$$oOption{$strKey}{&OPTION_RULE_TYPE} eq OPTION_TYPE_HASH &&
|
||||
defined(${$self->{config}}{$strHostName}{$$hCacheKey{file}}{$strSection}{$strKey}))
|
||||
{
|
||||
my @oValue = ();
|
||||
|
Reference in New Issue
Block a user