Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sZRkJ-0013rP-PO for pgsql-general@arkaria.postgresql.org; Thu, 01 Aug 2024 09:05:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sZRkI-005rKX-1X for pgsql-general@arkaria.postgresql.org; Thu, 01 Aug 2024 09:05:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sZRkH-005rKN-Jy for pgsql-general@lists.postgresql.org; Thu, 01 Aug 2024 09:05:13 +0000 Received: from mout.gmx.net ([212.227.15.18]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sZRkE-002a7e-TJ for pgsql-general@lists.postgresql.org; Thu, 01 Aug 2024 09:05:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1722503110; x=1723107910; i=shammat@gmx.net; bh=QVvIWaqmqM6WjSY21Wb1UIcMbMVVMplfvvImQrYxdc8=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=PPNczs9BF719/ouO1CqRAT71VUYLyoes6hTIC7gr+YAyNbfHLPNO58WEDjDtrF8t jNpHqV4ylVFvOV2AdmohusRCF65AWHH2Q6TVZHVdsjMAaxek5nd+jFbYIXgdApxT/ +YnfMGasypQTUFt8ttzx4zwg5M9bD5t/RCPYSMkZEzzTB7aKrH9ZjvodJSELZDemc kJxfZpftTykOKw+QxXo5/VRNeH+CLYnF0PKFEgaMqmst4uYe6M+NDPfHzogxxvPJy biVa3AQns4nvvh5J/JhHi09QtJCe1L0m14Bg69Q4tbS1L2VJEBE3cQz6ecTd9Yrnl U4dHjj0NwLJ5mlAtNg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [10.1.34.127] ([185.40.248.10]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N5VHM-1sAo6G0Mm2-0119Po for ; Thu, 01 Aug 2024 11:05:10 +0200 Message-ID: <79d2a8c1-8fa9-4104-a1dd-529a8ad9b7a7@gmx.net> Date: Thu, 1 Aug 2024 11:05:09 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Logical replication slots on slaves/replicas? To: pgsql-general@lists.postgresql.org References: Content-Language: de-DE From: shammat@gmx.net In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:ClawurOZ4TuYthqe5U/7pgveXvmdALiYak9S8TCz/Zr+PU1j/Zh 1HDuTvVnCb9UIxqJMUpdPPOLmyopWro8eLlzPr41SB3YFdlYXiuKGekP+1YJgtb0NXikQdW NvZOwPDINcig+r/2DyiM1HglLjNtzvhTBYTwzPWwRvMn0DV+VwJ77NSEi0+bWTS6F7zCIIz LIM/SwgLtxYopBfIzsPyQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:Mq1L4Dzwg5s=;WoVIFuJHISM+CcItMAk9Iey3xs6 QoXUrbqXRluDdBF3qJ0EiddSrS/znhmDCcLIiYVEtF9wWiAx6CjXtwMdR2wumb9hQdiec1aGd KkVVidaALIg13q526baerEDpkgt9/0B4512WcdHPahtvpxD9ac604NUR5Q0x5IZCGGy0skryE eI+irJdhlWwzvHNfdhhmR1Q+n/xNneUyQo08AVGgrFq4i9/LN8MzWt55U8MQt0IHT9Medff77 n9K8Y1miZF55bNvFHjtnE1i8Tpkhm9UkBZOE5x5E5sjTP/hRyan9cbKBcqBYgX0MUvejbrBux WeYvjribiwHrAKyRjOraVIl2xRHsGPY5mR2LSp1QHPznHb7y3ZJQs5OoBbbVeOTUMupu9AQdC 94MtLDNKmHmtyXzPo55HNXngjqTMvgp8DEVsZjIpeg/YAy17fB9PBeGxxOtH8JzwrlsLlBA3Z JmF4ftv4fzLIkq8rYt8Xv3giwXTCZz1L/etMOEpgj0UCXVj6789D+gGhzlsbZVayQDRcBsXLy XQRWI3Cqz/wasfTDB98LmWZYG9rtVX4252/OlbXpMyYlZvRsLoS/iuuwiXNTdGo7u2HDJFwjI q5pdSEcRYfb6toRGW0P4Iu2CF2CRjNnZ9MXIIzQVVBvZ0saEGVgGp2AVj97T59r7qddmtC6oY pXNu64XbePIdtd0JHD7gPWonki7xt99ctiu0wNVQd664aVIbOmyFmPyV1irKdIeT40RfMSbKY lGgvw3wBDLxE6WpbzCmnbFqkWrJoPSp1hMx0nWMM1GoMmn0o+RTAH8+yf9Wx5ryT2lhVb5SGz K/Hk1uy73ZLZExko3UlfF+3A== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Piotr Andreassen Blasiak schrieb am 01.08.2024 um 10:42: > I know that currently logical replication slots are available only > for primary servers. Is there any plan to add this feature to read > slaves as well? My problem is this: > > I want to use debezium to stream changes from postgresql. But, if I > stream changes from the master I can not query my read slaves for > related data to these changes - I need to always query the master > which is not scalable. So either I need a way to be able to know > when the change has been propagated to my read replica so that I can > reliably query it, or I am hoping I can simply read all the changes > from the read replica which will mean it is already up to date when > I query it. I don't really know how Debezium uses this, but will this enhancement in Postgres 17 help here? https://www.postgresql.org/docs/17/functions-admin.html#PG-SYNC-REPLICATIO= N-SLOTS > Synchronize the logical failover replication slots from the primary > server to the standby server. This function can only be executed on > the standby server. Temporary synced slots, if any, cannot be used > for logical decoding and must be dropped after promotion.