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 1jd973-0003q3-HN for pgsql-general@arkaria.postgresql.org; Mon, 25 May 2020 09:09:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jd971-0000ut-QR for pgsql-general@arkaria.postgresql.org; Mon, 25 May 2020 09:09:35 +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 1jd970-0000uk-OU for pgsql-general@lists.postgresql.org; Mon, 25 May 2020 09:09:35 +0000 Received: from forward4-smtp.messagingengine.com ([66.111.4.238]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jd96y-000603-8d for pgsql-general@lists.postgresql.org; Mon, 25 May 2020 09:09:33 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.nyi.internal (Postfix) with ESMTP id 8B77219405E8; Mon, 25 May 2020 05:09:30 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 25 May 2020 05:09:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=b+WyIdy7JSwkCUobZS4fy1xvHITbfqUc+NQNV/BZi nc=; b=hl2fG63wr1CXbzbKLXqeBl8WSJPySrf6IsW5/yD/XI3kP7whxSHQ+Sf07 AKGevhesSW7XP7L7eHxAQDrHSO0ezzRwo5qiFrZLwmKZJ0UGuTzX/LPrMmu9nDrD yNR8asahf2RJij1jq2d9Tc36tJ0Vt//4hzRA/pX7wOoF6oRWnCD7iNhyLbsaWUZi rUlXONqqbO51MQWCSMyMRF3+TjSwQugClKqXKkc0jS6AFL41nu8IzHwW4JPE8skv EWgukWggfo8JWtO8qjW2BbY47zakz2FRpYp69CO3wrc/L8gfzgL6JBzExJ8HqDWd WnnGDnKha+63pPoxQEA1zU/xHd8xg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddvtddguddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhohfkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomheqnecuggftrfgrthhtvghrnhepleffffetffejfefhheff veekieetieekudeffffhheevieelhfethfegfeduhedtnecuffhomhgrihhnpedvnhguqh hurggurhgrnhhtrdgtohhmnecukfhppeelfedrvdegfedrkedvrddvgeeinecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghish gvnhhtrhgruhhtsedvnhguqhhurggurhgrnhhtrdgtohhm X-ME-Proxy: Received: from april.pezone.net (p5df352f6.dip0.t-ipconnect.de [93.243.82.246]) by mail.messagingengine.com (Postfix) with ESMTPA id 5B3BD328005A; Mon, 25 May 2020 05:09:29 -0400 (EDT) Subject: Re: Logical replication troubles To: =?UTF-8?Q?Anders_B=c3=b8gh_Bruun?= References: <7ad3f1d0-b9ee-d914-ad57-16f07686ee9d@2ndquadrant.com> Cc: pgsql-general@lists.postgresql.org From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <0199a16a-49e8-47cd-5a08-79e848346d77@2ndquadrant.com> Date: Mon, 25 May 2020 11:09:27 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-05-25 10:19, Anders Bøgh Bruun wrote: > Thank you for that clarification. It helps me understand how things work > a lot better. > I know this might be a bit off topic, but my challenge here is that we > are using Patroni (by using Zalando's postgres-operator for Kubernetes), > and any replication slot not created by Patroni, seems to be removed, > whenever the master pod restarts. We therefore specify in the Patroni > config, that a permanent replication slot should be created for our > usage to do logical replication of some select tables, to our data > warehouse. That means that the replication slot is created as soon as > the database is ready to use, which is also before any tables, data or > publications are created. Can you give me a hint as to what the correct > way to set this up would be? > Or do I need to try contacting the Patroni devs instead? That would probably be best. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services