Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fB77O-0007I0-3f for pgsql-docs@arkaria.postgresql.org; Tue, 24 Apr 2018 23:13:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fB77M-000379-Kx for pgsql-docs@arkaria.postgresql.org; Tue, 24 Apr 2018 23:13:00 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fB77M-000370-Bk for pgsql-docs@lists.postgresql.org; Tue, 24 Apr 2018 23:13:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fB77J-0001V5-7h for pgsql-docs@lists.postgresql.org; Tue, 24 Apr 2018 23:12:59 +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 w3ONCuRx017094; Tue, 24 Apr 2018 19:12:56 -0400 From: Tom Lane To: Oleg Bartunov cc: pgsql-docs@lists.postgresql.org Subject: Re: document json[b] limitation In-reply-to: References: Comments: In-reply-to Oleg Bartunov message dated "Tue, 24 Apr 2018 19:53:41 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <17092.1524611576.1@sss.pgh.pa.us> Date: Tue, 24 Apr 2018 19:12:56 -0400 Message-ID: <17093.1524611576@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Oleg Bartunov writes: > Attached is a small patch, which documents the maximum size of > json[b] types. Probably, it's worth to patch previous releases, where > the types were introduced. If you said "maximum size is 1GB", period, I'd believe it ... although I'm pretty sure that general limitation is already documented elsewhere. I don't believe that it's possible to make a 256 Gb jsonb. How will that fit in the varlena header? regards, tom lane