Re: Proposal: manipulating pg_control file from Perl - Mailing list pgsql-hackers

From Aleksander Alekseev
Subject Re: Proposal: manipulating pg_control file from Perl
Date
Msg-id CAJ7c6TNFzD6GA2shjbXQ-MYrcArWWFwjchFwe1z1rUJ3pU+MaA@mail.gmail.com
Whole thread Raw
In response to Re: Proposal: manipulating pg_control file from Perl  (Christoph Berg <myon@debian.org>)
Responses Re: Proposal: manipulating pg_control file from Perl
List pgsql-hackers
Hi Christoph,

> Re: Aleksander Alekseev
> > 1) Provide a tool written in C that allows changing pg_control, e.g.
> > `pg_writecontoldata` or maybe a flat like `pg_controldata -w`.
>
> I thought we already had pg_resetwal for that.

That's a good point.

In the case I referred to [1] however I wanted to manipulate more
fields than pg_resetwal currently allows, e.g. catalog version -
which, as Tom pointed out, is a controversial thing to do in a TAP
test.

Do you think pg_resetwall should be able to do more than it currently
does, or merely pointing out that we already have a tool for editing
pg_control file?

73s de Alex, R2AUK

[1]: https://postgr.es/m/CAJ7c6TOy7fUW9MuNeOWor3cSFnQg9tgz%3DmjXHDb94GORtM_Eyg%40mail.gmail.com



pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: Changing the state of data checksums in a running cluster
Next
From: Nathan Bossart
Date:
Subject: Re: like pg_shmem_allocations, but fine-grained for DSM registry ?