pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Christian Gerdes <christian.gerdes@exai.de>
Cc: pgsql-admin@postgresql.org
Subject: Re: Databases in memory (-->flashdrive problem)
Date: Mon, 15 Apr 2002 13:40:22 -0400
Message-ID: <24596.1018892422@sss.pgh.pa.us> (raw)
In-Reply-To: <45CE8A6EF04DF14082405BEE982CE70E031859@2000-eka-exc-03.EKATEC.COM>
References: <45CE8A6EF04DF14082405BEE982CE70E031859@2000-eka-exc-03.EKATEC.COM>

"Christian Gerdes" <christian.gerdes@exai.de> writes:
> Is there an opportunity to configure postgre to keep databases in Memory?
> I need to store a lot of data (many little entries) on IDE- flashdrive. 
> But flashdrives have a little problem with write-cycles.
> Each flash-cell can be rewritten approxiatly 300.000 times. This means for me:
> there is no chance to store my db directly on flashdrive.

> If i could let my databases stay in RAM (maybe RAM-Drive, if so) i may do a backup to flashdrive in a defined frequency!?

Sure: keep the database on a RAM-drive (this will mean an initdb and
data load on each bootup, hope you can stand that) and use pg_dump to
a text file on flashdrive as your backup mechanism.  Use a cron task
to run pg_dump at whatever frequency suits you.

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <24596.1018892422@sss.pgh.pa.us>
Permalink:  ../24596.1018892422@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/24596.1018892422@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, christian.gerdes@exai.de
  Subject: Re: Databases in memory (-->flashdrive problem)
  In-Reply-To: <24596.1018892422@sss.pgh.pa.us>
  References: <45CE8A6EF04DF14082405BEE982CE70E031859@2000-eka-exc-03.EKATEC.COM> <24596.1018892422@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox