From: Tom Lane <tgl@sss.pgh.pa.us>
To: Nigel J. Andrews <nandrews@investsystems.co.uk>
Cc: pgsql-admin@postgresql.org
Subject: Re: Databases in memory (-->flashdrive problem)
Date: Tue, 16 Apr 2002 09:53:00 -0400
Message-ID: <11839.1018965180@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.21.0204152018180.20382-100000@ponder.fairway2k.co.uk>
References: <Pine.LNX.4.21.0204152018180.20382-100000@ponder.fairway2k.co.uk>
"Nigel J. Andrews" <nandrews@investsystems.co.uk> writes:
>> 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.
> Wouldn't it be possible/better to just do recursive filesystem copy
> between RAM drive and the flash drive?
> Obviously that would be before starting postmaster and after stopping
> it using cpio or whatever tool is prefered.
You could do it that way. I like the pg_dump idea better, because
(a) you can take a pg_dump snapshot without stopping the database, and
(b) the pg_dump output will likely be smaller than the raw database
files. However, the recursive copy would allow faster startup at
system boot (recursive copy back to RAMdisk is probably faster than
initdb + load pg_dump script --- though this assumption should be
tested). You pays your money and you takes your choice...
regards, tom lane
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, nandrews@investsystems.co.uk
Subject: Re: Databases in memory (-->flashdrive problem)
In-Reply-To: <11839.1018965180@sss.pgh.pa.us>
References: <Pine.LNX.4.21.0204152018180.20382-100000@ponder.fairway2k.co.uk> <11839.1018965180@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