Re: Unhelpful debug tools on OS X :-(

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Unhelpful debug tools on OS X :-(
Date: 2007-04-17 21:05:15
Message-ID: 13430.1176843915@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Heikki Linnakangas <heikki(at)enterprisedb(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2007-04-17 21:12:38 Re: Unhelpful debug tools on OS X :-(
Previous Message Tom Lane 2007-04-17 20:58:00 Re: Unhelpful debug tools on OS X :-(