pgsql: Fix UNLISTEN to fall out quickly if the current backend has never - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Fix UNLISTEN to fall out quickly if the current backend has never
Date
Msg-id 20090213171204.C56357559ED@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Fix UNLISTEN to fall out quickly if the current backend has never executed
any LISTEN command.  This is more important than it used to be because
DISCARD ALL invokes UNLISTEN.  Connection-pooled applications making heavy
use of DISCARD ALL were seeing significant contention for pg_listener,
as reported by Matteo Beccati.  It seems unlikely that clients using LISTEN
would use pooled connections, so this simple tweak seems sufficient,
especially since the pg_listener implementation is slated to go away soon
anyway.

Back-patch to 8.3, where DISCARD ALL was introduced.

Modified Files:
--------------
    pgsql/src/backend/commands:
        async.c (r1.145 -> r1.146)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/async.c?r1=1.145&r2=1.146)

pgsql-committers by date:

Previous
From: sas@pgfoundry.org (User Sas)
Date:
Subject: slony1-ctl - slony-ctl: First import
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix UNLISTEN to fall out quickly if the current backend has never