Re: BUG #2712: could not fsync segment: Permission

From: "Thomas H(dot)" <me(at)alternize(dot)com>
To: "Magnus Hagander" <mha(at)sollentuna(dot)net>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-bugs(at)postgresql(dot)org>, "Bruce Momjian" <bruce(at)momjian(dot)us>
Subject: Re: BUG #2712: could not fsync segment: Permission
Date: 2006-10-25 23:53:41
Message-ID: 042f01c6f890$cd13be00$6501a8c0@iwing
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-patches

>> As for fixing the problem we do understand: ISTM it's just an
>> awful idea for pgrename and pgunlink to be willing to loop
>> forever. I think they should time out and report the failure
>> after some reasonable period (say between 10 sec and a minute).

is the main problem realy in the rename/delete function? while i'm in no
position of actually knowing whats going on under the hood, my observations
in +10 cases during this afternoon/evening revealed some patterns:

it is defenitely the writer process that blocks the db. but in every case
the writer process seems to fail to rename the file due to another
postgresql still holding a filehandle to the very xlog file that should be
renamed. ProcessExplorer lets you force a close of the file handle - as soon
as you do this [which is a bad thing to do, i assume], the rename succeeds
and processing continues normally.

i actually can reproduce the error at will now - i just need do pump enough
data into the db (~200mb data seems sufficient) to have it lock up.

- thomas

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2006-10-26 00:15:23 Re: BUG #2712: could not fsync segment: Permission
Previous Message Tom Lane 2006-10-25 22:15:25 Re: Out of memory error causes Abort, Abort tries to allocate memory

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2006-10-26 00:15:23 Re: BUG #2712: could not fsync segment: Permission
Previous Message Albert Cervera Areny 2006-10-25 20:24:33 Re: Tablespace for temporary objects and sort files