Re: BUG #15636: PostgreSQL 11.1 pg_basebackup backup to a CIFS destination throws fsync error at end of backup
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: John Klann <jk7255@gmail.com>, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2019-02-18T02:55:11Z
Lists: pgsql-bugs
On Mon, Feb 18, 2019 at 02:34:15PM +1300, Thomas Munro wrote: > You mentioned that you were on RHEL 7.5, which ships with a 3.10 > kernel. When you eventually move to RHEL 8 (4.x) or even install an > alternative newer kernel for 7.x, the problem will hopefully go away > by itself. Considering that, the lack of other complaints, and the > availability of a workaround (--no-sync followed by "sync"), I'm not > so sure it's worth committing this. If we get to ignore EINVAL, then we won't know that fsync has failed even in cases where the caller has done an incorrect thing by using a special file, which sounds like a bad idea for the core code as much as any plugins calling that? -- Michael
Commits
-
Tolerate EINVAL when calling fsync() on a directory.
- ede6b19624d1 9.4.22 landed
- 0ec89a0f6752 9.5.17 landed
- ad714c6072c9 9.6.13 landed
- bcf627834344 10.8 landed
- 4d67357dbf50 11.3 landed
- f16735d80d2f 12.0 landed