Re: Query caching - Mailing list pgsql-general

From Poul L. Christiansen
Subject Re: Query caching
Date
Msg-id 39FFED9A.E064B36D@cs.auc.dk
Whole thread Raw
In response to Re: Query caching  (Daniel Freedman <freedman@ccmr.cornell.edu>)
Responses Re: Query caching
Re: Query caching
List pgsql-general
Daniel Freedman wrote:
>
> On the topic of query cache (or maybe this is just tangential and I'm
> confused):
>
> I've always heard that Oracle has the ability to essentially suck in as
> much of the database into RAM as you have memory to allow it, and can then
> just run its queries on that in-RAM database (or db subset) without doing
> disk I/O (which I would probably imagine is one of the more expensive
> parts of a given SQL command).  I've looked for references as to
> Postgresql's ability to do something like this, but I've never been
> certain if it's possible.  Can postgresql do this, please?  And, if not,
> does it have to hit the disk for every SQL instruction (I would assume
> so)?

PostgreSQL hits the disk on UPDATE/DELETE/INSERT operations. SELECT's
are cached, but the default cache is only ½MB of RAM. You can change
this to whatever you want.

I'm using Cold Fusion and it can cache queries itself, so no database
action is necessary. But I don't think PHP and others have this
possibility. But Cold Fusion costs 1300$ :(

Poul L. Christiansen

pgsql-general by date:

Previous
From: Dave
Date:
Subject: How to configure pgsql to store chinese?
Next
From: "Nick Fankhauser"
Date:
Subject: Character type delimiters - can they be changed?