Re: Shared memory and memory context question - Mailing list pgsql-hackers

From Richard Hills
Subject Re: Shared memory and memory context question
Date
Msg-id 200602051713.29159.richard@playford.net
Whole thread Raw
In response to Re: Shared memory and memory context question  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Shared memory and memory context question
List pgsql-hackers
On Sun February 5 2006 16:16, Tom Lane wrote:
> AFAICT the data structures you are worried about don't have any readily
> predictable size, which means there is no good way to keep them in
> shared memory --- we can't dynamically resize shared memory.  So I think
> storing the rules in a table and loading into private memory at need is
> really the only reasonable solution.  Storing them in a table has a lot
> of other advantages anyway, mainly that you can manipulate them from
> SQL.

I have come to the conclusion that storing the rules and various other bits in 
tables is the best solution, although this will require a much more complex 
db structure than I had originally planned. Trying to allocate and free 
memory in shared memory is fairly straightforward, but likely to become 
incredibly messy.

Seeing as some of the rules already include load-value-from-db-on-demand, it 
should be fairly straightforward to extend it to load-rule-from-db-on-demand.

Thanks for all your help,

Regards,

Richard


pgsql-hackers by date:

Previous
From: "hassane ariouat"
Date:
Subject: renseignement
Next
From: Stephen Frost
Date:
Subject: Re: Krb5 & multiple DB connections