Re: END_OF_RECOVERY shutdowns and ResetUnloggedRelations() - Mailing list pgsql-hackers

From Andres Freund
Subject Re: END_OF_RECOVERY shutdowns and ResetUnloggedRelations()
Date
Msg-id 20141115003857.GB27042@awork2.anarazel.de
Whole thread Raw
In response to Re: END_OF_RECOVERY shutdowns and ResetUnloggedRelations()  (Abhijit Menon-Sen <ams@2ndQuadrant.com>)
List pgsql-hackers
On 2014-10-27 16:09:30 +0530, Abhijit Menon-Sen wrote:
> At 2014-09-25 22:41:18 +0200, andres@2ndquadrant.com wrote:
> >
> > On 2014-09-24 17:06:05 +0530, Abhijit Menon-Sen wrote:
> > > 
> > > 1. Move the call to ResetUnloggedRelations(UNLOGGED_RELATION_INIT) to
> > >    earlier in StartupXLOG.
> > > 
> > > 2. Inside that function, issue fsync()s for the main forks we create by
> > >    copying the _init fork.
> > 
> > These two imo should definitely be backpatched.
> 
> I've attached updated versions of these two patches. The only changes
> are to revise the comments as you suggested.

Committed and backpatched (to 9.1) these. That required also
backpatching the move of fsync_fname() to fd.c/h to 9.1-9.3.

Greetings,

Andres Freund

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



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: initdb -S and tablespaces
Next
From: Noah Misch
Date:
Subject: Re: Re: Segmentation fault in pg_dumpall from master down to 9.1 and other bug introduced by RLS