Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i5Bhg-0007MQ-R9 for pgsql-bugs@arkaria.postgresql.org; Tue, 03 Sep 2019 16:30:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i5Bhf-0007a2-4l for pgsql-bugs@arkaria.postgresql.org; Tue, 03 Sep 2019 16:30:47 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i5Bhe-0007Zu-QW for pgsql-bugs@lists.postgresql.org; Tue, 03 Sep 2019 16:30:46 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1i5Bhc-0000qZ-10 for pgsql-bugs@lists.postgresql.org; Tue, 03 Sep 2019 16:30:45 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 55B425F79F; Tue, 3 Sep 2019 12:30:43 -0400 (EDT) Date: Tue, 3 Sep 2019 12:30:43 -0400 From: Stephen Frost To: jlucasdba@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15989: Cluster unable to open as hot standby after SIGKILL during exclusive backup Message-ID: <20190903163043.GO16436@tamriel.snowman.net> References: <15989-bf9dee713231e7b0@postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="t6rfnJsATvMPgCK9" Content-Disposition: inline In-Reply-To: <15989-bf9dee713231e7b0@postgresql.org> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --t6rfnJsATvMPgCK9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * PG Bug reporting form (noreply@postgresql.org) wrote: > * Enable exclusive backup > psql -c "select pg_start_backup('')" >=20 > * Find pid of main postgres process > ps -ef | grep 'postgres -D' >=20 > * Send SIGKILL to found pid > kill -s KILL Don't kill the postmaster and don't use exclusive backup (which has been deprecated, due specifically in part to the issue that it causes problems on a crash). > This is particularly a problem when running postgres in Docker, as Docker > will send SIGKILL if database shutdown takes more than a few seconds. You'll want to fix that then. Thanks, Stephen --t6rfnJsATvMPgCK9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJdbpUyAAoJEO1sijiDR2RVQxsP/RpvRhhCaqGwNhDW4WXkxPD+ Q974I2d3J/JJ6gKPzOLL4f07M80uZENuUfpFn/km2g4uB12d5etWch8WSMLGpKh8 kukYBBcQnmdy+y5rYl8/2kUjkUGBDG+p7Ale0vY12xzFJwkWtslwtoy/pmUB9Inw DzcVK0OXQmgWEZjH+M1r8F3ZkWkeitgqfi+D9sNpCNvJXRCDC2JFJMkaq6ldLPu4 ketOyZAd1U5oE+KAXr0kY440NnRs7th2JDZsLw+2XIyqi8/ZggBJj6MfgpgMq3S4 ni0EdLOSDaNBaNLpo8NE9jcdVifTK2MHpmWHoTh0wFf2A+FfwZDbGpEp1rbp2koY Yq05liZKKNgxrtQYMa4tJ/VyOtSFt7vTHekZ/Z4MEC+OFFyw3SezIzaDca/I7Bm/ ycVF1/J2LowUgP6EVdBYt4d4D0IKQ20ZoTYnWP0p/6tzrBKHyq6rkbK+s0FXCYnu Ftgr4crmSQXWpK316Hdo4IEgfRpOPtzBt0AZ89tU6aeJhQ3IKny36FNYEAncGTyh BPdFYCw21TUqNqnMLK+TnuzcLvhv41oz0xmGaU1IDppTKFyfrpfZlcXaRaAEWY2j WZJmseLcF5dzXfuc45OjlJaruyK+9s7TOiZcjEa3JceY1CdYNlEAT7Dkpl4TxVA1 sDehxKamdpllNqfBhWll =3H5L -----END PGP SIGNATURE----- --t6rfnJsATvMPgCK9--