Re: ran out of space in relation map - Mailing list pgsql-bugs

From Tom Lane
Subject Re: ran out of space in relation map
Date
Msg-id 7235.1566626302@sss.pgh.pa.us
Whole thread Raw
In response to ran out of space in relation map  (constzl <const_sunny@126.com>)
Responses Re:Re: ran out of space in relation map
List pgsql-bugs
constzl <const_sunny@126.com> writes:
> This means that the number of mapping objects can not be more than MAX_MAPPINGS, which is 62 now.

Yeah ...

> If one day in the future, it does need to be more than 62, then what to do?

Rethink your design?  The current system is not close to running
out of those slots, and I can't see any good reason for a large
increase in the number of shared catalogs.

If our backs were against the wall, we could rearrange things
on the assumption that the OIDs of mapped catalogs must fit in
16 bits, which would make room for 80 or so slots without
having to worry about torn writes.  We could also be a bit
charier about how many of these catalogs actually need toast
tables ...

            regards, tom lane



pgsql-bugs by date:

Previous
From: constzl
Date:
Subject: ran out of space in relation map
Next
From: constzl
Date:
Subject: Re:Re: ran out of space in relation map