Re: Promoted slave tries to archive previously archived WAL file

2019-02-19 Thread Andre Piwoni
I call pg_ctl -D /var/lib/pgsql/10/data promote to upgrade slave to master when failover happens I repoint slave to the master by stopping it, updating recovery.conf and restarting it. Let me know if I'm doing it wrong. Thank you for clarifying that contents of WAL files from stream and fetch meth

Re: Promoted slave tries to archive previously archived WAL file

2019-02-17 Thread Michael Paquier
On Fri, Feb 15, 2019 at 12:03:39PM -0800, Andre Piwoni wrote: > My slave nodes were created using pg_basebackup with --wal-method=stream. > If I understand right this option streams WAL files generated during backup > and this WAL file was 00010002 but its contents were > different

Re: Promoted slave tries to archive previously archived WAL file

2019-02-15 Thread Andre Piwoni
Ok. I think I uncovered a bug. My slave nodes were created using pg_basebackup with --wal-method=stream. If I understand right this option streams WAL files generated during backup and this WAL file was 00010002 but its contents were different from what was on the primary and in WA

Promoted slave tries to archive previously archived WAL file

2019-02-15 Thread Andre Piwoni
I have master and slave running with the following contents of their pg_wal directories and archivedir: ls -l /mnt/pgsql/archive/ -rw-rw-rw-. 1 root root 16777216 Feb 15 09:39 00010001 -rw-rw-rw-. 1 root root 16777216 Feb 15 09:39 00010002 -rw-rw-rw-. 1 root root