From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Hannu Krosing <hannu(at)tm(dot)ee> |
Cc: | Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>, Alex Pilosov <alex(at)pilosoft(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Re: AW: Re: OID wraparound: summary and proposal |
Date: | 2001-08-07 13:48:54 |
Message-ID: | 29251.997192134@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hannu Krosing <hannu(at)tm(dot)ee> writes:
> Will it be easier to make Relation shared and persistent or creating
> a new shared structure that has just a counter+lock for each
> relation oid ?
The latter. Relation (by which I mean a whole relcache entry with all
its subsidiary structure, not only struct RelationData) is too large,
complex and heavyweight a structure to be a good candidate for moving
into shared memory. It also contains a lot of backend-local status
data in its current incarnation.
Some kind of shared cache for sequence generators (essentially,
generalizing the existing shared OID counter into N counters) is
probably the answer. But it would have to be a cache, not the whole
truth, so there'd need to be an underlying table that holds counters not
currently swapped into cache. That part we don't have a good model for
in the existing OID-generator code, nor in the existing sequence code.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-08-07 13:51:01 | Re: Notes about int8 sequences |
Previous Message | Tom Lane | 2001-08-07 13:35:43 | Re: OID wraparound: summary and proposal |