pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Kevin Grittner <kgrittn@gmail.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: Noah Misch <noah@leadboat.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Ants Aasma <ants.aasma@eesti.ee>
Cc: Kevin Grittner <kgrittn@postgresql.org>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: Re: [COMMITTERS] pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold <
Date: Wed, 13 Jul 2016 14:05:25 -0700
Message-ID: <20160713210525.6l4ufjlnfmg5f6ni@alap3.anarazel.de> (raw)
In-Reply-To: <CACjxUsM=QefOrSyO3ReKJu+7_HMLsF4mL=eKVTT=J-9PPzdz8A@mail.gmail.com>
References: <20160706215556.cmhtizpbdn6zp464@alap3.anarazel.de>
	<CACjxUsPR+fr5QeYJMpPqvP3HyPDYynWa6NsFoivox7ViHxVD9Q@mail.gmail.com>
	<20160708175349.ue6okmukiny3r6cp@alap3.anarazel.de>
	<CACjxUsNCbsq_p_pVbrjHGfUnFw4i-FtjnHeZrpkOBNUEE_w45Q@mail.gmail.com>
	<20160708185221.ez2hnj4yalxaoqnm@alap3.anarazel.de>
	<CACjxUsNdQdwiU1em=xYsRmgCYV=2FT4nFn9uSA76JEovgLtM9A@mail.gmail.com>
	<CAA4eK1+B4fu5haTGg1ajyuRF9EK2ZhJsgTu7cT1GDArPHqe+0w@mail.gmail.com>
	<CACjxUsNERjp3BBBWfgs4mg3CyA+O0ATN1=O4NM3MWC3_LHP-dg@mail.gmail.com>
	<20160713174838.oh53exchsuyxxply@alap3.anarazel.de>
	<CACjxUsM=QefOrSyO3ReKJu+7_HMLsF4mL=eKVTT=J-9PPzdz8A@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

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



view thread (195+ messages)  latest in thread

Message-ID: <20160713210525.6l4ufjlnfmg5f6ni@alap3.anarazel.de>
Permalink:  ../20160713210525.6l4ufjlnfmg5f6ni@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20160713210525.6l4ufjlnfmg5f6ni@alap3.anarazel.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de, kgrittn@gmail.com, amit.kapila16@gmail.com, noah@leadboat.com, robertmhaas@gmail.com, alvherre@2ndquadrant.com, ants.aasma@eesti.ee, kgrittn@postgresql.org, pgsql-hackers@postgresql.org
  Subject: Re: [COMMITTERS] pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold <
  In-Reply-To: <20160713210525.6l4ufjlnfmg5f6ni@alap3.anarazel.de>
  References: <20160706215556.cmhtizpbdn6zp464@alap3.anarazel.de> <CACjxUsPR+fr5QeYJMpPqvP3HyPDYynWa6NsFoivox7ViHxVD9Q@mail.gmail.com> <20160708175349.ue6okmukiny3r6cp@alap3.anarazel.de> <CACjxUsNCbsq_p_pVbrjHGfUnFw4i-FtjnHeZrpkOBNUEE_w45Q@mail.gmail.com> <20160708185221.ez2hnj4yalxaoqnm@alap3.anarazel.de> <CACjxUsNdQdwiU1em=xYsRmgCYV=2FT4nFn9uSA76JEovgLtM9A@mail.gmail.com> <CAA4eK1+B4fu5haTGg1ajyuRF9EK2ZhJsgTu7cT1GDArPHqe+0w@mail.gmail.com> <CACjxUsNERjp3BBBWfgs4mg3CyA+O0ATN1=O4NM3MWC3_LHP-dg@mail.gmail.com> <20160713174838.oh53exchsuyxxply@alap3.anarazel.de> <CACjxUsM=QefOrSyO3ReKJu+7_HMLsF4mL=eKVTT=J-9PPzdz8A@mail.gmail.com> <20160713210525.6l4ufjlnfmg5f6ni@alap3.anarazel.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox