Add new function pg_notification_queue_usage.
Robert Haas <rhaas@postgresql.org>
Add new function pg_notification_queue_usage. This tells you what fraction of NOTIFY's queue is currently filled. Brendan Jurd, reviewed by Merlin Moncure and Gurjeet Singh. A few further tweaks by me.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/func.sgml | modified | +17 −2 |
| doc/src/sgml/ref/notify.sgml | modified | +5 −0 |
| src/backend/commands/async.c | modified | +39 −11 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/catalog/pg_proc.h | modified | +4 −0 |
| src/include/commands/async.h | modified | +1 −0 |
| src/test/isolation/expected/async-notify.out | added | +17 −0 |
| src/test/isolation/specs/async-notify.spec | added | +14 −0 |
| src/test/regress/expected/async.out | modified | +8 −0 |
| src/test/regress/sql/async.sql | modified | +4 −0 |