pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Stephen Frost <sfrost@snowman.net>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: Dilip Kumar <dilipbalaut@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: .ready and .done files considered harmful
Date: Wed, 5 May 2021 16:53:01 -0400
Message-ID: <20210505205301.GK20766@tamriel.snowman.net> (raw )
In-Reply-To: <CA+TgmoYxD6TLbEUMnyorRFdJ8EdV8z9MCOV9qLPJr_pAqwtw9g@mail.gmail.com >
References: <20210504042755.ehuaoz5blcnjw5yk@alap3.anarazel.de >
<CA+TgmobBoMqU_fwOD48e-JY69y87SKG6=POR0FODw03soaJOUA@mail.gmail.com >
<CAFiTN-tR+3+GjP0Qeys8jwh=jz9VpP2ibhT9ubFDLmgNb1QtMg@mail.gmail.com >
<CA+TgmoZHBb-TmwYtAzoPYu2FW_NWyLOnABNz_U-=59wTJuz4ig@mail.gmail.com >
<20210505170601.GF20766@tamriel.snowman.net >
<CA+Tgmoa4=k3CeGh+OX0D9+p7Nmj3ZYaeD2ahk+=n0Bz7m5d_HA@mail.gmail.com >
<20210505201308.GI20766@tamriel.snowman.net >
<CA+TgmoY5hS-CXQYumdoXyY0fyxXS+Sgi6odVdvu8Ri=5LkyU_g@mail.gmail.com >
<20210505203143.3q5xfik2r6z7rbmp@alap3.anarazel.de >
<CA+TgmoYxD6TLbEUMnyorRFdJ8EdV8z9MCOV9qLPJr_pAqwtw9g@mail.gmail.com >
Greetings,
* Robert Haas (robertmhaas@gmail.com) wrote:
> On Wed, May 5, 2021 at 4:31 PM Andres Freund <andres@anarazel.de> wrote:
> > On 2021-05-05 16:22:21 -0400, Robert Haas wrote:
> > > Huh, I had not thought about that problem. So, at the risk of getting
> > > sidetracked, what exactly are you asking for here? Let the extension
> > > pick the timeline using an algorithm of its own devising, rather than
> > > having core do it? Or what?
> >
> > Not Stephen, but to me the most reasonable way to address this is to
> > make timeline identifier wider and randomly allocated. The sequential
> > looking natures of timelines imo is actively unhelpful.
>
> Yeah, I always wondered why we didn't assign them randomly.
Based on what we do today regarding the info we put into .history files,
trying to figure out which is the "latest" timeline might be a bit
tricky with randomly selected timelines. Maybe we could find a way to
solve that though.
I do note that this comment is timeline.c is, ahem, perhaps over-stating
things a bit:
* Note: while this is somewhat heuristic, it does positively guarantee
* that (result + 1) is not a known timeline, and therefore it should
* be safe to assign that ID to a new timeline.
Thanks,
Stephen
Attachments:
[application/pgp-signature] signature.asc (818B, ../20210505205301.GK20766@tamriel.snowman.net/2-signature.asc)
download
view thread (118+ messages) latest in thread
Message-ID: <20210505205301.GK20766@tamriel.snowman.net>
Permalink: ../20210505205301.GK20766@tamriel.snowman.net/
Also on: postgresql.org/message-id/20210505205301.GK20766@tamriel.snowman.net
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: sfrost@snowman.net, robertmhaas@gmail.com, andres@anarazel.de, dilipbalaut@gmail.com
Subject: Re: .ready and .done files considered harmful
In-Reply-To: <20210505205301.GK20766@tamriel.snowman.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox