Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sBEyM-00FIsK-Sq for pgsql-docs@arkaria.postgresql.org; Sun, 26 May 2024 14:35:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sBEyM-004CG7-QO for pgsql-docs@arkaria.postgresql.org; Sun, 26 May 2024 14:35:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sBEyM-004CFw-Ir for pgsql-docs@lists.postgresql.org; Sun, 26 May 2024 14:35:42 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sBEyF-0025IF-Mq for pgsql-docs@lists.postgresql.org; Sun, 26 May 2024 14:35:41 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 44QEZYMv1021803; Sun, 26 May 2024 10:35:34 -0400 From: Tom Lane To: y.saburov@gmail.com cc: pgsql-docs@lists.postgresql.org Subject: Re: The examples given in Chapter 14 are not true. In-reply-to: <171673189739.2021727.14284698255790538307@wrigleys.postgresql.org> References: <171673189739.2021727.14284698255790538307@wrigleys.postgresql.org> Comments: In-reply-to PG Doc comments form message dated "Sun, 26 May 2024 13:58:17 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2751.1716734134.1@sss.pgh.pa.us> Date: Sun, 26 May 2024 10:35:34 -0400 Message-ID: <2752.1716734134@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Doc comments form writes: > Page: https://www.postgresql.org/docs/16/performance-tips.html > 1) How did you create the `tenk1` table? As the text says, it's supposed to be made by running the core regression tests ("make installcheck"). > 1) relpages for table `tenk1` - different in version 16. Some calculations > will be incorrect accordingly > 2) you will not be able to reproduce examples for which there are no indexes > in table `tenk1` - for example index `index_tenk1_on_four`. Yeah, that's a bit out of date. I fixed it up awhile ago for v17: https://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=5caa05749 However, the text also points out that you won't necessarily get exactly the same results as are shown, for assorted reasons of which different-version is only one. So I think these changes were more neatnik-ism than rescuing the chapter from total irrelevancy. regards, tom lane