pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Thom Brown <thom@linux.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Abhijit Menon-Sen <ams@2ndquadrant.com>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: Haribabu Kommi <kommi.haribabu@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: [BUGS] Breakage with VACUUM ANALYSE + partitions
Date: Thu, 28 Apr 2016 21:36:56 +0200 (CEST)
Message-ID: <alpine.DEB.2.10.1604282127590.8824@sto> (raw)
In-Reply-To: <CAA-aLv72QazLvPdKZYpVn4a_Eh+i4_cxuB03k+iCuZM_xjc+6Q@mail.gmail.com>
References: <20160414053929.GA29751@toroid.org>
	<20160422170736.bjrsusb4ubdhdtl4@alap3.anarazel.de>
	<CA+TgmoZj=eA5g0+6nFxPjhfDzCEaHJM_vf00krD0LqKC3jkqGw@mail.gmail.com>
	<CA+TgmobW=RrpTHo6ghH33bvhJL78zSudf_3c1dub48sSpswx5g@mail.gmail.com>
	<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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>


> createdb: database creation failed: ERROR:  checkpoint request failed
> HINT:  Consult recent messages in the server log for details.

Attached is a simpler/faster version, based on the previous script, I just 
added a CHECKPOINT after the EXPLAIN ANALYSE.

It fails on head with:

  HINT:  Consider increasing the configuration parameter "max_wal_size".
  ERROR:  canceling autovacuum task
  CONTEXT:  automatic vacuum of table "fabien.public.pgbench_accounts"
  ERROR:  canceling autovacuum task
  CONTEXT:  automatic analyze of table "fabien.public.pgbench_accounts_1"
  ERROR:  canceling autovacuum task
  CONTEXT:  automatic analyze of table "fabien.public.pgbench_accounts_2"
  ERROR:  could not fsync file "base/16384/16397.1": No such file or directory
  ERROR:  checkpoint request failed
  HINT:  Consult recent messages in the server log for details.
  STATEMENT:  CHECKPOINT;

I tried it on pg prior to the flushing patches and it did not fail, so it 
seems to be related somehow. Probably the fix is similar, just some 
conditions to check when dealing with a file which has been removed by a 
large DELETE.

-- 
Fabien.

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

Attachments:

  xxx.sh (application/x-sh, 174B) download

  xxx.sql (application/x-sql, 1.9K) download

view thread (64+ messages)  latest in thread

Message-ID: <alpine.DEB.2.10.1604282127590.8824@sto>
Permalink:  ../alpine.DEB.2.10.1604282127590.8824@sto/
Also on:    postgresql.org/message-id/alpine.DEB.2.10.1604282127590.8824@sto

 · 

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: coelho@cri.ensmp.fr, thom@linux.com, andres@anarazel.de, robertmhaas@gmail.com, ams@2ndquadrant.com, michael.paquier@gmail.com, kommi.haribabu@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: [BUGS] Breakage with VACUUM ANALYSE + partitions
  In-Reply-To: <alpine.DEB.2.10.1604282127590.8824@sto>
  References: <20160414053929.GA29751@toroid.org> <20160422170736.bjrsusb4ubdhdtl4@alap3.anarazel.de> <CA+TgmoZj=eA5g0+6nFxPjhfDzCEaHJM_vf00krD0LqKC3jkqGw@mail.gmail.com> <CA+TgmobW=RrpTHo6ghH33bvhJL78zSudf_3c1dub48sSpswx5g@mail.gmail.com> <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> <alpine.DEB.2.10.1604282127590.8824@sto>

* 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