Add arbitrary xid and mxid to pg_resetwal - Mailing list pgsql-hackers

From Daniil Davydov
Subject Add arbitrary xid and mxid to pg_resetwal
Date
Msg-id CAJDiXgjWXn7e21j0VkZHACZ7r6qx=Hhy0hzZ4S3NRnDEsWVxBQ@mail.gmail.com
Whole thread Raw
List pgsql-hackers
Hi,
I prepared a patch that will allow us to set arbitrary values in -m and -x options for pg_resetwal. For now, it is not possible to specify a value that does not fit into existing SLRU segments, and 
main idea of this patch (for REL_17_STABLE) is to create such segments inside pg_resetwal's main() function.
In my opinion, this will be useful primarily to simplify testing, since at the moment you have to create segments manually (as in this article).

Patch also contains additional tests for pg_resetwal (regression is called to make sure that all postgres components are working correctly, but maybe it can be replaced with something more "compact").

What do you think about the idea of adding such functionality?

--
Best regards,
Daniil Davydov

Attachment

pgsql-hackers by date:

Previous
From: Peter Smith
Date:
Subject: Re: Adding a '--clean-publisher-objects' option to 'pg_createsubscriber' utility.
Next
From: Corey Huinker
Date:
Subject: Re: Statistics Import and Export