Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZ4vQ-0003w0-LW for pgsql-general@arkaria.postgresql.org; Thu, 14 May 2020 03:52:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jZ4vP-0005vb-8m for pgsql-general@arkaria.postgresql.org; Thu, 14 May 2020 03:52:47 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZ4vN-0005uQ-I0 for pgsql-general@lists.postgresql.org; Thu, 14 May 2020 03:52:47 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZ4vJ-0003Gf-I2 for pgsql-general@lists.postgresql.org; Thu, 14 May 2020 03:52:44 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 2B89A4AD; Wed, 13 May 2020 23:52:39 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 13 May 2020 23:52:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=aVq79wKWSAgpqQiRpTiDhgf73sk t9Ixy1pXvAjpeAy0=; b=gQ6B/ywtnRaxiu2OOXN+8sLZ//BrrXWIFFC+u6/xBnH JW8Iv5AvAhkYm1lEAqmu/di7lERnnL7KrYvj+mGdrnzHkR6h8rMoPdU75GQLXHVq +/FFUVFEGQkBsq1OXlDi9x2vZcsiSKVDlKSJhdr3I6uExGwd2fyKFO3aR27esXbc fjBVtkuUI7dqk5XlWeNttziFcb+nFkArKx37Cru0pWDG/8G8AdjuOaDd56jE3f7i W63ubY715humbQ0UABCP0cor+manngvCFSaSHeAAljvROonWUijR8Sy2f9tWBaX8 qGdva7VwiXscKvWRuup3wwzyqIF7xIHNjfslM0dSl0A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=aVq79w KWSAgpqQiRpTiDhgf73skt9Ixy1pXvAjpeAy0=; b=2OJlontVpn54IevAIsbzap 4iOdDA/h0MBANCvlQ+mC8iiTZLBXZRuwthJCVyFKHlL+gcAXF/SdIfVwSMikicYE YIeaV3NjEMz7uHmtv+19DmfxD0ffyDz0pxFyDNFm+Veye9q7bFpYLziSCQCXNfPg HSaqE/8ielfap5+F7BZGXY9Qc4/wdS7N7IU2zIkV2sxsOHQKnYoRgWk6VgqDBvof VO2ORNTof7GcYhNlldscXslFdSExaO6dR0IBpUC4bUBINY6duFDJnyqhD1EYU/QV NoAcezi77vX3PQpQaaDGa/oid9wpeKG3JWVURXy0yBSQUs5GxJHcAJNWC8JuHR1Q == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrleehgdejhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecufghrlhcuvffnffculdejtddmnecujfgurhepfffhvf fukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhi vghruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnh epvdegudeuhfdtueeltedtveejheehieevueeigeelteegleejleeiueeiheegvefhnecu kfhppeduuddurddutddvrddukedtrddukeehnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id D49FB328005A; Wed, 13 May 2020 23:52:36 -0400 (EDT) Date: Thu, 14 May 2020 12:52:34 +0900 From: Michael Paquier To: live-school support Cc: pgsql-general@lists.postgresql.org Subject: Re: Reuse an existing slot with a new initdb Message-ID: <20200514035234.GC166343@paquier.xyz> References: <5f198805-8fd4-b49b-4046-e98fb80dea74@e-blokos.com> <48699aec-7736-6b8a-cd92-fe6d93db6a78@e-blokos.com> <48434f500ee2bf9572e6bbff143be073114f8c42.camel@cybertec.at> <779da3eb-6762-dbb8-3019-8c8515bf7397@live-school.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tEFtbjk+mNEviIIX" Content-Disposition: inline In-Reply-To: <779da3eb-6762-dbb8-3019-8c8515bf7397@live-school.net> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --tEFtbjk+mNEviIIX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, May 13, 2020 at 02:12:45PM -0700, live-school support wrote: > I didn't recal that it was not possible to create a hot standby with a fresh > new install and pg_dumpall :(. > > only pg_basebackup or an exact copy of the data folder can do it right? is > the reason technical or else? When using physical replication, both the primary and standby need to have the same system ID, and both instances need to share the same architectures to work properly as data is physically replayed from one cluster to the other using WAL, which includes for example copies of on disk relation 8kB pages (ever heard of full_page_writes?). Like Laurenz, I am not sure what is your problem, what are the errors PostgreSQL are producing and what you expect from Postgres. If you could describe clearly step-by-step what you are doing and what you expect the result would be based on your configuration, we may be able to help, but it is not really possible to help out without more details. For example, the first sentence of your first email mentions the use of replication slots. You may want to explain better where the slots are used, how they get either dropped and/or recreated, etc. - Michael --tEFtbjk+mNEviIIX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl68wIIACgkQnvQgOdby QH017g/+Jn7+VbOicu6NoOkXcD6X/VgnwXbb9Ww2Z+2LoCmfF22e1Yprw6mqJlda AUFd8FnfFZFYV2j5DHRL+jcijKlyv6J3iCWq7bMbYzhe3Nkm190fbHDr9yit+R5H ySoRG7fU+LpvYiOAZ4g1/9maDQRtNxao9bjMjnAlv+36yDG9rgoXhVpAUNIRehl0 O9OM4oczyMLtYsE0t4H+dR4eAQZeNgd91PqI8qzbe0sB9zf5A3b1lFSR6827hby0 yjz40xuHHWLdbybljHJR3SR8FmWbIG1/FPmUoxus/WmrjBgaF1LRkHrM2tRM1cbp 5nfr61VfaZ9B/BkRTCtGPT2Rn6+8xWUyoh9ndsGbSDlln18m9FsL+cdhcjJN6DZQ pQsmp4E2BFrquZ5sLP1wiiMS/2AmYal6I+J0FvEEHABwyGUyot9dSrsLbpgisSgy LxW/fg5Ks3ixSSoEUlp6PhRGylD3LdYYpTzlRFlVn9DEcVgaTcA1q5SO1M+gFYl3 mxoAa3Hodm/zLeWVccS8XMG/GbKe/uABYfMSEuv2brdEXO6zpU5/BBMprIULEzkT Nz0Nu9ZcfZ1KkOJYieNXZ/XwZsLkdio8t14xyTQeVcKAGhuHbeJzzb37kIBNH2ni f3BVJxD08GkEl3rgROqY6C5RQGvEVY8VbIDXxM4aWog+2DN59Sw= =SrDK -----END PGP SIGNATURE----- --tEFtbjk+mNEviIIX--