Re: BUG #15636: PostgreSQL 11.1 pg_basebackup backup to a CIFS destination throws fsync error at end of backup
John Klann <jk7255@gmail.com>
From: John Klann <jk7255@gmail.com>
To: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2019-02-15T05:53:38Z
Lists: pgsql-bugs
Great thank you I will let you know how is goes. John On Thu, Feb 14, 2019, 23:47 Thomas Munro <thomas.munro@enterprisedb.com wrote: > On Fri, Feb 15, 2019 at 5:27 PM John Klann <jk7255@gmail.com> wrote: > > Happy to test it, I will need the instructions if you can. It's for Rhel > 7.5 Maipo latest. (Linux 3.10.0-862.14.4.el7.x86_64 #1 SMP Fri Sep 21 > 09:07:21 UTC 2018 > > x86_64 x86_64 x86_64 GNU/Linux) > > Thanks! Use yum to install gcc, make, bison, yacc, git, > readline-devel, zlib-devel. (Hope I'm not forgetting anything > here...) > > Pull down the sources: > > $ git clone https://github.com/postgres/postgres.git > > Go into the source directory: > > $ cd postgres > > Let's say we want to test with the 11 branch (so you can test against > an existing 11.x development environment database you might have > installed the usual way with packages, as opposed to the master branch > where we are developing 12). Switch to that branch: > > $ git checkout REL_11_STABLE > > Create a new branch for this experiment: > > $ git checkout -b tolerate-einval > > Apply the patch (adjust path to wherever you put the patch): > > $ git am 0001-Tolerate-EINVAL-when-calling-fsync-on-a-directory.patch > > Configure, build, install (the prefix is where it will install the > resulting binaries, adjust to taste, -j is how many CPUs you have if > you want to build fast): > > $ mkdir $HOME/install > $ ./configure --prefix=$HOME/install > > $ make -s -j4 && make -s install > > Optionally, run a self-test to see if everything is sane: > > $ make -s check > > Now you should have binaries like $HOME/install/bin/pg_basebackup and > you can test if they work on CIFS. > > -- > Thomas Munro > http://www.enterprisedb.com >
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