pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Grégoire de Turckheim <gdeturckheim@scaleway.com>
Cc: pgsql-performance@lists.postgresql.org
Subject: Re: Notifications within triggers seem to compromise performance
Date: Mon, 28 Oct 2019 10:22:04 -0400
Message-ID: <15979.1572272524@sss.pgh.pa.us> (raw)
In-Reply-To: <2b617759-5c59-de3c-1de0-bed20d9c0db1@scaleway.com>
References: <2b617759-5c59-de3c-1de0-bed20d9c0db1@scaleway.com>

=?UTF-8?Q?Gr=c3=a9goire_de_Turckheim?= <gdeturckheim@scaleway.com> writes:
> I guess we stumbled upon a performance issue with notifications sent within triggers (using PostgreSQL version 11.5)
> and I'd like your opinion about this.

We made some performance improvements for NOTIFY just a couple months
ago, cf commits b10f40bf0, bb5ae8f6c, bca6e6435, 51004c717.  It would
be interesting to know how much those changes helped your use-case.

I'm quite disinclined to reduce the correctness guarantees around
NOTIFY for performance's sake.  That's the sort of thing that sounds
like a good idea until you find out that it subtly breaks your
application, and then you've got nothing.

			regards, tom lane





view thread (5+ messages)  latest in thread

Message-ID: <15979.1572272524@sss.pgh.pa.us>
Permalink:  ../15979.1572272524@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/15979.1572272524@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, gdeturckheim@scaleway.com, pgsql-performance@lists.postgresql.org
  Subject: Re: Notifications within triggers seem to compromise performance
  In-Reply-To: <15979.1572272524@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