Re: [pgsql-general] In memory tables/databases - Mailing list pgsql-general

From Tom Lane
Subject Re: [pgsql-general] In memory tables/databases
Date
Msg-id 15928.1183315210@sss.pgh.pa.us
Whole thread Raw
In response to Re: [pgsql-general] In memory tables/databases  ("Alexander Todorov" <alexx.todorov@gmail.com>)
Responses Re: [pgsql-general] In memory tables/databases
List pgsql-general
"Alexander Todorov" <alexx.todorov@gmail.com> writes:
> On 7/1/07, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> As long as shared_buffers is high enough, there doesn't seem to be much
>> point in worrying about this; the incremental performance gain will be
>> minimal since everything will be in RAM anyway.

> Yes it will be but this does not mean there will be no disk i/o
> operations. Database contents still have to be backed up on disk
> (unless there is a mechanism of delayed wrtite to disk which I am not
> aware of).

It's called a checkpoint.

Assuming that you would actually like your changes to get saved
someplace, I doubt you are going to be able to improve efficiency
by replacing the existing write mechanisms by some ad-hoc
application-level backup procedure.  That's why I asked if you
thought losing data at crash was a feature, as opposed to a severe
demerit that you put up with in the hope of gaining some performance
--- because unless that's what you think, it's probably not a real
useful path to pursue.

            regards, tom lane

pgsql-general by date:

Previous
From: "Alexander Todorov"
Date:
Subject: Re: [pgsql-general] In memory tables/databases
Next
From: "Harry Jackson"
Date:
Subject: Is this a bug?