In theory question - Mailing list pgsql-general

From Naz Gassiep
Subject In theory question
Date
Msg-id 4641D716.3000604@mira.net
Whole thread Raw
Responses Re: In theory question
Re: In theory question
Re: In theory question
List pgsql-general
This may be a question for -hackers, but I don't like disturbing them
unnecessarily.

I've been having a look at memcached. I would like to ask, is there any
reason that, theoretically, a similar caching system could be built
right into the db serving daemon?

I.e., the hash tables and libevent could sit on top of postmaster as an
optional component caching data on a per-query basis and only hitting
the actual db in the event of a cache miss?

Such a mechanism could be a) transparent to any and all APIs accessing
the back end thus instantly providing the benefits of caching to all
apps transparently, and b) assist with replication by providing a way
for a setup to have n serving daemons (effectively db caches) on
different machines accessing <n replicated DBs. Such a setup would be
far easier to set up than n fully fledged DB servers, and would likely
scale better anyway.

Thoughts?

pgsql-general by date:

Previous
From: Bill Moran
Date:
Subject: Re: Dangers of fsync = off
Next
From: Alvaro Herrera
Date:
Subject: Re: PG on Debian 4.0.x ?