Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNRMt-00028b-Rv for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Jul 2016 21:06:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bNRMt-0006hi-F5 for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Jul 2016 21:06:55 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bNRLW-0003j7-7h for pgsql-hackers@postgresql.org; Wed, 13 Jul 2016 21:05:30 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bNRLT-0007Cc-ND; Wed, 13 Jul 2016 21:05:29 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id D117A204F2; Wed, 13 Jul 2016 17:05:26 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Wed, 13 Jul 2016 17:05:27 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=BXdmhIn9rik/VUUYKksXa4M+xwc=; b=o3jZq KJvDchsWXY8B2pmvQEgU1T6E9jiKx0hemJ23lqloKizlNATyFR2srz6lrUNFF2oh xD9j9yaTN8qDCygrZBh0h5Q0WSk3ndHFHnWMQerdf0KOutGMrIQQpHSHUD3S25XO hjG6nVgdrg7zzQ0hc+CrgNV3sIskFGqCJFx4P0= X-Sasl-enc: Bv1S2RCwOHnudQd1e97byzeIw7uqpz8cpOiqYmdlDYdE 1468443926 Received: from intern.anarazel.de (somacentral1.static.monkeybrains.net [162.217.75.74]) by mail.messagingengine.com (Postfix) with ESMTPA id 67373CC01B; Wed, 13 Jul 2016 17:05:26 -0400 (EDT) Date: Wed, 13 Jul 2016 14:05:25 -0700 From: Andres Freund To: Kevin Grittner Cc: Amit Kapila , Noah Misch , Robert Haas , Alvaro Herrera , Ants Aasma , Kevin Grittner , "pgsql-hackers@postgresql.org" Subject: Re: Re: [COMMITTERS] pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold < Message-ID: <20160713210525.6l4ufjlnfmg5f6ni@alap3.anarazel.de> References: <20160706215556.cmhtizpbdn6zp464@alap3.anarazel.de> <20160708175349.ue6okmukiny3r6cp@alap3.anarazel.de> <20160708185221.ez2hnj4yalxaoqnm@alap3.anarazel.de> <20160713174838.oh53exchsuyxxply@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -2.6 (--) 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 2016-07-13 15:57:02 -0500, Kevin Grittner wrote: > A short answer is that a normal table's heap doesn't go through > systable_getnext_ordered(). That function is used both for cases > where the check should not be made, like toast_delete_datum(), and > cases where it should, like toast_fetch_datum(). It *has* to be be made for toast_delete_datum(). Otherwise we could end up deleting a since reused toast id. Or am I missing something? Andres -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers