postgrespro / pg_wait_sampling

Sampling based statistics of wait events
Other
143 stars 34 forks source link

Fix compatibility with new shm_mq_send API introduced in pg15. #39

Closed rjuju closed 2 years ago

rjuju commented 2 years ago

Related upstream commit: 46846433a03dff4f2e08c8a161e54a842da360d6

maksm90 commented 2 years ago

Hi @rjuju! Thanks for contribution.

Generally to avoid code mess around calling of core functions not compatible for different versions of PostgreSQL we try to hide this in special compat.c file and provide compatible version with suffix Compat() or _compat() depending on selected function naming convention in initial name.

rjuju commented 2 years ago

Hi @maksm90. Thanks for the review, I wasn't aware of this compat.c file.

I fixed-pushed-force accordingly (https://github.com/rjuju/pg_wait_sampling/commit/77ba2cab55b217f0188270c0fa3c4a475b0f2bbd), but github is somewhat broken again (https://www.githubstatus.com/incidents/83lq7ftk19r5) so it doesn't seem to have picked up the new commit here yet. It will probably eventually show up.

rjuju commented 2 years ago

Thanks!