Re: system cache and buffer cache - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: system cache and buffer cache
Date
Msg-id 450FF398.9030409@enterprisedb.com
Whole thread Raw
In response to system cache and buffer cache  (Praveen Kumar N <praveen_n@students.iiit.net>)
Responses Re: system cache and buffer cache
List pgsql-hackers
Praveen Kumar N wrote:
> Hi,
>     can anybody explain me what is the difference between system cache 
> and buffer cache?
>
> I found that keywords in PostgreSql FAQ 
> http://www.postgresql.org/docs/faqs.FAQ_DEV.html#item2.1

System cache is a per-row cache of system catalog tables. It's used to 
speed up lookup of things like function names. It's implemented in 
src/backend/utils/cache/syscache.c

Buffer cache is the cache managed by the buffer manager, that caches any 
blocks from any relation used in the system. All access to relations go 
through the buffer cache, using ReadBuffer/ReleaseBuffer (etc.) calls. 
It's implemented in src/backend/storage/buffer/bufmgr.c

--  Heikki Linnakangas EnterpriseDB   http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Release notes
Next
From: Praveen Kumar N
Date:
Subject: Re: system cache and buffer cache