Re: Postgres-R: internal messaging - Mailing list pgsql-hackers

From Markus Wanner
Subject Re: Postgres-R: internal messaging
Date
Msg-id 48902147.2010300@bluegap.ch
Whole thread Raw
In response to Re: Postgres-R: internal messaging  (Markus Wanner <markus@bluegap.ch>)
List pgsql-hackers
Hi,

That's now changed in today's snapshot of Postgres-R: the postmaster no 
longer uses imessages (and thus shared memory) to communicate with the 
replication manager. Instead the manager signals the postmaster using a 
newish PMSIGNAL for requesting new helper backends. It now only requests 
one helper at a time and keeps track of pending requests. The helper 
backends now read the name of the database to which they must connect to 
from shared memory themselves. That should now adhere to the standard 
Postgres rules for shared memory safety.

Additionally, the replication manager is also restarted after a backend 
crash, to make sure it never tries to work on corrupted shared memory. 
However, that part isn't complete, as the replication manager cannot 
really handle that situation just yet. There are other outstanding 
issues having to do with that change. Those are documented in the TODO 
file in src/backend/replication/.

Regards

Markus Wanner



pgsql-hackers by date:

Previous
From: Markus Wanner
Date:
Subject: Re: about postgres-r setup.
Next
From: leiyonghua
Date:
Subject: Re: about postgres-r setup.