Re: pre-loading a user table.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ana Cerejo <ana(dot)cerejo(at)yale(dot)edu>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: pre-loading a user table.
Date: 2004-04-02 06:17:10
Message-ID: 22955.1080886630@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Ana Cerejo <ana(dot)cerejo(at)yale(dot)edu> writes:
> I am trying a pre-load a user table during InitPostgres. I tried to mimic
> the relevant actions in ReverifyDatabase to carry this out. I manage to
> load the first block of the table. However, if a table is more than 1
> block, I end up getting warnings about relcache reference leaks. It looks
> like I need to increase the size of the relcache. Can anyone comment on
> the approach and/or give me any advanced warnings about messing with the
> relcache?

You've broken something and you haven't got the foggiest idea what :-(
... but "increasing the size of the relcache" definitely isn't the
solution, because it isn't fixed-size.

Why do you think it useful to preload something during InitPostgres,
anyway? Any heavily used table will certainly be present in shared
buffers already, and even more surely present in kernel buffers.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Joe Conway 2004-04-02 06:38:39 Re: Inconsistent behavior on Array & Is Null?
Previous Message Greg Stark 2004-04-02 06:00:51 Re: Inconsistent behavior on Array & Is Null?