Re: Re: Idea: recycle WAL segments, don't delete/recreate 'em

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: "Frank Ch(dot) Eigler" <fche(at)redhat(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Re: Idea: recycle WAL segments, don't delete/recreate 'em
Date: 2001-07-17 19:14:47
Message-ID: 200107171914.f6HJEli25335@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Could you explain how postgresql can "fall victim" the filesystem hole
> mechanism? Just hoping to force actual storage allocation, or hoping
> to discourage fragmentation?

Most Unix filesystems will not allocate disk blocks until you write in
them. If you just seek out past end-of-file, the file pointer is moved
but the blocks are unallocated. This is how 'ls' can show a 1gb file
that only uses 4k of disk space.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2001-07-17 19:18:40 Re: Re: Idea: recycle WAL segments, don't delete/recreate 'em
Previous Message Bruce Momjian 2001-07-17 19:12:03 Re: pg_depend