Re: Unhelpful debug tools on OS X :-( - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Unhelpful debug tools on OS X :-(
Date
Msg-id 13430.1176843915@sss.pgh.pa.us
Whole thread Raw
In response to Re: Unhelpful debug tools on OS X :-(  (Heikki Linnakangas <heikki@enterprisedb.com>)
Responses Re: Unhelpful debug tools on OS X :-(  (Heikki Linnakangas <heikki@enterprisedb.com>)
List pgsql-hackers
Heikki Linnakangas <heikki@enterprisedb.com> writes:
> But I did notice that we're not fsyncing the newly written relation like 
> we should.

Good point, but doesn't the analogy to copy_relation_data say that we
should sync if not rd_istemp?  (This is my fault BTW; your original
patch kept the data in shared buffers, so it wasn't subject to the
problem.)

> BTW: In tablecmds.c the new relation is fsynced with smgrimmedsync, not 
> heap_sync.

That's okay since that routine is just copying the one table.  TOAST is
handled via recursion of ATExecSetTableSpace.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Unhelpful debug tools on OS X :-(
Next
From: Heikki Linnakangas
Date:
Subject: Re: Unhelpful debug tools on OS X :-(