Pg9.2: Monitoring NOTIFY queue - Mailing list pgsql-admin

From Jiří Hlinka
Subject Pg9.2: Monitoring NOTIFY queue
Date
Msg-id CADCCO5q8UUEeDQCFQkbm_mGwVFZZfnG7nJ1EF1DH4AiXuMvY5Q@mail.gmail.com
Whole thread Raw
List pgsql-admin
Hello,

is there any way how to monitor NOTIFY's queue? I'm talking about the queue described here in the "Notes" part: http://www.postgresql.org/docs/9.2/static/sql-notify.html

Recently there were WARNING messages in DB logs like this:
WARNING:  NOTIFY queue is 55% full
DETAIL:  The server process with PID <PID number> is among those with the oldest transactions.
HINT:  The NOTIFY queue cannot be emptied until that process ends its current transaction.

... in coincidence we stopped all processess connected to DB so the problem was solved as a side effect to this step, unfortunately we are unable to find which process (described by PID in log messages above) was cause this filling of NOTIFY's queue.

We need to monitor state of notify queue so we would be able to solve the problem before the queue fills up. There seems to be a problem in some application that causes this behavior but right now we are unable to say which one and therefore to solve the problem with the specific development team.

Thank you,
Jiri




pgsql-admin by date:

Previous
From: "Doiron, Daniel"
Date:
Subject: Re: Active/Active clustering in postgres
Next
From: Denniss
Date:
Subject: Re: Migration from Sybase to Postgresql