"Jim C. Nasby" <jnasby(at)pervasive(dot)com> writes:
> Rather than keeping track of which relation was last used (presumably
> everytime something hits the FSM), wouldn't it make more sense to just
> drop the relation with the smallest amount of free space in the map?
Why? That certainly wouldn't be cheaper to track.
> Of course maybe a better question is why we even limit based on the
> number of relations...
Shared memory is fixed-size.
regards, tom lane