From: | Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com> |
---|---|
To: | Natarajan R <nataraj3098(at)gmail(dot)com> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Postgres cache |
Date: | 2019-10-31 21:24:54 |
Message-ID: | 20191031212454.anroolxucvopgxfz@development |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, Oct 31, 2019 at 03:19:23PM +0530, Natarajan R wrote:
>Hi,
>
>I want to know how postgres stores catalog relations in cache in-depth. Is
>there any documentation for that?
Not sure what exactly you mean by "cache" - whether shared buffers (as a
shared general database cache) or syscache/catcache, i.e. the special
cache of catalog records each backend maintains privately.
I'm not aware of exhaustive developer docs explaining these parts, but
for shared buffers you might want to look at
src/backend/storage/buffer/README
while for catcache/syscache you probably need to look at the code and
comments in the related files, particularly in
src/backend/utils/cache/syscache.c
src/backend/utils/cache/relcache.c
Not sure if there's a better source of information :-(
regards
--
Tomas Vondra http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Ibrar Ahmed | 2019-10-31 21:33:53 | Re: The command tag of "ALTER MATERIALIZED VIEW RENAME COLUMN" |
Previous Message | Andrew Dunstan | 2019-10-31 20:58:20 | Allow superuser to grant passwordless connection rights on postgres_fdw |