From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Nigel J(dot) Andrews" <nandrews(at)investsystems(dot)co(dot)uk> |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: Databases in memory (-->flashdrive problem) |
Date: | 2002-04-16 13:53:00 |
Message-ID: | 11839.1018965180@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
"Nigel J. Andrews" <nandrews(at)investsystems(dot)co(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Dieudonne Nanga | 2002-04-16 14:22:25 | Help me! |
Previous Message | Edipo Elder Fernandes de Melo | 2002-04-16 13:52:15 | Re: psql command line history not working |