diff options
author | Robert Haas <rhaas@postgresql.org> | 2015-07-17 09:12:03 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2015-07-17 09:12:03 -0400 |
commit | a04bb65f70dafdf462e0478ad19e6de56df89bfc (patch) | |
tree | f2095d72b0851f23d12ab03dc9f243c50dcd889a /src/include/commands/async.h | |
parent | 43d89a23d59c487bc9258fad7a6187864cb8c0c0 (diff) | |
download | postgresql-a04bb65f70dafdf462e0478ad19e6de56df89bfc.tar.gz postgresql-a04bb65f70dafdf462e0478ad19e6de56df89bfc.zip |
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.
Diffstat (limited to 'src/include/commands/async.h')
-rw-r--r-- | src/include/commands/async.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/commands/async.h b/src/include/commands/async.h index 8491f4736f7..677dcaa3d03 100644 --- a/src/include/commands/async.h +++ b/src/include/commands/async.h @@ -37,6 +37,7 @@ extern void Async_UnlistenAll(void); /* notify-related SQL functions */ extern Datum pg_listening_channels(PG_FUNCTION_ARGS); extern Datum pg_notify(PG_FUNCTION_ARGS); +extern Datum pg_notification_queue_usage(PG_FUNCTION_ARGS); /* perform (or cancel) outbound notify processing at transaction commit */ extern void PreCommit_Notify(void); |