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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Alexander Todorov" <alexx(dot)todorov(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [pgsql-general] In memory tables/databases
Date: 2007-07-01 18:40:10
Message-ID: 15928.1183315210@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Alexander Todorov" <alexx(dot)todorov(at)gmail(dot)com> writes:
> On 7/1/07, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Harry Jackson 2007-07-01 18:44:47 Is this a bug?
Previous Message Alexander Todorov 2007-07-01 18:29:07 Re: [pgsql-general] In memory tables/databases