Tom Lane wrote:
>
> mlw <markw(at)mohawksoft(dot)com> writes:
> > Am I being overly simplistic?
>
> Yes. For one thing, Relation structs are *not* shared, nor even
> persistent (the relcache will happily discard them).
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 ?
> For another, you
> haven't mentioned how we keep the counter up-to-date across system
> restarts.
Perhaps write it to database at checkpoints and get the last INSERTED
record
from WAL at restart ?
Probably too simplistic as well ;)