pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kamigishi Rei <iijima.yun@koumakan.jp>
To: Andres Freund <andres@anarazel.de>
To: Peter Geoghegan <pg@bowt.ie>
Cc: Thomas Munro <thomas.munro@gmail.com>
Cc: David Rowley <dgrowley@gmail.com>
Cc: Andrew Gierth <andrew@tao11.riddles.org.uk>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #17245: Index corruption involving deduplicated entries
Date: Fri, 29 Oct 2021 11:17:49 +0300
Message-ID: <58e5e313-ba8d-ba52-724f-c8563b547af1@koumakan.jp> (raw)
In-Reply-To: <20211028224831.bj7ew3j74tw4cmvh@alap3.anarazel.de>
References: <CAH2-WzmLapjJXL4ZNhJJYsbmUUGFJq5Jt2owkUDJhRWXehrgyQ@mail.gmail.com>
	<CAH2-WzmD_mZDm1Sb1C=nqUWj3cLTDoamx9EL_Tpwws_Ur9eFww@mail.gmail.com>
	<9076c0bd-e238-5f8d-1117-7f5549e35c33@koumakan.jp>
	<CAH2-Wzm0GZnNgNeHx-W-4ogR1RB1gGk_efMiWuinXFyMWzjb=w@mail.gmail.com>
	<CAH2-WznotEY2YXLBA44oqWLtQUTYHAKWnujCWmmWgthKhZ-97w@mail.gmail.com>
	<4c0d2dff-9fa2-1db0-0d0f-c84aefddfaab@koumakan.jp>
	<CAH2-Wz=s5EMTPeXYO9vS9Pdtq8UkY77qAdmEQ4sL1UMODK8zEA@mail.gmail.com>
	<20211028213103.vkmdhx447clb6ph6@alap3.anarazel.de>
	<CA+hUKGLtrpQnOQpBvJXQX+o2NJJ47Rmu=qt+F3tdhwCaaEoa9Q@mail.gmail.com>
	<CAH2-WzkOx5YjpjYB7iW32CF+-zTh1H4HarhzHoqVeacU0J2+pA@mail.gmail.com>
	<20211028224831.bj7ew3j74tw4cmvh@alap3.anarazel.de>

On 29.10.2021 1:48, Andres Freund wrote:

> That wouldn't protect against e.g. a logic bug in ZFS. Given its copy-on-write
> nature corruption could very well manifest as seeing an older version of the
> data when re-reading data from disk. Which could very well lead to the type of
> corruption we're seeing here.

> Didn't 14 change the logic when index vacuums are done? That could cause
> previously existing issues to manifest with a higher likelihood.

Note that I ran 13.2 (that came with open_datasync()) and 13.3 (which 
switched back to fdatasync()) on openzfs for almost a year since 
upgrading to 13.0-RELEASE, with no discernible issues. The 13.3 data 
directory has been kept intact since the upgrade to 14.

-- 
K. R.





view thread (103+ messages)  latest in thread

Message-ID: <58e5e313-ba8d-ba52-724f-c8563b547af1@koumakan.jp>
Permalink:  ../58e5e313-ba8d-ba52-724f-c8563b547af1@koumakan.jp/
Also on:    postgresql.org/message-id/58e5e313-ba8d-ba52-724f-c8563b547af1@koumakan.jp

 · 

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: iijima.yun@koumakan.jp, andres@anarazel.de, pg@bowt.ie, thomas.munro@gmail.com, dgrowley@gmail.com, andrew@tao11.riddles.org.uk
  Subject: Re: BUG #17245: Index corruption involving deduplicated entries
  In-Reply-To: <58e5e313-ba8d-ba52-724f-c8563b547af1@koumakan.jp>
  References: <CAH2-WzmLapjJXL4ZNhJJYsbmUUGFJq5Jt2owkUDJhRWXehrgyQ@mail.gmail.com> <CAH2-WzmD_mZDm1Sb1C=nqUWj3cLTDoamx9EL_Tpwws_Ur9eFww@mail.gmail.com> <9076c0bd-e238-5f8d-1117-7f5549e35c33@koumakan.jp> <CAH2-Wzm0GZnNgNeHx-W-4ogR1RB1gGk_efMiWuinXFyMWzjb=w@mail.gmail.com> <CAH2-WznotEY2YXLBA44oqWLtQUTYHAKWnujCWmmWgthKhZ-97w@mail.gmail.com> <4c0d2dff-9fa2-1db0-0d0f-c84aefddfaab@koumakan.jp> <CAH2-Wz=s5EMTPeXYO9vS9Pdtq8UkY77qAdmEQ4sL1UMODK8zEA@mail.gmail.com> <20211028213103.vkmdhx447clb6ph6@alap3.anarazel.de> <CA+hUKGLtrpQnOQpBvJXQX+o2NJJ47Rmu=qt+F3tdhwCaaEoa9Q@mail.gmail.com> <CAH2-WzkOx5YjpjYB7iW32CF+-zTh1H4HarhzHoqVeacU0J2+pA@mail.gmail.com> <20211028224831.bj7ew3j74tw4cmvh@alap3.anarazel.de> <58e5e313-ba8d-ba52-724f-c8563b547af1@koumakan.jp>

* 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