Re: Is there any method to keep table in memory at startup

From: Vinay Jain <vinayj(at)sarathi(dot)ncst(dot)ernet(dot)in>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Is there any method to keep table in memory at startup
Date: 2004-05-07 12:05:12
Message-ID: 409B7B78.8080905@sarathi.ncst.ernet.in
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andrew Dunstan wrote:

>Vinay Jain said:
>
>
>>Andrew Dunstan wrote:
>>
>>
>>
>>>uh ... maybe you need to look in your C manual about the effect of a
>>>"static" declaration. The object will be created once.
>>>
>>>
>>>
>>yup I know the effect of Static but this is also fact that when
>>program terminates and restarts object will be created again...(not
>>persistant)..
>>
>>
>>
>
>you can have it preloaded and persistent to the end of the server run, see
>http://www.postgresql.org/docs/current/static/runtime-config.html#RUNTIME-
>CONFIG-RESOURCE
>
>
>
>
>>one thing strikes in my mind is that indchar_lt is function in shared
>>object file indchar.so.....if this file is not unloaded during Order by
>> call than this static defination can work for me..
>>Not sure but I think this file is loaded each time indchar_lt is called
>> in order by clause...
>>
>>
>>
>
>If course it is not loaded each time. That would be insane. If not
>preloaded it is loaded when first called in each process, and then kept.
>It is never unloaded (except by the termination of the process that loaded
>it).
>
>It seems you have been laboring under a misapprehension.
>
If this is the case than I can make connection to data base in starting
of indchar.so file and close connection at end of it and it should work....
bingo!!
it would solve my problem

>
>cheers
>
>andrew
>
>thanx
>
>Vinay Jain
>---------------------------(end of broadcast)---------------------------
>TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>
>
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2004-05-07 12:25:28 Re: Is there any method to keep table in memory at startup
Previous Message Andrew Dunstan 2004-05-07 11:46:29 Re: psql 7.3.4 disagrees with NATURAL CROSS JOIN