Re: WAL Info messages

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Greg Stark <gsstark(at)mit(dot)edu>
Cc: Simon Riggs <simon(at)2ndquadrant(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: WAL Info messages
Date: 2009-12-14 14:51:54
Message-ID: 28858.1260802314@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Greg Stark <gsstark(at)mit(dot)edu> writes:
> What happens on the slave when normal NOTIFYs are generated on the
> master? IIRC NOTIFYs are wal-logged so I imagine LISTEN on the slave
> would just work and a plain old NOTIFY/LISTEN would suffice for this
> use case?

Nothing happens: NOTIFYs are *not* WAL-logged, and it would be quite
against the intended use-case to have them be.

If you're hoping that processes on the slave could LISTEN for events
happening on the master, we'd have a bit of a conflict. This might be
an example of a case where we need that "are we doing HS" flag that
Simon insists we don't need.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2009-12-14 14:55:15 Re: thread safety on clients
Previous Message Tom Lane 2009-12-14 14:47:23 Re: thread safety on clients