Re: Re: ZeroFill(.../pg_xlog/xlogtemp.20148) failed: No such file or directory

From: Ian Lance Taylor <ian(at)airs(dot)com>
To: "Denis A(dot) Doroshenko" <d(dot)doroshenko(at)omnitel(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org
Subject: Re: Re: ZeroFill(.../pg_xlog/xlogtemp.20148) failed: No such file or directory
Date: 2001-05-23 21:24:44
Message-ID: siae43kbc3.fsf@daffy.airs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Denis A. Doroshenko" <d(dot)doroshenko(at)omnitel(dot)net> writes:

> i've tried to get partial write on disk shortage condition and had no
> success. on OpenBSD, if there is no space write() seems to write the
> whole buffer or fail with -1/errno. i used such proggie attached to
> the and (owell, i'm not sure about forks, but it adds more
> simultaneosity... huh?). BTW. i didn't see anywhere i looked whetjer
> write on disk files can fail after writting some part of data.

Try writing more bytes in a single call to write(). Like, 100000
bytes or something.

You will only get a short return from write() if you write more than
the disk block size. On modern file systems the disk block size can
get fairly large.

Ian

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Paul Tomblin 2001-05-23 22:15:07 Re: Why can't I do this (setup question)
Previous Message George Herson 2001-05-23 21:00:12 Re: incomplete transaction keeps table locked?