Fix NOTIFY to cope with I/O problems, such as out-of-disk-space.
Fix NOTIFY to cope with I/O problems, such as out-of-disk-space.

The LISTEN/NOTIFY subsystem got confused if SimpleLruZeroPage failed,
which would typically happen as a result of a write() failure while
attempting to dump a dirty pg_notify page out of memory.  Subsequently,
all attempts to send more NOTIFY messages would fail with messages like
"Could not read from file "pg_notify/nnnn" at offset nnnnn: Success".
Only restarting the server would clear this condition.  Per reports from
Kevin Grittner and Christoph Berg.

Back-patch to 9.0, where the problem was introduced during the
LISTEN/NOTIFY rewrite.

snaga/postgres-xl,postmind-net/postgres-xl,kmjungersen/PostgresXL,arcivanov/postgres-xl,snaga/postgres-xl,kmjungersen/PostgresXL,snaga/postgres-xl,kmjungersen/PostgresXL,postmind-net/postgres-xl,postmind-net/postgres-xl,snaga/postgres-xl,arcivanov/postgres-xl,arcivanov/postgres-xl,postmind-net/postgres-xl,kmjungersen/PostgresXL,arcivanov/postgres-xl,snaga/postgres-xl,arcivanov/postgres-xl,arcivanov/postgres-xl,postmind-net/postgres-xl,kmjungersen/PostgresXL