Re: File Fragmentation

Поиск
Список
Период
Сортировка
От jg
Тема Re: File Fragmentation
Дата
Msg-id 5a93-5149bf80-3-6b8b4580@16493649
обсуждение исходный текст
Ответ на Re: File Fragmentation  (Vick Khera <vivek@khera.org>)
Ответы Re: File Fragmentation
Список pgsql-general
Hi,

> It sounds like you are using partitioned tables. your partitions should be
> divided up such that they help optimize your queries. that is, minimize the
> number of partitions you need to scan for any given query.
>
> That said, try to make is so that this cleanup script purges whole
> partitions, not just deleting some rows.  That way new data will fill in
> space without fragmentation.

The rotated script, as explained, just drops tables and creates empty ones.

There are only COPY and SELECT in this database.

The problem seems that the IO pattern creates higly fragmented files.
I have some files with 1,440 fragments a day.

JG


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

Предыдущее
От: Alexander Farber
Дата:
Сообщение: Re: Matching uppercased russian words (\x0410-\x042F) in UTF8 database 8.4.13
Следующее
От: Vick Khera
Дата:
Сообщение: Re: "Leaking" disk space on FreeBSD servers