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 1gyKIy-0006LO-PN for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Feb 2019 17:44:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gyKIw-0003xy-S0 for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Feb 2019 17:44: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 1gyKIw-0003xA-Ks for pgsql-hackers@lists.postgresql.org; Mon, 25 Feb 2019 17:44:38 +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 1gyKIq-0002mM-B3; Mon, 25 Feb 2019 17:44:38 +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 x1PHiSro000650; Mon, 25 Feb 2019 12:44:28 -0500 From: Tom Lane To: Amit Kapila cc: pgsql-hackers@lists.postgresql.org Subject: Re: pgsql: Avoid creation of the free space map for small heap relations, t In-reply-to: <32368.1551114120@sss.pgh.pa.us> References: <32368.1551114120@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Mon, 25 Feb 2019 12:02:00 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <648.1551116668.1@sss.pgh.pa.us> Date: Mon, 25 Feb 2019 12:44:28 -0500 Message-ID: <649.1551116668@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I wrote: > Amit Kapila writes: >> Avoid creation of the free space map for small heap relations, take 2. > I think this patch still has some issues. Just out of curiosity ... how can it possibly be even a little bit sane that fsm_local_map is a single static data structure, without even any indication of which table it is for? If, somehow, there's a rational argument for that design, why is it not explained in freespace.c? The most charitable interpretation of what I see there is that it's fatally undercommented. regards, tom lane