Re: Re: AW: Re: OID wraparound: summary and proposal - Mailing list pgsql-hackers

From mlw
Subject Re: Re: AW: Re: OID wraparound: summary and proposal
Date
Msg-id 3B6EF02C.528FA4E8@mohawksoft.com
Whole thread Raw
In response to RE: Re: AW: Re: OID wraparound: summary and proposal  ("Hiroshi Inoue" <Inoue@tpf.co.jp>)
List pgsql-hackers
Could we modify the Relation structure to hold an Oid counter? So every where
Postgres calls "newoid(void)" it gets changed to pass the relation structure it
will be associated with, i.e. newoid(Relation *). That way, every relation
could have its own counter, AND perhaps its own spinlock. Relations are shared
amongst the various processes, correct? If you pass NULL as the relation, you
get an OID out of the ShmemVariableCache->nextXid.

Am I being overly simplistic?




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Use int8 for int4/int2 aggregate accumulators?
Next
From: Tom Lane
Date:
Subject: Re: Notes about int8 sequences