Thread: partitioning for postgresql

partitioning for postgresql

From
"Wilson A. Galafassi Jr."
Date:
hello!!!
what is suggested partitioning schema for postgresql??
the size of my db is 5BG and i have 36GB scsi disk!
thanks
wilson

Re: partitioning for postgresql

From
"scott.marlowe"
Date:
On Wed, 6 Aug 2003, Wilson A. Galafassi Jr. wrote:

> hello!!!
> what is suggested partitioning schema for postgresql??
> the size of my db is 5BG and i have 36GB scsi disk!

The first recommendation is to run Postgresql on a RAID set for
reliability.

I'm assuming you're building a machine and need to put both the OS and
Postgresql database on that one disk.

If that's the case, just put the OS on however you like (lotsa different
ways to partition for the OS) and leave about 30 gig for Postgresql to run
in, then just put the whole database $PGDATA directory on that partition.

I'd recommend running ext3 with meta data journaling only for speed,
security, and ease of setup and use.  XFS is the next choice, which is a
little harder to setup, as it's not included in most distros, but is
definitely faster than ext3 at most stuff.


Re: partitioning for postgresql

From
Christopher Browne
Date:
> what is suggested partitioning schema for postgresql??
> the size of my db is 5BG and i have 36GB scsi disk!

The interesting forms of partitioning kind of assume that you have
multiple disk drives.

If you only have one drive, then there is not terribly much reason to
prefer anything much over simply having one big partition, and letting
the data fall where it will.

If you had two drives, then it would make sense to have data on one
drive and WAL on the other.  With three drives, having other I/O (such
as database logging) on a third drive would have merit.

But none of those approaches are useful if you only have one disk
drive.
--
"cbbrowne","@","libertyrms.info"
<http://dev6.int.libertyrms.com/>
Christopher Browne
(416) 646 3304 x124 (land)