Simplify sleeping while reading/writing from client - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Simplify sleeping while reading/writing from client
Date
Msg-id 54D3821E.9060004@vmware.com
Whole thread Raw
Responses Re: Simplify sleeping while reading/writing from client  (Michael Paquier <michael.paquier@gmail.com>)
Re: Simplify sleeping while reading/writing from client  (Andres Freund <andres@2ndQuadrant.com>)
List pgsql-hackers
Looking again at the code after Andres' interrupt-handling patch series,
I got confused by the fact that there are several wait-retry loops in
different layers, and reading and writing works slightly differently.

I propose the attached, which pulls all the wait-retry logic up to
secure_read() and secure_write(). This makes the code a lot more
understandable.

- Heikki

Attachment

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Redesigning checkpoint_segments
Next
From: Andres Freund
Date:
Subject: Re: Redesigning checkpoint_segments