Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBKIC-0005Wk-50 for pgsql-admin@arkaria.postgresql.org; Thu, 18 May 2017 12:12:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dBKIB-0004JS-0l for pgsql-admin@arkaria.postgresql.org; Thu, 18 May 2017 12:12:31 +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 1dBE9L-0003TX-58 for pgsql-admin@postgresql.org; Thu, 18 May 2017 05:38:59 +0000 Received: from sender-of-o52.zoho.com ([135.84.80.217]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dBE9D-0004RZ-5O for pgsql-admin@postgresql.org; Thu, 18 May 2017 05:38:57 +0000 Received: from mail.yangby.org (115.204.152.226 [115.204.152.226]) by mx.zohomail.com with SMTPS id 1495085924280834.5461489685114; Wed, 17 May 2017 22:38:44 -0700 (PDT) Date: Thu, 18 May 2017 13:38:39 +0800 From: YangBy To: pgsql-admin@postgresql.org Subject: Recovey on Master / Primary Server Message-ID: <20170518053839.GA8870@yangby.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="d6Gm4EdcadzBjdND" Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Zoho-Virus-Status: 1 X-ZohoMailClient: External X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org --d6Gm4EdcadzBjdND Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, Can I recovery a point in master/primary server, just step back, not=20 re-create the database by all archives or use a backup? I create a point by use `pg_create_restore_point`. Then I re-create the database, set `recovery_target_name` in `recovery.= conf`, and recovery the database by all archives, successfully. I use `pg_start_backup` to create a copy and re-create the database,=20 also successfully.=09 But those solutions seems too complex. I try to recovey the data in the same database, just step back, but I= =20 didn't find any docs about this. Am I missing something, or just PG can not do this? Thanks! --=20 May joy and health be with you always! ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- - Name : YangBy Email : yby@yangby.org Website: www.yangby.org ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- - --d6Gm4EdcadzBjdND Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJZHTNfAAoJEAvs2yDbW8Q4OJQP/RZRaHLt/EIdbmNdo1LOqHhb NOMDFm/O5bZ38jEWzJ9KG28YYMVhQp7mY6pNcdh595/JYUWeBBxZxPjbwU1GKBjR vlyGG4YVjR8jh9P3upAx8quybTosNfhA3xZzN1VjRIUL6YrgZijv/7FPOVmrrCcF AoIFVC7moAt+aj669OMsQzC+YEzJtDxkFqeq+Lx+X10gFuL9My9Xjm/xl4Uc5ZNT APqpwiivnrcgYzlnsTT/kPRIwSmU4lEV0C3Ne8jSeCalaF0nLCwB6PZw51kHy8RQ BqPeWURTpdeMnCTBRb2Egw7xKow2U8gzKcKw3BvKHtMEtVOXWFXVhfUMJ+arQLsq XP+wLiaf/AJNOIaMVE+twawXhjq/Y5tKOtzHqtIDaBphfB5bX6NH2ZbapzAGNASv 3e/6kulyrz9tMSWiBgaD74p2QnXb+jbHYglHZ6mYJUVVDs5DArk/qHpffzMCGXaJ ueCYih+e4M0WePqwEMAjFERdL2iRnXyNhuPbNAhus0lnSfv8+onrNBApQN9MejUb xkGvZEQaALRhR0lHrSbeGsCULimQjPkOfG7jWcb9NSYvBB81zQuWXrKxV/tAde9Q JPTo6xDlfPE1/2bXPuOz7mkF9RyZ0Gq735Cz60Qr6JRmllK05nnhZT/JGDQiM27R lRGIPaIt2CjcGi1moAFt =X0oC -----END PGP SIGNATURE----- --d6Gm4EdcadzBjdND--