Here are some review comments for the patch v67-0001. ====== 1. There are a couple of places checking for failover usage on a standby.
+ if (RecoveryInProgress() && failover) + ereport(ERROR, + errcode(ERRCODE_FEATURE_NOT_SUPPORTED), + errmsg("cannot enable failover for a replication slot" + " created on the standby")); and + if (RecoveryInProgress() && failover) + ereport(ERROR, + errcode(ERRCODE_FEATURE_NOT_SUPPORTED), + errmsg("cannot enable failover for a replication slot" + " on the standby")); IMO the conditions should be written the other way around (failover && RecoveryInProgress()) to avoid the unnecessary function calls when 'failover' flag is probably mostly default false anyway. ====== Kind Regards, Peter Smith. Fujitsu Australia