pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Remove special cases for ETXTBSY from new fsync'ing logic.
7+ messages / 2 participants
[nested] [flat]
* pgsql: Remove special cases for ETXTBSY from new fsync'ing logic.
@ 2015-05-29 19:11 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 7+ messages in thread
From: Tom Lane @ 2015-05-29 19:11 UTC (permalink / raw)
To: pgsql-committers
Remove special cases for ETXTBSY from new fsync'ing logic.
The argument that this is a sufficiently-expected case to be silently
ignored seems pretty thin. Andres had brought it up back when we were
still considering that most fsync failures should be hard errors, and it
probably would be legit not to fail hard for ETXTBSY --- but the same is
true for EROFS and other cases, which is why we gave up on hard failures.
ETXTBSY is surely not a normal case, so logging the failure seems fine
from here.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/57e1138bcc621ffeb8b1f1379ac4016a5c34d43e
Modified Files
--------------
src/backend/storage/file/fd.c | 15 +++------------
src/bin/initdb/initdb.c | 12 ------------
2 files changed, 3 insertions(+), 24 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Remove special cases for ETXTBSY from new fsync'ing logic.
@ 2015-05-29 19:11 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 7+ messages in thread
From: Tom Lane @ 2015-05-29 19:11 UTC (permalink / raw)
To: pgsql-committers
Remove special cases for ETXTBSY from new fsync'ing logic.
The argument that this is a sufficiently-expected case to be silently
ignored seems pretty thin. Andres had brought it up back when we were
still considering that most fsync failures should be hard errors, and it
probably would be legit not to fail hard for ETXTBSY --- but the same is
true for EROFS and other cases, which is why we gave up on hard failures.
ETXTBSY is surely not a normal case, so logging the failure seems fine
from here.
Branch
------
REL9_4_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/70a4519b82beee9e7bffb17ae4e6d81bb3ab89d8
Modified Files
--------------
src/backend/storage/file/fd.c | 15 +++------------
src/bin/initdb/initdb.c | 12 ------------
2 files changed, 3 insertions(+), 24 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Remove special cases for ETXTBSY from new fsync'ing logic.
@ 2015-05-29 19:11 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 7+ messages in thread
From: Tom Lane @ 2015-05-29 19:11 UTC (permalink / raw)
To: pgsql-committers
Remove special cases for ETXTBSY from new fsync'ing logic.
The argument that this is a sufficiently-expected case to be silently
ignored seems pretty thin. Andres had brought it up back when we were
still considering that most fsync failures should be hard errors, and it
probably would be legit not to fail hard for ETXTBSY --- but the same is
true for EROFS and other cases, which is why we gave up on hard failures.
ETXTBSY is surely not a normal case, so logging the failure seems fine
from here.
Branch
------
REL9_3_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/35dd1b51f2ea7a41621b7ab04be605ecfd7cfaf7
Modified Files
--------------
src/backend/storage/file/fd.c | 15 +++------------
src/bin/initdb/initdb.c | 12 ------------
2 files changed, 3 insertions(+), 24 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Remove special cases for ETXTBSY from new fsync'ing logic.
@ 2015-05-29 19:11 Tom Lane <tgl@sss.pgh.pa.us>
2015-05-29 21:49 ` Re: pgsql: Remove special cases for ETXTBSY from new fsync'ing logic. Andres Freund <andres@anarazel.de>
0 siblings, 1 reply; 7+ messages in thread
From: Tom Lane @ 2015-05-29 19:11 UTC (permalink / raw)
To: pgsql-committers
Remove special cases for ETXTBSY from new fsync'ing logic.
The argument that this is a sufficiently-expected case to be silently
ignored seems pretty thin. Andres had brought it up back when we were
still considering that most fsync failures should be hard errors, and it
probably would be legit not to fail hard for ETXTBSY --- but the same is
true for EROFS and other cases, which is why we gave up on hard failures.
ETXTBSY is surely not a normal case, so logging the failure seems fine
from here.
Branch
------
REL9_2_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/77642a8197ed7fa3a5113bdca914e4685e957455
Modified Files
--------------
src/backend/storage/file/fd.c | 15 +++------------
1 file changed, 3 insertions(+), 12 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: pgsql: Remove special cases for ETXTBSY from new fsync'ing logic.
2015-05-29 19:11 pgsql: Remove special cases for ETXTBSY from new fsync'ing logic. Tom Lane <tgl@sss.pgh.pa.us>
@ 2015-05-29 21:49 ` Andres Freund <andres@anarazel.de>
0 siblings, 0 replies; 7+ messages in thread
From: Andres Freund @ 2015-05-29 21:49 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers
On 2015-05-29 19:11:58 +0000, Tom Lane wrote:
> Andres had brought it up back when we were
> still considering that most fsync failures should be hard errors, and it
> probably would be legit not to fail hard for ETXTBSY --- but the same is
> true for EROFS and other cases, which is why we gave up on hard failures.
> ETXTBSY is surely not a normal case, so logging the failure seems fine
> from here.
Note that EROFS etc should never happen without following symlinks,
whereas ETXTBSY conceivably could.
I'm fine though, with the special case being removed, I think you made a
good point that it's unlikely that e.g. an archive_command will run
during startup.
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Remove special cases for ETXTBSY from new fsync'ing logic.
@ 2015-05-29 19:11 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 7+ messages in thread
From: Tom Lane @ 2015-05-29 19:11 UTC (permalink / raw)
To: pgsql-committers
Remove special cases for ETXTBSY from new fsync'ing logic.
The argument that this is a sufficiently-expected case to be silently
ignored seems pretty thin. Andres had brought it up back when we were
still considering that most fsync failures should be hard errors, and it
probably would be legit not to fail hard for ETXTBSY --- but the same is
true for EROFS and other cases, which is why we gave up on hard failures.
ETXTBSY is surely not a normal case, so logging the failure seems fine
from here.
Branch
------
REL9_1_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/9e79ca326920d25da941fcf2132b33f82b4c40bd
Modified Files
--------------
src/backend/storage/file/fd.c | 15 +++------------
1 file changed, 3 insertions(+), 12 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Remove special cases for ETXTBSY from new fsync'ing logic.
@ 2015-05-29 19:11 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 7+ messages in thread
From: Tom Lane @ 2015-05-29 19:11 UTC (permalink / raw)
To: pgsql-committers
Remove special cases for ETXTBSY from new fsync'ing logic.
The argument that this is a sufficiently-expected case to be silently
ignored seems pretty thin. Andres had brought it up back when we were
still considering that most fsync failures should be hard errors, and it
probably would be legit not to fail hard for ETXTBSY --- but the same is
true for EROFS and other cases, which is why we gave up on hard failures.
ETXTBSY is surely not a normal case, so logging the failure seems fine
from here.
Branch
------
REL9_0_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/bf2f20c086a04e7705a4e856d6cc9ebda3eb0017
Modified Files
--------------
src/backend/storage/file/fd.c | 15 +++------------
1 file changed, 3 insertions(+), 12 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2015-05-29 21:49 UTC | newest]
Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-05-29 19:11 pgsql: Remove special cases for ETXTBSY from new fsync'ing logic. Tom Lane <tgl@sss.pgh.pa.us>
2015-05-29 19:11 pgsql: Remove special cases for ETXTBSY from new fsync'ing logic. Tom Lane <tgl@sss.pgh.pa.us>
2015-05-29 19:11 pgsql: Remove special cases for ETXTBSY from new fsync'ing logic. Tom Lane <tgl@sss.pgh.pa.us>
2015-05-29 19:11 pgsql: Remove special cases for ETXTBSY from new fsync'ing logic. Tom Lane <tgl@sss.pgh.pa.us>
2015-05-29 21:49 ` Andres Freund <andres@anarazel.de>
2015-05-29 19:11 pgsql: Remove special cases for ETXTBSY from new fsync'ing logic. Tom Lane <tgl@sss.pgh.pa.us>
2015-05-29 19:11 pgsql: Remove special cases for ETXTBSY from new fsync'ing logic. Tom Lane <tgl@sss.pgh.pa.us>
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