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

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Re: Idea: recycle WAL segments, don't delete/recreate 'em
Дата
Msg-id 200107171914.f6HJEli25335@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Idea: recycle WAL segments, don't delete/recreate 'em  (fche@redhat.com (Frank Ch. Eigler))
Ответы Re: Re: Idea: recycle WAL segments, don't delete/recreate 'em  (Gunnar Rønning <gunnar@polygnosis.com>)
Список 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@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_depend
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Idea: recycle WAL segments, don't delete/recreate 'em