Re: Postgres, fsync, and OSs (specifically linux)

Поиск
Список
Период
Сортировка
Искать
От
Craig Ringer
Тема
Re: Postgres, fsync, and OSs (specifically linux)
Дата
Msg-id
CAMsr+YHq6+YeC2q1Ob8ASJOFLTTiHE87Y4_QTWvKVseJKNW3Wg@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Postgres, fsync, and OSs (specifically linux) Andres Freund <andres@anarazel.de>
Re: Postgres, fsync, and OSs (specifically linux) Bruce Momjian <bruce@momjian.us>
Re: Postgres, fsync, and OSs (specifically linux) Andres Freund <andres@anarazel.de>
Re: Postgres, fsync, and OSs (specifically linux) Bruce Momjian <bruce@momjian.us>
Re: Postgres, fsync, and OSs (specifically linux) Andres Freund <andres@anarazel.de>
Re: Postgres, fsync, and OSs (specifically linux) Stephen Frost <sfrost@snowman.net>
Re: Postgres, fsync, and OSs (specifically linux) Andres Freund <andres@anarazel.de>
Re: Postgres, fsync, and OSs (specifically linux) Andres Freund <andres@anarazel.de>
Re: Postgres, fsync, and OSs (specifically linux) Andres Freund <andres@anarazel.de>
Re: Postgres, fsync, and OSs (specifically linux) Thomas Munro <thomas.munro@enterprisedb.com>
Re: Postgres, fsync, and OSs (specifically linux) Thomas Munro <thomas.munro@enterprisedb.com>
Re: Postgres, fsync, and OSs (specifically linux) Andres Freund <andres@anarazel.de>
Re: Postgres, fsync, and OSs (specifically linux) Dmitry Dolgov <9erthalion6@gmail.com>
Re: Postgres, fsync, and OSs (specifically linux) Andres Freund <andres@anarazel.de>
Re: Postgres, fsync, and OSs (specifically linux) Andres Freund <andres@anarazel.de>
Re: Postgres, fsync, and OSs (specifically linux) Dmitry Dolgov <9erthalion6@gmail.com>
Re: Postgres, fsync, and OSs (specifically linux) Andres Freund <andres@anarazel.de>
Re: Postgres, fsync, and OSs (specifically linux) Dmitry Dolgov <9erthalion6@gmail.com>
Re: Postgres, fsync, and OSs (specifically linux) Andres Freund <andres@anarazel.de>
Re: Postgres, fsync, and OSs (specifically linux) Thomas Munro <thomas.munro@enterprisedb.com>
Re: Postgres, fsync, and OSs (specifically linux) Thomas Munro <thomas.munro@enterprisedb.com>
Re: Postgres, fsync, and OSs (specifically linux) Thomas Munro <thomas.munro@enterprisedb.com>
Re: Postgres, fsync, and OSs (specifically linux) Asim R P <apraveen@pivotal.io>
Re: Postgres, fsync, and OSs (specifically linux) Thomas Munro <thomas.munro@enterprisedb.com>
Re: Postgres, fsync, and OSs (specifically linux) Craig Ringer <craig@2ndquadrant.com>
Re: Postgres, fsync, and OSs (specifically linux) Thomas Munro <thomas.munro@enterprisedb.com>
Re: Postgres, fsync, and OSs (specifically linux) Thomas Munro <thomas.munro@enterprisedb.com>
Re: Postgres, fsync, and OSs (specifically linux) Thomas Munro <thomas.munro@enterprisedb.com>
Re: Postgres, fsync, and OSs (specifically linux) Craig Ringer <craig@2ndquadrant.com>
Re: Postgres, fsync, and OSs (specifically linux) Thomas Munro <thomas.munro@enterprisedb.com>
Re: Postgres, fsync, and OSs (specifically linux) Robert Haas <robertmhaas@gmail.com>
Re: Postgres, fsync, and OSs (specifically linux) Thomas Munro <thomas.munro@enterprisedb.com>
Re: Postgres, fsync, and OSs (specifically linux) Robert Haas <robertmhaas@gmail.com>
Re: Postgres, fsync, and OSs (specifically linux) Thomas Munro <thomas.munro@enterprisedb.com>
Re: Postgres, fsync, and OSs (specifically linux) Thomas Munro <thomas.munro@enterprisedb.com>
Re: Postgres, fsync, and OSs (specifically linux) Thomas Munro <thomas.munro@enterprisedb.com>
Re: Postgres, fsync, and OSs (specifically linux) Catalin Iacob <iacobcatalin@gmail.com>
Re: Postgres, fsync, and OSs (specifically linux) Craig Ringer <craig@2ndquadrant.com>
Re: Postgres, fsync, and OSs (specifically linux) Stephen Frost <sfrost@snowman.net>
Re: Postgres, fsync, and OSs (specifically linux) Michael Banck <michael.banck@credativ.de>
Re: Postgres, fsync, and OSs (specifically linux) Andres Freund <andres@anarazel.de>
Re: Postgres, fsync, and OSs (specifically linux) Andres Freund <andres@anarazel.de>
Re: Postgres, fsync, and OSs (specifically linux) Simon Riggs <simon@2ndquadrant.com>
Re: Postgres, fsync, and OSs (specifically linux) Andres Freund <andres@anarazel.de>
Re: Postgres, fsync, and OSs (specifically linux) Craig Ringer <craig@2ndquadrant.com>
Re: Postgres, fsync, and OSs (specifically linux) Simon Riggs <simon@2ndquadrant.com>
Re: Postgres, fsync, and OSs (specifically linux) Thomas Munro <thomas.munro@enterprisedb.com>
Re: Postgres, fsync, and OSs (specifically linux) Thomas Munro <thomas.munro@enterprisedb.com>
Re: Postgres, fsync, and OSs (specifically linux) Craig Ringer <craig@2ndquadrant.com>
Re: Postgres, fsync, and OSs (specifically linux) Thomas Munro <thomas.munro@enterprisedb.com>
Re: Postgres, fsync, and OSs (specifically linux) Craig Ringer <craig@2ndquadrant.com>
Re: Postgres, fsync, and OSs (specifically linux) Andres Freund <andres@anarazel.de>
Re: Postgres, fsync, and OSs (specifically linux) Craig Ringer <craig@2ndquadrant.com>
Re: Postgres, fsync, and OSs (specifically linux) Craig Ringer <craig@2ndquadrant.com>
Re: Postgres, fsync, and OSs (specifically linux) Andres Freund <andres@anarazel.de>
Re: Postgres, fsync, and OSs (specifically linux) Craig Ringer <craig@2ndquadrant.com>
Re: Postgres, fsync, and OSs (specifically linux) Andres Freund <andres@anarazel.de>
Re: Postgres, fsync, and OSs (specifically linux) Craig Ringer <craig@2ndquadrant.com>
Re: Postgres, fsync, and OSs (specifically linux) Andres Freund <andres@anarazel.de>
Re: Postgres, fsync, and OSs (specifically linux) Robert Haas <robertmhaas@gmail.com>
Re: Postgres, fsync, and OSs (specifically linux) Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: Postgres, fsync, and OSs (specifically linux) Stephen Frost <sfrost@snowman.net>
Re: Postgres, fsync, and OSs (specifically linux) Abhijit Menon-Sen <ams@2ndQuadrant.com>
Re: Postgres, fsync, and OSs (specifically linux) Stephen Frost <sfrost@snowman.net>
Re: Postgres, fsync, and OSs (specifically linux) Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: Postgres, fsync, and OSs (specifically linux) Craig Ringer <craig@2ndquadrant.com>
Re: Postgres, fsync, and OSs (specifically linux) Craig Ringer <craig@2ndquadrant.com>
Re: Postgres, fsync, and OSs (specifically linux) Craig Ringer <craig@2ndquadrant.com>
Re: Postgres, fsync, and OSs (specifically linux) Robert Haas <robertmhaas@gmail.com>
Re: Postgres, fsync, and OSs (specifically linux) Thomas Munro <thomas.munro@enterprisedb.com>
Re: Postgres, fsync, and OSs (specifically linux) Simon Riggs <simon@2ndquadrant.com>
On 15 August 2018 at 07:32, Thomas Munro <thomas.munro@enterprisedb.com> wrote:
On Wed, Aug 15, 2018 at 11:08 AM, Asim R P <apraveen@pivotal.io> wrote:
> I was looking at the commitfest entry for feature
> (https://commitfest.postgresql.org/19/1639/) for the most recent list
> of patches to try out.  The list doesn't look correct/complete.  Can
> someone please check?

Hi Asim,

This thread is a bit tangled up.  There are two related patchsets in it:

1.  Craig Ringer's PANIC-on-EIO patch set, to cope with the fact that
Linux throws away buffers and errors after reporting an error, so the
checkpointer shouldn't retry as it does today.  The latest is here:

https://www.postgresql.org/message-id/CAMsr%2BYFPeKVaQ57PwHqmRNjPCPABsdbV%3DL85he2dVBcr6yS1mA%40mail.gmail.com

2.  Andres Freund's fd-sending fsync queue, to cope with the fact that
some versions of Linux only report writeback errors that occurred
after you opened the file, and all versions of Linux and some other
operating systems might forget about writeback errors while no one has
it open.

Here is the original patchset:

https://www.postgresql.org/message-id/20180522010823.z5bdq7wnlsna5qoo%40alap3.anarazel.de

Here is a fix-up you need:

https://www.postgresql.org/message-id/20180522185951.5sdudzl46spktyyz%40alap3.anarazel.de

Here are some more fix-up patches that I propose:

https://www.postgresql.org/message-id/CAEepm%3D2WSPP03-20XHpxohSd2UyG_dvw5zWS1v7Eas8Rd%3D5e4A%40mail.gmail.com

I will soon post some more fix-up patches that add EXEC_BACKEND
support, Windows support, and a counting scheme to fix the timing
issue that I mentioned in my first review.  I will probably squash it
all down to a tidy patch-set after that.


Thanks very much Tomas. 

I've had to back off from this a bit after posting my initial panic-for-safety patch, as the changes Andres proposed are a bit out of my current depth and time capacity.

I still think the panic patch is needed and appropriate, but agree it's not *sufficient*.

В списке pgsql-hackers по дате отправления
От: Tatsuro Yamada
Дата:
От: Martín Fernández
Дата:
FAQ