Re: [PATCH 01/16] Overhaul walsender wakeup handling

Andres Freund <andres@2ndquadrant.com>

From: Andres Freund <andres@2ndquadrant.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org
Date: 2012-07-02T14:04:56Z
Lists: pgsql-hackers

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Don't waste the last segment of each 4GB logical log file.

  2. Stamp HEAD as 9.3devel.

  3. Wake WALSender to reduce data loss at failover for async commit.

  4. Make the visibility map crash-safe.

On Monday, July 02, 2012 03:51:08 PM Robert Haas wrote:
> On Wed, Jun 27, 2012 at 6:33 AM, Andres Freund <andres@2ndquadrant.com> 
wrote:
> >> Will do so. Not sure if I can finish it today though, I am in the midst
> >> of redoing the ilist and xlogreader patches. I guess tomorrow will
> >> suffice otherwise...
> > 
> > Ok, attached are two patches:
> > The first is the rebased version of the original patch with
> > WalSndWakeupProcess renamed to WalSndWakeupProcessRequests (seems
> > clearer).
> > 
> > The second changes WalSndWakeupRequest and WalSndWakeupProcessRequests
> > into macros as you requested before. I am not sure if its a good idea or
> > not.
> > 
> > Anything else?
> I committed these with just a bit of cleanup.  Sorry it took me a
> while to get back to this.  I did run some more tests but found no
> regressions.
Nothing to be sorry for. Looks good.

Thanks

Andres
-- 
 Andres Freund	                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services