Re: File Fragmentation - Mailing list pgsql-general

From jg
Subject Re: File Fragmentation
Date
Msg-id 5a93-5149bf80-3-6b8b4580@16493649
Whole thread Raw
In response to Re: File Fragmentation  (Vick Khera <vivek@khera.org>)
Responses Re: File Fragmentation
List 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 by date:

Previous
From: Alexander Farber
Date:
Subject: Re: Matching uppercased russian words (\x0410-\x042F) in UTF8 database 8.4.13
Next
From: Vick Khera
Date:
Subject: Re: "Leaking" disk space on FreeBSD servers