From a04bb65f70dafdf462e0478ad19e6de56df89bfc Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Fri, 17 Jul 2015 09:12:03 -0400 Subject: 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. --- src/include/commands/async.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include/commands/async.h') 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); -- cgit v1.2.3