From: Tom Lane <tgl@sss.pgh.pa.us>
To: Арсен Арутюнян <arutar@bk.ru>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: LISTEN/NOTIFY ultra slow speed
Date: Mon, 14 Mar 2022 11:29:54 -0400
Message-ID: <179961.1647271794@sss.pgh.pa.us> (raw)
In-Reply-To: <1647262405.342456086@f759.i.mail.ru>
References: <1647262405.342456086@f759.i.mail.ru>
=?UTF-8?B?0JDRgNGB0LXQvSDQkNGA0YPRgtGO0L3Rj9C9?= <arutar@bk.ru> writes:
> Hello! I'm having trouble with LISTEN/NOTIFY speed. Now I have about 100-200 (few?) clients who are actively messaging. But recently I started to notice a drop in speed. Changing the log_min_duration_statement parameter did not show slow queries in the log.
> As it turned out, the pg_notify(text ,text) function
> or the
> NOTIFY text, 'text' queries takes an extremely long time (0.7-1.5sec),
> but the select pg_notification_queue_usage() query always returns 0.
What PG version is this exactly? What is in $PGDATA/pg_notify/ ?
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, arutar@bk.ru
Subject: Re: LISTEN/NOTIFY ultra slow speed
In-Reply-To: <179961.1647271794@sss.pgh.pa.us>
References: <1647262405.342456086@f759.i.mail.ru> <179961.1647271794@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox