pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: pgsql-docs <pgsql-docs@postgresql.org>
Subject: NOTIFY man page still recommends rules
Date: Tue, 2 Aug 2016 13:23:45 -0400
Message-ID: <913aa238-04c7-a75f-28e6-8845119eb3df@2ndquadrant.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-docs>

The NOTIFY man page writes

   When <command>NOTIFY</command> is used to signal the occurrence of
changes
   to a particular table, a useful programming technique is to put the
   <command>NOTIFY</command> in a rule that is triggered by table updates.

Is using rules here still best practice?  This was probably written
before statement triggers were available.

Even if yes, we might want to explain why, since we generally discourage
rule use otherwise.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs



view thread (4+ messages)  latest in thread

Message-ID: <913aa238-04c7-a75f-28e6-8845119eb3df@2ndquadrant.com>
Permalink:  ../913aa238-04c7-a75f-28e6-8845119eb3df@2ndquadrant.com/
Also on:    postgresql.org/message-id/913aa238-04c7-a75f-28e6-8845119eb3df@2ndquadrant.com

 · 

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-docs@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com
  Subject: Re: NOTIFY man page still recommends rules
  In-Reply-To: <913aa238-04c7-a75f-28e6-8845119eb3df@2ndquadrant.com>

* 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