Re: In memory Database for postgres

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: "Robert Treat" <xzilla(at)users(dot)sourceforge(dot)net>
Cc: pgsql-general(at)postgresql(dot)org, Blazej <bl(dot)oleszkiewicz(at)gmail(dot)com>, avin_friends(at)yahoo(dot)com
Subject: Re: In memory Database for postgres
Date: 2008-11-18 03:03:05
Message-ID: dcc563d10811171903s121bf5cfs2c6ebddd2079bc0c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Nov 17, 2008 at 7:13 PM, Robert Treat
<xzilla(at)users(dot)sourceforge(dot)net> wrote:
> On Monday 17 November 2008 17:02:54 Blazej wrote:
>> Of course you must delete schema before shutdown PostgreSQL and OS - I
>> dont't now how resolve problem with error when the schema was not
>> deleted? - I have no time to think about it maybe anybody know how to
>> restore db when the in memory schema was damaged?
>>
>
> based on some similar, uh, experiences i've run across, i'd think easiest
> would be to keep a script around with truncate commands for all your tables,
> then when you restart, you run that script, which will "fix" your schema for
> you. This assumes you're keeping the default table space on hdd, if you lose
> the system catalogs, the right answer is "initdb"

Heck, you could run PITR to another pgsql instance on the local hard
drives for cheap, and then if things go horribly wrong, you just
reinit the ram based instance and restore it from the hard drive one.

One shouldn't act / believe / have faith that the in store version of
the db is durable. Of course it's not, no machine stays up all the
time without any errors. Even mainframes occasionally suffer
downtime, even if it's some guy hitting the big red switch on accident
during a customer tour of the datacenter.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2008-11-18 03:22:29 Re: [GENERAL] db_user_namespace, md5 and changing passwords
Previous Message Tony Caduto 2008-11-18 02:44:22 Re: Trying Compile libpq.dll with VC++ 9.0, but need help