Postgresql-17 hangs waiting on LWLock in pg_stat_monitor (PortalCleanup phase) #500
Open
1 task done
Labels
bug
Something isn't working
Description
We are experiencing an issue where a PostgreSQL instance becomes stuck while using the pg_stat_monitor extension. A core dump shows that the backend is waiting on a lightweight lock (LWLockAcquire()) invoked within pg_stat_monitor’s pgsm_store() function. The backend never completes, causing all queries on the backend to hang indefinitely.
Thank you for your help!
Expected Results
The backend should not become stuck. Queries should complete, and pg_stat_monitor should not cause indefinite blocking.
Actual Results
• All backend processes is stuck, and queries hang, do not complete.
• Attaching gcore and examining the core file with gdb shows the following stack trace snippet:
Version
Environment:
• PostgreSQL Version: postgresql17-server-17.2-1PGDG.rhel8.x86_64
• pg_stat_monitor Version: pg_stat_monitor_17-2.1.0-1PGDG.rhel8.x86_64
• Operating System: Oracle Linux Server release 8.10 / 5.15.0-302.167.6.el8uek.x86_64
• Installation Method: RPM
Steps to reproduce
Relevant logs
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: