Re: END_OF_RECOVERY shutdowns and ResetUnloggedRelations()

From: Abhijit Menon-Sen <ams(at)2ndQuadrant(dot)com>
To: Andres Freund <andres(at)2ndquadrant(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: END_OF_RECOVERY shutdowns and ResetUnloggedRelations()
Date: 2014-09-25 21:04:06
Message-ID: 20140925210406.GA23928@toroid.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

At 2014-09-25 22:41:18 +0200, andres(at)2ndquadrant(dot)com wrote:
>
> * Also recovery shouldn't be regarded successful if the reset fails -
> * e.g. because of ENOSPC.

OK.

> * Doing this in a separate pass is advantageous for performance reasons
> * because it allows the kernel to perform all the flushes at once.

OK.

> Unless I miss something this isn't sufficient. We need to fsync the
> files in the data directory, not just the toplevel directory?

No, of course you're right. So a separate function that does the moral
equivalent of "find $PGDATA -exec fsync_fname …"?

Will resubmit with the additional comments.

-- Abhijit

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2014-09-25 21:04:18 Re: Immediate standby promotion
Previous Message Peter Geoghegan 2014-09-25 20:50:07 Re: INSERT ... ON CONFLICT {UPDATE | IGNORE}