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

Robert Haas <robertmhaas@gmail.com>

From: Robert Haas <robertmhaas@gmail.com>
To: Andres Freund <andres@2ndquadrant.com>
Cc: pgsql-hackers@postgresql.org
Date: 2012-07-02T13:51:08Z
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 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.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company