Re: Translation of the NextOID message in pg_controldata
Re: Translation of the NextOID message in pg_controldata
On Mon, Sep 14, 2026 at 08:41:59AM +0200, Alvaro Herrera wrote: > I'm not sure I understand why we care that we hardcode that Oid8 is the > same as uint64. It's never been a problem that Oid is the same as uin32 ... For me, the reason is greppability of oid8 information as the variables printed in the strings may not refer to variables declared in the code. -- Michael
Re: Translation of the NextOID message in pg_controldata
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Michael Paquier writes: > On Mon, Sep 14, 2026 at 08:41:59AM +0200, Alvaro Herrera wrote: >> I'm not sure I understand why we care that we hardcode that Oid8 is the >> same as uint64. It's never been a problem that Oid is the same as uin32 ... > For me, the reason is greppability of oid8 information as the > variables printed in the strings may not refer to variables declared > in the code. Yeah. It's not a big deal, so maybe PRIu64 is the best option. I just wanted to be sure we'd considered whether there's another way. regards, tom lane
Re: Translation of the NextOID message in pg_controldata
On Tue, Sep 15, 2026 at 08:04:33AM +0900, Michael Paquier wrote: > Perhaps getting rid of OID8_FORMAT entirely is the best thing to do, > as you suggest. The attached does so, better applied down to v19 > that's not been released yet. The xlogdesc.c feels slightly weird, > but perhaps that's OK. WDYT? Hearing no opinions, I have removed these markers on HEAD. I'll go remove the definition on HEAD and REL_19_STABLE in a bit, to avoid issues similar to this thread in the future. -- Michael