Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i1P4R-00077Z-Ll for pgsql-bugs@arkaria.postgresql.org; Sat, 24 Aug 2019 05:58:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i1P4Q-0000Ns-4M for pgsql-bugs@arkaria.postgresql.org; Sat, 24 Aug 2019 05:58:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i1P4P-0000Lb-Sd for pgsql-bugs@lists.postgresql.org; Sat, 24 Aug 2019 05:58:37 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i1P4N-0002HE-6D for pgsql-bugs@lists.postgresql.org; Sat, 24 Aug 2019 05:58:37 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x7O5wMRC007236; Sat, 24 Aug 2019 01:58:22 -0400 From: Tom Lane To: constzl cc: pgsql-bugs@lists.postgresql.org Subject: Re: ran out of space in relation map In-reply-to: <73af4845.12a1.16cc1bd1151.Coremail.const_sunny@126.com> References: <73af4845.12a1.16cc1bd1151.Coremail.const_sunny@126.com> Comments: In-reply-to constzl message dated "Sat, 24 Aug 2019 11:48:09 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7234.1566626302.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sat, 24 Aug 2019 01:58:22 -0400 Message-ID: <7235.1566626302@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk constzl writes: > This means that the number of mapping objects can not be more than MAX_M= APPINGS, 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