Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bDHNw-00015K-Jc for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Jun 2016 20:26:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bDHNw-0007gD-6j for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Jun 2016 20:26:00 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bDHNv-0007g4-O3; Wed, 15 Jun 2016 20:25:59 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bDHNs-00039H-Nq; Wed, 15 Jun 2016 20:25:59 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 6A1EC21409; Wed, 15 Jun 2016 16:25:54 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Wed, 15 Jun 2016 16:25:54 -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=hzJo54hTQC1Z1MzT41TNsRTL7L0=; b=G2Cv9 qv+GVxFEXc2LTnuZgDgnH1l3CDYs4yhRYkKfbQAyaJBMauLb0pKpFJj6d5SRoQlv wUnoAl8bz9AgQRy+WfNznFjnMESb4tJ1apDZrKBZ9UYA2zsvWkw6hlhqOHMpYm01 bqK3lt8LVKmOlhpExoz5wmBBl/1imicxfAU6IE= X-Sasl-enc: zYx9gZ3l1bMH8p0Juv311VMx/71sZjzd1cftxBopNq6E 1466022354 Received: from intern.anarazel.de (somacentral1.static.monkeybrains.net [162.217.75.74]) by mail.messagingengine.com (Postfix) with ESMTPA id F06E4CCD34; Wed, 15 Jun 2016 16:25:53 -0400 (EDT) Date: Wed, 15 Jun 2016 13:25:52 -0700 From: Andres Freund To: Kevin Grittner Cc: Robert Haas , Alvaro Herrera , Ants Aasma , Amit Kapila , Noah Misch , Kevin Grittner , "pgsql-hackers@postgresql.org" , "pgsql-committers@postgresql.org" Subject: Re: Re: [COMMITTERS] pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold < Message-ID: <20160615202552.32oc3y3zzd5pukbp@alap3.anarazel.de> References: <20160615184537.GA20738@alvherre.pgsql> <20160615192011.eicg7hwkndyx2cmo@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-06-15 14:24:58 -0500, Kevin Grittner wrote: > On Wed, Jun 15, 2016 at 2:20 PM, Andres Freund wrote: > > > We might fetch a toast tuple which > > since have been re-purposed for a datum of a different type. > > How would that happen? Autovac vacuums toast and heap tables independently. Once a toast datum isn't used anymore, the oid used can be reused (because it doesn't conflict via GetNewOidWithIndex() anymore. If analyze then detoasts a datum, which hasn't been removed, the contents of that toast id, might actually be for something different. That's not super likely to happen (given how rare oid wraparounds usually are), but it appears to be possible. Regards, Andres -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers