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 1rp1Pf-004f0d-LV for pgsql-hackers@arkaria.postgresql.org; Tue, 26 Mar 2024 07:40:04 +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 1rp1Pe-00CCB5-9Y for pgsql-hackers@arkaria.postgresql.org; Tue, 26 Mar 2024 07:40:02 +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 1rp1Pd-00CCAw-UL for pgsql-hackers@lists.postgresql.org; Tue, 26 Mar 2024 07:40:02 +0000 Received: from wfout7-smtp.messagingengine.com ([64.147.123.150]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rp1Pb-006Xpz-28; Tue, 26 Mar 2024 07:40:01 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfout.west.internal (Postfix) with ESMTP id 00F7F1C000DF; Tue, 26 Mar 2024 03:39:54 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 26 Mar 2024 03:39:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1711438794; x= 1711525194; bh=sFo28EwFZrCZILr99iurgtfPT8KexHptFLqrbw8kr+c=; b=B A3QnRws+iKhAE1rnkBMxCdbNjhjGCBUeVqycj+PNgO3gUpcPTovxyb4vmRbIoPR7 HpaozKV8qv6nGkNOrC7y7tpa45sVgqUIUq2eD+CAtQjf+IY5S7ks4cSjqyz/cTMP 13hVlLN6ic8rSLlAHHrHMFglopRGNrLSZjTwPZxI64oll3nPCyrvDQ1XZDB/IBjW PV5zRQ7J+Az9cxkmibJcrY4uhYu9S/ndpiYFA3EDSXmXruoS0SBPBzlqx/HaZRZj xvIZTqzvliUDg5/BOokAQ/qPAtq8Wv4IbkB7KR+Qn5TJJsQLSeJ+G/gpN/J6A8SW qEy6l5k4jnrHoi+UEIedQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudduvddguddutdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhv rghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorh hgqeenucggtffrrghtthgvrhhnpeelvdekvdeuleetfeffveejgfefueelheejtdeiveej leffgeefleegvdetkedvteenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtoh hmpdhpohhsthhgrhdrvghsnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 26 Mar 2024 03:39:54 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1711438792; bh=v/3K8aykywgQV50dukfLANNxJxjwIwwtkeHjYaKULEU=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=hKF62jQ0OC2Fja4PIU3uRHqqXvIF0MZjR+G6HkFue77X410BB9NKdim/0E6BfZ210 kMMtZcVO/dSMaEJBQe8P63z1EExOSO59xlfj8AayCo6FsDEvXQ1wb45gnIRv8e+9Kf 005Pl1ObUkTUuuZOLY7V+3bQJ9RUOzfXTEsI/kDun4VpgFRwpaV98uDMqry6b3qnIt pFEd7o9g+GYkG88U1BYP2wwRRozEDihAuAE5B8bt2i5E4PziKsyLmxcHBMXMVixszm 7bvSPlk/euNKUdMQWQ34i5iUPLQsRGt278g+gnl7fwxeu6yE7zh0Xa1sWsuEGKWIzE 0OOX8bx1LffUQ== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id A279A153; Tue, 26 Mar 2024 08:39:52 +0100 (CET) Date: Tue, 26 Mar 2024 08:39:52 +0100 From: Alvaro Herrera To: Amit Kapila Cc: Robert Haas , Bertrand Drouvot , shveta malik , Bharath Rupireddy , Amit Kapila , "pgsql-hackers@postgresql.org" Subject: Re: pgsql: Track last_inactive_time in pg_replication_slots. Message-ID: <202403260739.udlp7lxixktx@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-Mar-26, Amit Kapila wrote: > We have a consensus on inactive_since, so I'll make that change. Sounds reasonable. So this is a timestamptz if the slot is inactive, NULL if active, right? What value is it going to have for sync slots? > I would also like to solicit your opinion on the other slot-level > parameter we are planning to introduce. This new slot-level parameter > will be named as inactive_timeout. Maybe inactivity_timeout? > This will indicate that once the slot is inactive for the > inactive_timeout period, we will invalidate the slot. We are also > discussing to have this parameter (inactive_timeout) as GUC [1]. We > can have this new parameter both at the slot level and as well as a > GUC, or just one of those. replication_slot_inactivity_timeout? -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ Tom: There seems to be something broken here. Teodor: I'm in sackcloth and ashes... Fixed. http://postgr.es/m/482D1632.8010507@sigaev.ru