pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joel Stevenson <joelstevenson@mac.com>
To: pgsql-performance@postgresql.org
Subject: LISTEN / NOTIFY performance in 8.3
Date: Sat, 23 Feb 2008 10:48:56 -0800
Message-ID: <p06240804c3e61871f289@[10.0.1.253]> (raw)

Hi,

I'm noticing a strange increase in the amount of time it takes to 
issue a NOTIFY statement.

I have an existing app that provides a producer / consumer type of 
queue and that uses the LISTEN / NOTIFY mechanism to signal the 
consumers of new items arriving in the queue.  The consumers then 
process these items and issue a notify to signal that they have been 
processed.  In the past issuing these notifications happened very 
quickly, now on 8.3 I'm seeing all of them taking over 300ms and many 
of them taking 1500ms or more!  The notifications are happening 
outside of any transactions (which is itself a probable area for 
performance improvement, I realize) but I'm wondering what might have 
changed between 8.1 (the version I was using in the past) and 8.3?

TIA,
Joel



view thread (19+ messages)  latest in thread

Message-ID: <p06240804c3e61871f289@[10.0.1.253]>
Permalink:  ../p06240804c3e61871f289@%5B10.0.1.253%5D/
Also on:    postgresql.org/message-id/p06240804c3e61871f289@[10.0.1.253]

 · 

reply

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-performance@postgresql.org
  Cc: joelstevenson@mac.com
  Subject: Re: LISTEN / NOTIFY performance in 8.3
  In-Reply-To: <p06240804c3e61871f289@[10.0.1.253]>
  References: <p06240804c3e61871f289@[10.0.1.253]>

* 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