Re: Listen/notify across clusters - Mailing list pgsql-hackers

From Andreas Karlsson
Subject Re: Listen/notify across clusters
Date
Msg-id 51E5FE60.7060300@proxel.se
Whole thread Raw
In response to Re: Listen/notify across clusters  (Greg Jaskiewicz <gryzman@mac.com>)
List pgsql-hackers
On 07/15/2013 04:10 PM, Greg Jaskiewicz wrote:
> In terms of features, apart from separating LISTEN so that it can be actually used on Standbys, wouldn't it be a
matterof including the notifications in the WAL stream, as simple packets ?
 
> This would guarantee same behaviour as on the master.

I guess one problem is to implement writing to the WAL with the smallest 
possible performance hit.  As far as I can see there are two possible 
approaches: either write to WAL when NOTIFY is run or write to WAL on 
commit. The former seems more in line with how commands in PostgreSQL 
usually work.

There shouldn't be any major problems with implementing LISTEN on the 
slaves since LISTEN is done in memory.

I feel like I as a beginner to the codebase am missing something bit 
because while this is a fair bit of work it does not too hard to implement.

Andreas

-- 
Andreas Karlsson



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Adding optionally commit number in PG_VERSION_STR
Next
From: Tom Lane
Date:
Subject: Re: Adding optionally commit number in PG_VERSION_STR