Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eXTPQ-0007Av-EB for pgsql-admin@arkaria.postgresql.org; Fri, 05 Jan 2018 14:55:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eXTPP-0005Kj-Vl for pgsql-admin@arkaria.postgresql.org; Fri, 05 Jan 2018 14:55:47 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eXTPP-0005KY-Dh for pgsql-admin@lists.postgresql.org; Fri, 05 Jan 2018 14:55:47 +0000 Received: from mr28p48im-tydg10113601.me.com ([17.110.88.45]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eXTPM-0000MG-V6 for pgsql-admin@postgresql.org; Fri, 05 Jan 2018 14:55:46 +0000 Received: from process-dkim-sign-daemon.mr28p48im-tydg10113601.me.com by mr28p48im-tydg10113601.me.com (Oracle Communications Messaging Server 8.0.1.2.20170607 64bit (built Jun 7 2017)) id <0P2300D007YXNV00@mr28p48im-tydg10113601.me.com> for pgsql-admin@postgresql.org; Fri, 05 Jan 2018 14:55:43 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=04042017; t=1515164143; bh=wZm5+CfBHhPYGzXKUHzJpBZ25JP1I1HYdCA00s1ki0k=; h=From:Message-id:Content-type:MIME-version:Subject:Date:To; b=h+8VQkixPaoLh+VillQqfVw8A7Bf2Drvv10t70lP3PabRGNEijMg1fPNVGIfze+P2 k1Y0zWmyC16xyFPgLGl8rZve0fIbwoNiHhs18mHWhqPXMtNs+0bSbUZ9qPiE4AYZsj XfajO1+CHGd3UGxQ4V1VBRGUsXtyBlVOfT4n0AniDWu9Wi1uopi8jpVEuKVjbYi+Z/ rlU7zeWo/q7xLl5nlj1JwHWj745E4tm7DVkRizS/zh9WNmn+zL+fvyiRJtSwqqkhH8 zWsVJ3sdnKUNRjRf3bY/emwCnbWDheYlQSg9FD9TzN0YwTguFC71Qewk9JxtKVlpOq UMHcUlgaWazPw== Received: from icloud.com ([127.0.0.1]) by mr28p48im-tydg10113601.me.com (Oracle Communications Messaging Server 8.0.1.2.20170607 64bit (built Jun 7 2017)) with ESMTPSA id <0P230045784SFX40@mr28p48im-tydg10113601.me.com>; Fri, 05 Jan 2018 14:55:42 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-01-05_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1011 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1801050211 From: Rui DeSousa Message-id: <6EFCAFA0-3555-4F44-A059-3361586984D4@icloud.com> Content-type: multipart/alternative; boundary="Apple-Mail=_4A624519-B1E9-4BAD-9197-D910257A9851" MIME-version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: pg_rewind: confused about recovery.conf/restore_command Date: Fri, 05 Jan 2018 09:55:40 -0500 In-reply-to: <87fu7khohy.fsf@jsievers.enova.com> Cc: pgsql-admin@postgresql.org To: Jerry Sievers References: <87fu7khohy.fsf@jsievers.enova.com> X-Mailer: Apple Mail (2.3445.5.20) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_4A624519-B1E9-4BAD-9197-D910257A9851 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Jerry, That has been my experience as well; pg_rewind does not fetch the WAL = files. You can use following parameter to keep the most recent logs; i.e. a = couple of hours worth. That will allow pg_rewind to work during that = time frame =E2=80=94 If it is still missing a WAL file or two you can = manually copy them over in a pinch. wal_keep_segments=20 p.s. I switched to using ZFS snapshots instead.= --Apple-Mail=_4A624519-B1E9-4BAD-9197-D910257A9851 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi = Jerry,

That has been = my experience as well; pg_rewind does not fetch the WAL files.

You can use following = parameter to keep the most recent logs; i.e. a couple of hours worth. =  That will allow pg_rewind to work during that time frame =E2=80=94 =  If it is still missing a WAL file or two you can manually copy = them over in a pinch.

 wal_keep_segments 


p.s.= I switched to using ZFS snapshots instead.
= --Apple-Mail=_4A624519-B1E9-4BAD-9197-D910257A9851--