Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 6BE912E00F6 for ; Sun, 24 Feb 2008 14:57:53 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 48689-01 for ; Sun, 24 Feb 2008 14:57:51 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 03FD22E00E7 for ; Sun, 24 Feb 2008 14:57:50 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m1OIvmTj006093; Sun, 24 Feb 2008 13:57:48 -0500 (EST) To: Joel Stevenson cc: pgsql-performance@postgresql.org Subject: Re: LISTEN / NOTIFY performance in 8.3 In-reply-to: References: <5576.1203795335@sss.pgh.pa.us> <6730.1203829093@sss.pgh.pa.us> Comments: In-reply-to Joel Stevenson message dated "Sat, 23 Feb 2008 21:22:29 -0800" Date: Sun, 24 Feb 2008 13:57:48 -0500 Message-ID: <6092.1203879468@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/306 X-Sequence-Number: 28848 Joel Stevenson writes: >> This sounds a bit like pg_listener has gotten bloated. Try a "VACUUM >> VERBOSE pg_listener" (as superuser) and see what it says. > At the moment (server is inactive): > pcdb=# VACUUM VERBOSE pg_listener; > INFO: vacuuming "pg_catalog.pg_listener" > INFO: "pg_listener": removed 1 row versions in 1 pages > INFO: "pg_listener": found 1 removable, 21 nonremovable row versions > in 28 pages OK, that destroys the table-bloat theory. Just to make sure, I pre-populated pg_listener with enough dead rows to make 28 pages, but I still don't see any slow notifies or noticeable load in vmstat. That server is not quite "inactive", though. What are the 21 remaining pg_listener entries for? Is it possible that those jobs are having some impact on the ones run by the test script? Also, it might be worth enabling log_lock_waits to see if the slow notifies are due to having to wait on some lock or other. regards, tom lane