Re: Help making tablespaces work for my application

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: "Natusch, Paul" <pnatusch(at)Tycoint(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Help making tablespaces work for my application
Date: 2011-06-24 09:15:35
Message-ID: 4E0455B7.4060006@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 06/23/2011 09:37 PM, Natusch, Paul wrote:
> I have an application for which data is being written to many disks
> simultaneously. I would like to use a postgres table space on each disk.
> If one of the disks crashes it is tolerable to lose that data, however,
> I must continue to write to the other disks.

About the only way you'll be able to do that with PostgreSQL is to run
one PostgreSQL instance per disk. Give each its own port, datadir,
shared_buffers, etc.

I wouldn't expect that setup to perform particularly well, and it costs
you the ability to have ACID rules apply between data on different
disks. It's also a horribly inefficient use of RAM.

For this kind of task, it is typical to use a simple, dedicated tool to
capture the writes from the sensors or whatever you are logging. Once
the data has hit disk, another tool can read it in small batches and add
it to the database for analysis and reporting.

Perhaps it'd help if you explained what you want - and why - with a
little more background and detail?

--
Craig Ringer

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Leif Biberg Kristensen 2011-06-24 10:09:27 Re: Oracle / PostgreSQL comparison...
Previous Message Jignesh Ramavat 2011-06-24 08:41:32 declare variable in postgresql