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 1rnxJA-00GAUn-49 for pgsql-hackers@arkaria.postgresql.org; Sat, 23 Mar 2024 09:04:56 +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 1rnxJ7-009P7Y-1C for pgsql-hackers@arkaria.postgresql.org; Sat, 23 Mar 2024 09:04:53 +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 1rnxJ6-009P7Q-M5 for pgsql-hackers@lists.postgresql.org; Sat, 23 Mar 2024 09:04:53 +0000 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rnxJ3-0063UG-NY for pgsql-hackers@lists.postgresql.org; Sat, 23 Mar 2024 09:04:52 +0000 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-41481f28c3dso992205e9.0 for ; Sat, 23 Mar 2024 02:04:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711184687; x=1711789487; darn=lists.postgresql.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=EqMZNZu0dARrVvQP3r1YKh00H4HnjLfml0R3d3c5wwg=; b=GFO+UF+QeoNCbGOYch2o0SAfHiZu7CjH0B65OJVNDEX6agqHFlXURgHHxp5UxFQFbk yg/gXGORoc73xASC4VD6aGD3vn60gUew8SgHD2zCQwrz7OVPBr33OmfN51R/iON3PUTV b2j6kIfSsivvTPyZsxkMt9hPNYDbKqC+A+yQtoIzdqJL98nrwHGZamQwrJQMCvNiGnOF kkbAdyv8Azjy37u27Z2af7HaEnTK6gdes60v9jXlVbf6183S88anEaLZ/n6QK9KGQQIu lI1DjaUXNyJmgzkne9eWmJfELbAXNaOITyfXEcaT7nKuOSrleNic86+iDJrqFOfcYXtl 8YLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711184687; x=1711789487; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=EqMZNZu0dARrVvQP3r1YKh00H4HnjLfml0R3d3c5wwg=; b=di4FPcNPPtz1Yt+qcAoaH5UW2+nF2jNZcg0Ki0ub0kSvnINKRSuGeQZLj7uR14YcGG 0KtvBb+vQBSxDtYPTYAJDexfeAN3jxecIJoQl8oyqbgYWO+ZmiSIPH1XippjnEGNdDtQ osSVgKBMFMrVEb5tOQKfw4rej77ERZKtHh9uwEbyZYYtYWdEtUm3Tb6UpgO1NxOluTk+ Sb3ybotOmT5WEbMPa7FnLLzsD0sGAgYht5UA+XpgXO8u8uxla03trKw1JFzg18QMEPs1 HjVLig8+OOLwOZt+knZ07JKRx6R1zzgitVs6UMXMAXSLPZADwIyEEXncwM885rnrVANS 1rbQ== X-Forwarded-Encrypted: i=1; AJvYcCWtLTL96ONE7jeGc9mFcsXk6vodO+rWJVWwHNeksx71YfyuICD5Nthl1+vfB0mlhuxXPkhKvAHN1hmsswTPjrRzhbTdwaDbl1oekDXj40N0F34D X-Gm-Message-State: AOJu0YzspIuAn06NqK3ZCTHm87qOYPo3UjK98OjQLvXyMJ+j46n3plUq XX2pJbZ6Y+F2qMdBQPRbtoXhfVGEJBZa6bLTxcn2eQczN9LU6Taq X-Google-Smtp-Source: AGHT+IG7j7myBK/E51heVrxVCo2GurZbi4dmw/RQZ9k1YBCUbdMTk+L+Fi0E/J+m6fQn0aUL4GE+uw== X-Received: by 2002:a05:600c:154d:b0:414:64de:160a with SMTP id f13-20020a05600c154d00b0041464de160amr1237858wmg.12.1711184687385; Sat, 23 Mar 2024 02:04:47 -0700 (PDT) Received: from ip-10-97-1-34.eu-west-3.compute.internal (ec2-15-236-134-5.eu-west-3.compute.amazonaws.com. [15.236.134.5]) by smtp.gmail.com with ESMTPSA id q20-20020a05600c46d400b004147db8a91asm1897002wmo.40.2024.03.23.02.04.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Mar 2024 02:04:46 -0700 (PDT) Date: Sat, 23 Mar 2024 09:04:45 +0000 From: Bertrand Drouvot To: Bharath Rupireddy Cc: Amit Kapila , Nathan Bossart , PostgreSQL Hackers Subject: Re: Introduce XID age and inactive timeout based replication slot invalidation Message-ID: References: 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 Hi, On Sat, Mar 23, 2024 at 01:11:50PM +0530, Bharath Rupireddy wrote: > On Sat, Mar 23, 2024 at 11:27 AM Amit Kapila wrote: > > > > How about adding the test in 019_replslot_limit? It is not a direct > > fit but I feel later we can even add 'invalid_timeout' related tests > > in this file which will use last_inactive_time feature. > > I'm thinking the other way. Now, the new TAP file 043_replslot_misc.pl > can have last_inactive_time tests, and later invalid_timeout ones too. > This way 019_replslot_limit.pl is not cluttered. I share the same opinion as Amit: I think 019_replslot_limit would be a better place, because I see the timeout as another kind of limit. > > > It is also > > possible that some of the tests added by the 'invalid_timeout' feature > > will obviate the need for some of these tests. > > Might be. But, I prefer to keep both these tests separate but in the > same file 043_replslot_misc.pl. Because we cover some corner cases the > last_inactive_time is set upon loading the slot from disk. Right but I think that this test does not necessary have to be in the same .pl as the one testing the timeout. Could be added in one of the existing .pl like 001_stream_rep.pl for example. Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com