From: Tom Lane <tgl@sss.pgh.pa.us>
To: constzl <const_sunny@126.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: ran out of space in relation map
Date: Sat, 24 Aug 2019 01:58:22 -0400
Message-ID: <7235.1566626302@sss.pgh.pa.us> (raw)
In-Reply-To: <73af4845.12a1.16cc1bd1151.Coremail.const_sunny@126.com>
References: <73af4845.12a1.16cc1bd1151.Coremail.const_sunny@126.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, const_sunny@126.com
Subject: Re: ran out of space in relation map
In-Reply-To: <7235.1566626302@sss.pgh.pa.us>
References: <73af4845.12a1.16cc1bd1151.Coremail.const_sunny@126.com> <7235.1566626302@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox