pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: Kevin Grittner <kgrittn@gmail.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Ants Aasma <ants.aasma@eesti.ee>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: Kevin Grittner <kgrittn@postgresql.org>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Cc: pgsql-committers@postgresql.org <pgsql-committers@postgresql.org>
Subject: Re: pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold <
Date: Thu, 30 Jun 2016 23:51:18 -0400
Message-ID: <20160701035118.GA1426591@tornado.leadboat.com> (raw)
In-Reply-To: <CACjxUsOTuSqU7byK6p_ZBBhMMenm5wzknD-EJEx2Sd9MePAfrQ@mail.gmail.com>
References: <20160616153745.upxilwj3spbi43dj@alap3.anarazel.de>
	<CA+TgmobTQ=71y-c5P9VjWxOREVYWvkKd2ajQ5-J5HRkebdZ8DQ@mail.gmail.com>
	<20160616161426.bapgkbh762ktzyhk@alap3.anarazel.de>
	<CA+TgmoZBcUoYR4VmhLoeqdt8t1b80eOacbub4WHu1duqSy8ErA@mail.gmail.com>
	<20160616165440.pla4q3gbozyciuyo@alap3.anarazel.de>
	<CA+TgmobCZGouJU=z5e2HYDRNYhD24HpwOsS11K3YZUUyoX6Lwg@mail.gmail.com>
	<20160616180141.rnknufflldy7o5if@alap3.anarazel.de>
	<CACjxUsOkMWZYFchAfjD1R4J40X5RYJ-YLo8xLPVmcHkBLSGspg@mail.gmail.com>
	<20160616183207.wygoktoplycdzav7@alap3.anarazel.de>
	<CACjxUsOTuSqU7byK6p_ZBBhMMenm5wzknD-EJEx2Sd9MePAfrQ@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

On Thu, Jun 16, 2016 at 01:56:44PM -0500, Kevin Grittner wrote:
> On Thu, Jun 16, 2016 at 1:32 PM, Andres Freund <andres@anarazel.de> wrote:
> 
> > With old_snapshot_threshold=1 I indeed can reproduce the issue. I
> > disabled autovacuum, to make the scheduling more predictable. But it
> > should "work" just as well with autovacuum.
> >
> > S1: CREATE TABLE toasted(largecol text);
> >     INSERT INTO toasted SELECT string_agg(random()::text, '-') FROM generate_series(1, 10000000);
> >     BEGIN;
> >     DELETE FROM toasted;
> > S2: BEGIN TRANSACTION ISOLATION LEVEL REPEATABLE READ;
> > S2: SELECT hashtext(largecol), length(largecol) FROM toasted;
> >> ...
> > S1: COMMIT;
> > S2: SELECT hashtext(largecol), length(largecol) FROM toasted;
> >> ...
> > S1: /* wait for snapshot threshold to be passed */
> > S1: VACUUM pg_toast.pg_toast_16437;
> >> INFO:  00000: "pg_toast_16437": found 61942 removable, 0 nonremovable row versions in 15486 out of 15486 pages
> >> DETAIL:  0 dead row versions cannot be removed yet.
> > S2: SELECT hashtext(largecol), length(largecol) FROM toasted;
> > ERROR:  XX000: missing chunk number 0 for toast value 16455 in pg_toast_16437
> > LOCATION:  toast_fetch_datum, tuptoaster.c:1945
> 
> Thanks!  That's something I should be able to work with.
> Unfortunately, I am going to be on vacation, so I won't have any
> results until sometime after 28 June.

This PostgreSQL 9.6 open item is past due for your status update.  Kindly send
a status update within 24 hours, and include a date for your subsequent status
update.  Refer to the policy on open item ownership:
http://www.postgresql.org/message-id/20160527025039.GA447393@tornado.leadboat.com


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



view thread (195+ messages)  latest in thread

Message-ID: <20160701035118.GA1426591@tornado.leadboat.com>
Permalink:  ../20160701035118.GA1426591@tornado.leadboat.com/
Also on:    postgresql.org/message-id/20160701035118.GA1426591@tornado.leadboat.com

 · 

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: noah@leadboat.com, kgrittn@gmail.com, andres@anarazel.de, robertmhaas@gmail.com, alvherre@2ndquadrant.com, ants.aasma@eesti.ee, amit.kapila16@gmail.com, kgrittn@postgresql.org, pgsql-hackers@postgresql.org
  Subject: Re: pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold <
  In-Reply-To: <20160701035118.GA1426591@tornado.leadboat.com>
  References: <20160616153745.upxilwj3spbi43dj@alap3.anarazel.de> <CA+TgmobTQ=71y-c5P9VjWxOREVYWvkKd2ajQ5-J5HRkebdZ8DQ@mail.gmail.com> <20160616161426.bapgkbh762ktzyhk@alap3.anarazel.de> <CA+TgmoZBcUoYR4VmhLoeqdt8t1b80eOacbub4WHu1duqSy8ErA@mail.gmail.com> <20160616165440.pla4q3gbozyciuyo@alap3.anarazel.de> <CA+TgmobCZGouJU=z5e2HYDRNYhD24HpwOsS11K3YZUUyoX6Lwg@mail.gmail.com> <20160616180141.rnknufflldy7o5if@alap3.anarazel.de> <CACjxUsOkMWZYFchAfjD1R4J40X5RYJ-YLo8xLPVmcHkBLSGspg@mail.gmail.com> <20160616183207.wygoktoplycdzav7@alap3.anarazel.de> <CACjxUsOTuSqU7byK6p_ZBBhMMenm5wzknD-EJEx2Sd9MePAfrQ@mail.gmail.com> <20160701035118.GA1426591@tornado.leadboat.com>

* 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