Re: Listen / Notify - what to do when the queue is full
Jeff Davis <pgsql@j-davis.com>
From: Jeff Davis <pgsql@j-davis.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Joachim Wieland <joe@mcknight.de>, Greg Smith <greg@2ndquadrant.com>, Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>, "Florian G. Pflug" <fgp@phlo.org>, Josh Berkus <josh@agliodbs.com>, pgsql-hackers@postgresql.org, Arnaud Betremieux <arnaud.betremieux@keyconsulting.fr>
Date: 2010-02-09T23:01:14Z
Lists: pgsql-hackers
On Tue, 2010-02-09 at 16:51 -0500, Tom Lane wrote: > Limiting NOTIFY payloads to 7-bit would definitely avoid the issue. > The question is if that's more of a pain than a benefit. I don't see any alternative. If one backend sends a NOTIFY payload that contains a non-ASCII character, there's a risk that we won't be able to deliver it to another backend with a client_encoding that can't represent that character. Also, just the fact that client_encoding can be changed at pretty much any time is a potential problem, because it's difficult to know whether a particular notification was sent using the old client_encoding or the new one (because it's asynchronous). Regards, Jeff Davis