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

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Is there any method to keep table in memory at startup
Date: 2004-05-06 14:28:30
Message-ID: 409A4B8E.2010309@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Vinay Jain wrote:

> You mean that I should create a static table in C program itself and
> use it...if i am not wrong
> Ya for the time being i am doing this thing but actually table is
> bigger (around 5000 rows with 6 columns)

bigger than what?

> also this table is also created and destroyed in each indchar_lt call
> which is called many times in order by clause

uh ... maybe you need to look in your C manual about the effect of a
"static" declaration. The object will be created once.

> one more thing i want it generalized so that I can include other
> indian languages also..without changing code..
> If there is not any method to get results fast using database table i
> will have to opt this option only..

Not for what you want - you are pursuing a chimera, IMNSHO.

cheers

andrew

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-05-06 14:28:56 Re: initdb failure in CVS
Previous Message Joe Conway 2004-05-06 14:23:50 Re: Multiple "selects" returned from a single stored procedure