Re: [PATCH] Function to get size of asynchronous notification queue

From: Brendan Jurd <direvus(at)gmail(dot)com>
To: Merlin Moncure <mmoncure(at)gmail(dot)com>
Cc: kjsteuer <kjsteuer(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCH] Function to get size of asynchronous notification queue
Date: 2015-06-17 22:24:39
Message-ID: CADxJZo1aHvDAFTtSmymmwSvB0-w4o=HNf=s+=Z2-cSsMW_O3Ag@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, 18 Jun 2015 at 08:19 Merlin Moncure <mmoncure(at)gmail(dot)com> wrote:

>
> scratch that. that note already exists in sql-notify.html. Instead,
> I'd modify that section to note that you can check queue usage with
> your new function.
>
>
I have already done so. Under the paragraph about the queue filling up, I
have added:

"The function <function>pg_notify_queue_saturation</function> returns the
proportion of the queue that is currently occupied by pending
notifications."

A link from here back to the section in System Information Functions might
be sensible?

I will rename the function with _usage as you suggest, and add the
explanation of the return value in the docs.

Cheers,
BJ

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua D. Drake 2015-06-17 23:05:28 Re: 9.5 make world failing due to sgml tools missing
Previous Message Noah Misch 2015-06-17 22:23:00 Re: "could not adopt C locale" failure at startup on Windows