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.92) (envelope-from ) id 1jCY0x-0003TC-5P for pgsql-docs@arkaria.postgresql.org; Fri, 13 Mar 2020 00:17:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jCY0t-0000LF-OG for pgsql-docs@arkaria.postgresql.org; Fri, 13 Mar 2020 00:17:19 +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 1jCY0t-0000L8-G6 for pgsql-docs@lists.postgresql.org; Fri, 13 Mar 2020 00:17:19 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jCY0q-0003ZM-Er for pgsql-docs@lists.postgresql.org; Fri, 13 Mar 2020 00:17:19 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1jCY0m-0007iJ-HP; Thu, 12 Mar 2020 20:17:12 -0400 Date: Thu, 12 Mar 2020 20:17:12 -0400 From: Bruce Momjian To: davidmaxwell@gmail.com, pgsql-docs@lists.postgresql.org Subject: Re: btree index maximum row size Message-ID: <20200313001712.GB2309@momjian.us> References: <158075695971.1097.12385301555340285776@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <158075695971.1097.12385301555340285776@wrigleys.postgresql.org> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, Feb 3, 2020 at 07:09:19PM +0000, PG Doc comments form wrote: > The following documentation comment has been logged on the website: > > Page: https://www.postgresql.org/docs/12/limits.html > Description: > > Appendix K (PostgreSQL Limits) - doesn't mention the (btree) index row size > limits. I think that it should. Sorry for the delay in replying. We do get questions about the btree length limit occasionally, but practically the length limit usually isn't a problem. Unless you need ordered data, a hash index is a better choice for long values than btree because the hashes are much shorter. Expression indexes can also help. What is your use-case for indexing very long values? -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +