pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Thom Brown <thom@linux.com>
Cc: Abhijit Menon-Sen <ams@2ndquadrant.com>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: Haribabu Kommi <kommi.haribabu@gmail.com>
Cc: Fabien COELHO <coelho@cri.ensmp.fr>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: [BUGS] Breakage with VACUUM ANALYSE + partitions
Date: Mon, 2 May 2016 09:41:11 -0700
Message-ID: <20160502164111.cpupbbkab6ik7wwd@alap3.anarazel.de> (raw)
In-Reply-To: <CA+TgmoZirJKnSAkjZHt8cVRW9Y7yHyWFLNENnT-LkFtBi6oBfw@mail.gmail.com>
References: <20160425155627.e4yk72bm2naisesz@alap3.anarazel.de>
	<CA+TgmobyCtD4xRY4Ee2Jv6-qznMDaLVrMshuirXbdPNjaYVQGA@mail.gmail.com>
	<20160425180521.2g6o4tgpkc3jneyj@alap3.anarazel.de>
	<CA+TgmobdydzhyzsF1gFNu9P=b_uADoM3R-BFGFuF-+heT9OaJw@mail.gmail.com>
	<20160425205720.i2ldnkwj6a2ldz7g@alap3.anarazel.de>
	<CA+Tgmob97m0GniMp82bGkzdZBuLbJWBy2uUbJMtDpAHbm8CRVQ@mail.gmail.com>
	<20160426213207.j3xi2amneejm3ed6@alap3.anarazel.de>
	<CAA-aLv72QazLvPdKZYpVn4a_Eh+i4_cxuB03k+iCuZM_xjc+6Q@mail.gmail.com>
	<20160429235837.b63wkjw4dduf56wt@alap3.anarazel.de>
	<CA+TgmoZirJKnSAkjZHt8cVRW9Y7yHyWFLNENnT-LkFtBi6oBfw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On 2016-05-02 12:29:45 -0400, Robert Haas wrote:
> On Fri, Apr 29, 2016 at 7:58 PM, Andres Freund <andres@anarazel.de> wrote:
> > Basically the reason for the problem is that mdsync() needs to access
> > "formally non-existant segments" (as in ones where previous segments are
> > < RELSEG_SIZE), because we queue (and the might be preexistant) fsync
> > requests via register_dirty_segment() in mdtruncate().
> 
> Shouldn't we just throw those flush requests away?

Well, we explicity make them for truncations (register_dirty_segment()
calls in mdtruncate()).  There's no comment as to why - I suspect the
idea is that you want to make sure the truncation sticks in case of
crash?

FWIW, falling back to _mdfd_openseg() fixes the issue.

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 (64+ messages)  latest in thread

Message-ID: <20160502164111.cpupbbkab6ik7wwd@alap3.anarazel.de>
Permalink:  ../20160502164111.cpupbbkab6ik7wwd@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20160502164111.cpupbbkab6ik7wwd@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-bugs@postgresql.org
  Cc: andres@anarazel.de, robertmhaas@gmail.com, thom@linux.com, ams@2ndquadrant.com, michael.paquier@gmail.com, kommi.haribabu@gmail.com, coelho@cri.ensmp.fr, pgsql-hackers@postgresql.org
  Subject: Re: [BUGS] Breakage with VACUUM ANALYSE + partitions
  In-Reply-To: <20160502164111.cpupbbkab6ik7wwd@alap3.anarazel.de>
  References: <20160425155627.e4yk72bm2naisesz@alap3.anarazel.de> <CA+TgmobyCtD4xRY4Ee2Jv6-qznMDaLVrMshuirXbdPNjaYVQGA@mail.gmail.com> <20160425180521.2g6o4tgpkc3jneyj@alap3.anarazel.de> <CA+TgmobdydzhyzsF1gFNu9P=b_uADoM3R-BFGFuF-+heT9OaJw@mail.gmail.com> <20160425205720.i2ldnkwj6a2ldz7g@alap3.anarazel.de> <CA+Tgmob97m0GniMp82bGkzdZBuLbJWBy2uUbJMtDpAHbm8CRVQ@mail.gmail.com> <20160426213207.j3xi2amneejm3ed6@alap3.anarazel.de> <CAA-aLv72QazLvPdKZYpVn4a_Eh+i4_cxuB03k+iCuZM_xjc+6Q@mail.gmail.com> <20160429235837.b63wkjw4dduf56wt@alap3.anarazel.de> <CA+TgmoZirJKnSAkjZHt8cVRW9Y7yHyWFLNENnT-LkFtBi6oBfw@mail.gmail.com> <20160502164111.cpupbbkab6ik7wwd@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