pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ricardo Martin Gomez <rimartingomez@hotmail.com>
To: Kevin Brannen <kbrannen@efji.com>
To: Mitar <mmitar@gmail.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Watching for view changes
Date: Sat, 22 Dec 2018 16:42:10 +0000
Message-ID: <SC1P15201MB23043ECC20218275F67BF8E6A3B90@SC1P15201MB2304.LAMP152.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <CAKLmikM9=iJEE6zkjRtg_vWX8ECDgkngcVHcitQ6bh9A6VJLbA@mail.gmail.com>
References: <CAKLmikP+PPB49z8rEEvRjFOD0D2DV72KdqYN7s9fjh9sM_32ZA@mail.gmail.com>
	<8ce68eb6-4bae-447c-b9d2-f25e0c02546d@gmail.com>
	<CAKLmikMsXV+bAP-Mk7MphwsPhtkKZGJ4iGOQFE8pkMaDcv3uXQ@mail.gmail.com>
	<24cae5b1-fbc6-0cb4-e10c-6cd316dff2f5@aklaver.com>
	<CAKLmikM7hFWhM7ZmhAZzGn3wGoKkrXdf+syaibjvQH4dwjbWtw@mail.gmail.com>
	<7D00214A-F8F0-44DC-9772-E35EAF2E2FAD@gmail.com>
	<CAKLmikMm6V2e4-Ltpt7Qt0KSjhPXEWQSV6844qSqeTQKKBHr+Q@mail.gmail.com>
	<SN1PR19MB025569AFD6A43362CA286B2EA4BF0@SN1PR19MB0255.namprd19.prod.outlook.com>
	<CAKLmikM9=iJEE6zkjRtg_vWX8ECDgkngcVHcitQ6bh9A6VJLbA@mail.gmail.com>

Hi, perhaps you can use triggers for some tables.
Regards.

Obtener Outlook para Android<https://aka.ms/ghei36;

________________________________
From: Mitar <mmitar@gmail.com>
Sent: Saturday, December 22, 2018 1:21:49 AM
To: Kevin Brannen
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Watching for view changes

Hi!

On Thu, Dec 20, 2018 at 12:54 PM Kevin Brannen <KBrannen@efji.com<mailto:KBrannen@efji.com>> wrote:
Hmm, I guess I could see that as long as the DB wasn't too [write] busy, else you'd be flooded with notifications.

Sure. But this could be resolved by allowing notifications to be batched together. Debounce them. So could maybe configure how often you want such notifications and if they are more often they would be combined together into one.

Maybe it's a useful idea for you ... or maybe not. 😊

Thanks. Yes, this is one approach to do it. Hooking into every modify call at the app level and in this way have some information what is changing. I would prefer doing it in the database though, so that it could be independent from the source of the change. Moreover, not all UPDATE queries really do end up updating the data.


Mitar

--
http://mitar.tnode.com/
https://twitter.com/mitar_m


view thread (31+ messages)  latest in thread

Message-ID: <SC1P15201MB23043ECC20218275F67BF8E6A3B90@SC1P15201MB2304.LAMP152.PROD.OUTLOOK.COM>
Permalink:  ../SC1P15201MB23043ECC20218275F67BF8E6A3B90@SC1P15201MB2304.LAMP152.PROD.OUTLOOK.COM/
Also on:    postgresql.org/message-id/SC1P15201MB23043ECC20218275F67BF8E6A3B90@SC1P15201MB2304.LAMP152.PROD.OUTLOOK.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 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-general@postgresql.org
  Cc: rimartingomez@hotmail.com, kbrannen@efji.com, mmitar@gmail.com
  Subject: Re: Watching for view changes
  In-Reply-To: <SC1P15201MB23043ECC20218275F67BF8E6A3B90@SC1P15201MB2304.LAMP152.PROD.OUTLOOK.COM>
  References: <CAKLmikP+PPB49z8rEEvRjFOD0D2DV72KdqYN7s9fjh9sM_32ZA@mail.gmail.com> <8ce68eb6-4bae-447c-b9d2-f25e0c02546d@gmail.com> <CAKLmikMsXV+bAP-Mk7MphwsPhtkKZGJ4iGOQFE8pkMaDcv3uXQ@mail.gmail.com> <24cae5b1-fbc6-0cb4-e10c-6cd316dff2f5@aklaver.com> <CAKLmikM7hFWhM7ZmhAZzGn3wGoKkrXdf+syaibjvQH4dwjbWtw@mail.gmail.com> <7D00214A-F8F0-44DC-9772-E35EAF2E2FAD@gmail.com> <CAKLmikMm6V2e4-Ltpt7Qt0KSjhPXEWQSV6844qSqeTQKKBHr+Q@mail.gmail.com> <SN1PR19MB025569AFD6A43362CA286B2EA4BF0@SN1PR19MB0255.namprd19.prod.outlook.com> <CAKLmikM9=iJEE6zkjRtg_vWX8ECDgkngcVHcitQ6bh9A6VJLbA@mail.gmail.com> <SC1P15201MB23043ECC20218275F67BF8E6A3B90@SC1P15201MB2304.LAMP152.PROD.OUTLOOK.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