Hi,
> > It is my understanding that Perl is not extremely aware of alignment.
> > For instance if I want to modify the checksum of the file and the
> > offset of the checksum is let's say 200 bytes on one platform, 204 on
> > another and 208 on a third, pack/unpack will not help me.
> >
> > Or did I miss something?
>
> You have to specify alignment manually using the `x![$type]` notation.
> I actually wrote up a pack template for the entire control file
> (assuming all types have alignof==sizeof), and it seems to work. Run
> the attached with a Postgres 17 data directory as the arguemnt, and it
> should show all the fields.
Oh that's neat. Thanks for sharing!
--
Best regards,
Aleksander Alekseev