Re: [PATCH] Add initial xid/mxid/mxoff to initdb

From: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
To: Maxim Orlov <orlovmg(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCH] Add initial xid/mxid/mxoff to initdb
Date: 2022-11-25 12:19:18
Message-ID: 01dcd08a-bb1b-68ed-89fe-f1ddbe5ea282@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 05.05.22 17:47, Maxim Orlov wrote:
> During work on 64-bit XID patch [1] we found handy to have initdb
> options to set initial xid/mxid/mxoff values to arbitrary non default
> values. It helps test different scenarios: related to wraparound,
> pg_upgrade from 32-bit XID to 64-bit XID, etc.
>
> We realize, this patch can be singled out as an independent patch from
> the whole patchset in [1] and be useful irrespective of 64-bit XID in
> cases of testing of wraparound and so on.
>
> In particular, we employed this patch to test recent changes in logical
> replication of subxacts [2] and found no problems in it near the point
> of publisher wraparound.

Just for completeness, over in the other thread the feedback was that
this functionality is better put into pg_resetwal.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2022-11-25 12:37:46 Re: xml2: add test for coverage
Previous Message Peter Eisentraut 2022-11-25 12:15:40 Re: Small miscellaneous fixes