Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nYWXW-0003h1-E5 for pgsql-hackers@arkaria.postgresql.org; Sun, 27 Mar 2022 17:18:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nYWXV-0002Vt-64 for pgsql-hackers@arkaria.postgresql.org; Sun, 27 Mar 2022 17:18:53 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nYWXU-0002Vj-SH for pgsql-hackers@lists.postgresql.org; Sun, 27 Mar 2022 17:18:52 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nYWXS-0000bk-ID for pgsql-hackers@postgresql.org; Sun, 27 Mar 2022 17:18:51 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 22RHIkQG381911; Sun, 27 Mar 2022 13:18:46 -0400 From: Tom Lane To: Michael Paquier cc: =?iso-8859-1?Q?Fabr=EDzio?= de Royes Mello , Dong Wook Lee , Pgsql Hackers Subject: Re: Add pg_freespacemap extension sql test In-reply-to: References: <368485.1646756358@sss.pgh.pa.us> Comments: In-reply-to Michael Paquier message dated "Thu, 24 Mar 2022 09:40:23 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <381909.1648401526.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 27 Mar 2022 13:18:46 -0400 Message-ID: <381910.1648401526@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Michael Paquier writes: > Yes, we could extend that more. For now, I am curious to see what the > buildfarm has to say with the current contents of the patch, and I can > keep an eye on the buildfarm today, so I have applied it. It seems this is unstable under valgrind [1]: --- /mnt/resource/bf/build/skink-master/HEAD/pgsql/contrib/pg_freespacemap= /expected/pg_freespacemap.out 2022-03-24 09:39:43.974477703 +0000 +++ /mnt/resource/bf/build/skink-master/HEAD/pgsql.build/contrib/pg_freesp= acemap/results/pg_freespacemap.out 2022-03-27 17:07:23.896287669 +0000 @@ -60,6 +60,7 @@ ORDER BY 1, 2; id | blkno | is_avail = -----------------+-------+---------- + freespace_tab | 0 | t freespace_brin | 0 | f freespace_brin | 1 | f freespace_brin | 2 | t @@ -75,7 +76,7 @@ freespace_hash | 7 | f freespace_hash | 8 | f freespace_hash | 9 | f -(15 rows) +(16 rows) = -- failures with incorrect block number SELECT * FROM pg_freespace('freespace_tab', -1); skink has passed several runs since the commit went in, so it's "unstable" not "fails consistently". I see the test tries to disable autovacuum on that table, so that doesn't seem to be the problem ... what is? regards, tom lane [1] https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dskink&dt=3D2= 022-03-27%2008%3A26%3A20