Re: Switch PgStat_HashKey.objoid from Oid to uint64

2024-09-17 Thread Michael Paquier
On Fri, Sep 13, 2024 at 04:03:13AM +, Bertrand Drouvot wrote: > Overall, the patch LGTM. Thanks for the review, I've applied that, then, detailing in the commit log what this changes and the three format bumps required. -- Michael signature.asc Description: PGP signature

Re: Switch PgStat_HashKey.objoid from Oid to uint64

2024-09-12 Thread Bertrand Drouvot
Hi, On Fri, Sep 13, 2024 at 07:34:21AM +0900, Michael Paquier wrote: > On Thu, Sep 12, 2024 at 01:37:52PM +, Bertrand Drouvot wrote: > > There is also some manipulation around the 2 new uint32 fields (objid_hi and > > objid_lo) in the xactdesc.c and pgstat_xact.c files that look good to me. >

Re: Switch PgStat_HashKey.objoid from Oid to uint64

2024-09-12 Thread Michael Paquier
On Thu, Sep 12, 2024 at 01:37:52PM +, Bertrand Drouvot wrote: > There is also some manipulation around the 2 new uint32 fields (objid_hi and > objid_lo) in the xactdesc.c and pgstat_xact.c files that look good to me. Thanks for the reviews. The high and low manipulations are still kind of OK

Re: Switch PgStat_HashKey.objoid from Oid to uint64

2024-09-12 Thread Bertrand Drouvot
Hi, On Thu, Aug 29, 2024 at 08:56:59AM +0900, Michael Paquier wrote: > On Mon, Aug 26, 2024 at 09:32:54AM +0300, Heikki Linnakangas wrote: > > Currently, we rely on the fact that all the xl_xact_* structs require > > sizeof(int) alignment. See comment above struct xl_xact_xinfo. > > Thanks, I hav

Re: Switch PgStat_HashKey.objoid from Oid to uint64

2024-08-28 Thread Michael Paquier
On Mon, Aug 26, 2024 at 09:32:54AM +0300, Heikki Linnakangas wrote: > Currently, we rely on the fact that all the xl_xact_* structs require > sizeof(int) alignment. See comment above struct xl_xact_xinfo. Thanks, I have missed this part. So that explains the alignment I'd better use in the record

Re: Switch PgStat_HashKey.objoid from Oid to uint64

2024-08-25 Thread Heikki Linnakangas
On 26/08/2024 03:58, Michael Paquier wrote: An interesting thing is that I have seen ubsan complain about this patch, due to the way WAL records xl_xact_commit are built with XACT_XINFO_HAS_DROPPED_STATS and parsed as xl_xact_stats_item requires an 8-byte alignment now (see pg_waldump TAP reports