Обсуждение: New recovery_target_timeline=primary option
One-line Summary: This new recovery_target_timeline option would ensure that when rebuilding a replica cluster, the recovery stays in the primary cluster's timeline making it fool proof and avoiding recovery timeline inconsistencies.
Business Use-case: Reduce human interaction when rebuilding replicas where unwanted timelines might have been archived in the repo and speed up recovery.
User impact with the change: New parameter option available
Implementation details: I would need a subject matter expert to please make this feature a reality
Estimated Development Time: unknown
Category: Include the text: Restore, replication
On Thu, Sep 11, 2025, at 9:17 PM, Efrain J. Berdecia wrote: > *One-line Summary:* This new recovery_target_timeline option would > ensure that when rebuilding a replica cluster, the recovery stays in > the primary cluster's timeline making it fool proof and avoiding > recovery timeline inconsistencies. > Do you understand what the timeline is for? [1] You are proposing to implement exactly what it is protecting you from: overwrite previous archived WAL after a recovery. [1] https://www.postgresql.org/docs/current/continuous-archiving.html#BACKUP-TIMELINES -- Euler Taveira EDB https://www.enterprisedb.com/
On Thu, Sep 11, 2025 at 8:50 PM, Euler Taveira<euler@eulerto.com> wrote:On Thu, Sep 11, 2025, at 9:17 PM, Efrain J. Berdecia wrote:
> *One-line Summary:* This new recovery_target_timeline option would
> ensure that when rebuilding a replica cluster, the recovery stays in
> the primary cluster's timeline making it fool proof and avoiding
> recovery timeline inconsistencies.
>
Do you understand what the timeline is for? [1] You are proposing to implement
exactly what it is protecting you from: overwrite previous archived WAL after a
recovery.
[1] https://www.postgresql.org/docs/current/continuous-archiving.html#BACKUP-TIMELINES
--
Euler Taveira
EDB https://www.enterprisedb.com/
One-line Summary: This new recovery_target_timeline option would ensure that when rebuilding a replica cluster, the recovery stays in the primary cluster's timeline making it fool proof and avoiding recovery timeline inconsistencies.
Business Use-case: Reduce human interaction when rebuilding replicas where unwanted timelines might have been archived in the repo and speed up recovery.
User impact with the change: New parameter option available
Implementation details: I would need a subject matter expert to please make this feature a realityEstimated Development Time: unknown
Category: Include the text: Restore, replication
On Thu, Sep 11, 2025 at 8:50 PM, Euler Taveira<euler@eulerto.com> wrote:On Thu, Sep 11, 2025, at 9:17 PM, Efrain J. Berdecia wrote:
> *One-line Summary:* This new recovery_target_timeline option would
> ensure that when rebuilding a replica cluster, the recovery stays in
> the primary cluster's timeline making it fool proof and avoiding
> recovery timeline inconsistencies.
>
Do you understand what the timeline is for? [1] You are proposing to implement
exactly what it is protecting you from: overwrite previous archived WAL after a
recovery.
[1] https://www.postgresql.org/docs/current/continuous-archiving.html#BACKUP-TIMELINES
--
Euler Taveira
EDB https://www.enterprisedb.com/
On Thu, Sep 11, 2025, at 10:07 PM, Efrain J. Berdecia wrote: > The error I would like to address with this feature is the following: > > FATAL: highest timeline xxx of the primary is behind timeline yyy > It seems your procedure to set up a standby is incorrect. See [1]. You are not using the base backup from the primary server. You didn't describe the whole procedure so it is hard to point out where the problem is. [1] https://www.postgresql.org/docs/current/warm-standby.html#STANDBY-SERVER-SETUP -- Euler Taveira EDB https://www.enterprisedb.com/
On Thu, Sep 11, 2025 at 9:05 PM, David G. Johnston<david.g.johnston@gmail.com> wrote:On Thursday, September 11, 2025, Efrain J. Berdecia <ejberdecia@yahoo.com> wrote:One-line Summary: This new recovery_target_timeline option would ensure that when rebuilding a replica cluster, the recovery stays in the primary cluster's timeline making it fool proof and avoiding recovery timeline inconsistencies.
Business Use-case: Reduce human interaction when rebuilding replicas where unwanted timelines might have been archived in the repo and speed up recovery.
User impact with the change: New parameter option available
Implementation details: I would need a subject matter expert to please make this feature a realityEstimated Development Time: unknown
Category: Include the text: Restore, replicationFeature requests with this little info are probably better discussed on the -general list to garner support for the idea.David J.
On Thu, Sep 11, 2025 at 9:19 PM, Euler Taveira<euler@eulerto.com> wrote:On Thu, Sep 11, 2025, at 10:07 PM, Efrain J. Berdecia wrote:
> The error I would like to address with this feature is the following:
>
> FATAL: highest timeline xxx of the primary is behind timeline yyy
>
It seems your procedure to set up a standby is incorrect. See [1]. You are not
using the base backup from the primary server.
You didn't describe the whole procedure so it is hard to point out where the
problem is.
[1] https://www.postgresql.org/docs/current/warm-standby.html#STANDBY-SERVER-SETUP