Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ufcse-0000oK-HO for pgsql-hackers@arkaria.postgresql.org; Thu, 23 May 2013 21:17:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Ufcsd-0006E1-V8 for pgsql-hackers@arkaria.postgresql.org; Thu, 23 May 2013 21:17:00 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ufcsc-0006Dt-Iu for pgsql-hackers@postgreSQL.org; Thu, 23 May 2013 21:16:58 +0000 Received: from 99-153-64-76.uvs.austtx.sbcglobal.net ([99.153.64.76] helo=noel.decibel.org) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UfcsW-00062V-MY for pgsql-hackers@postgreSQL.org; Thu, 23 May 2013 21:16:58 +0000 Received: from decina.local (unknown [137.122.64.58]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by noel.decibel.org (Postfix) with ESMTPSA id 2D1126D488; Thu, 23 May 2013 21:16:47 +0000 (UTC) Message-ID: <519E873D.5000406@nasby.net> Date: Thu, 23 May 2013 16:16:45 -0500 From: Jim Nasby User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Greg Smith CC: Amit Kapila , 'PostgreSQL-development' Subject: Re: Move unused buffers to freelist References: <002f01ce50a8$e057c7a0$a10756e0$@kapila@huawei.com> <51928CDA.7030009@2ndQuadrant.com> In-Reply-To: <51928CDA.7030009@2ndQuadrant.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 1.8 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 5/14/13 2:13 PM, Greg Smith wrote: > It is possible that we are told to put something in the freelist that > is already in it; don't screw up the list if so. > > I don't see where the code does anything to handle that though. What was your intention here? IIRC, the code that pulls from the freelist already deals with the possibility that a block was on the freelist but has since been put to use. If that's the case then there shouldn't be much penalty to adding a block multiple times (at least within reason...) -- Jim C. Nasby, Data Architect jim@nasby.net 512.569.9461 (cell) http://jim.nasby.net -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers