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 1nKDiV-000078-RI for pgsql-hackers@arkaria.postgresql.org; Wed, 16 Feb 2022 06:23:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nKDhx-0003Nb-Vd for pgsql-hackers@arkaria.postgresql.org; Wed, 16 Feb 2022 06:22:33 +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 1nKDhx-0003N2-K8 for pgsql-hackers@lists.postgresql.org; Wed, 16 Feb 2022 06:22:33 +0000 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nKDhv-0003rr-90 for pgsql-hackers@postgresql.org; Wed, 16 Feb 2022 06:22:32 +0000 Received: by mail-pl1-x633.google.com with SMTP id z17so1228852plb.9 for ; Tue, 15 Feb 2022 22:22:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:message-id:to:cc:subject:from:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=Pl1rF7CZYXEVcOTHCDKDL2v5a/Iqz/X4s6YHBdwatc4=; b=h9MeM34WT7+ywYsMEctANjOfW206tcUfmn8qegdGfXR5G30imJVKCppRwHwjOZnF0t BqF4yykoRbKCnMfhwsIyqGYimm8ZgZKaWLUG1EcRLSH311nUneBATsNu5A5UoVtO7NhQ 0IT7qHTKyexWrZkDDYcTqCxCy4tLjHJG+j3ILMhURCUCdugYZswxTcy75+Hfm26JhpKw nrOsZ0I9KPi4oCo4m88dppAd9LrLsTbQQ5iY82cVBBJgr9XKz8VqWh9ARY9OjhqozL4F 2KKpLApz6SnjV/oYNjZTdIZpdaVG3s/y/gdaJ6+bsdLugON3RlUKfZSUnyysKjZ+iXRr HLzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:to:cc:subject:from:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=Pl1rF7CZYXEVcOTHCDKDL2v5a/Iqz/X4s6YHBdwatc4=; b=D76azQN3lUKrvIX3yEPWbTIowKUADtlc30uI7xXtnRZN0nFFr/7pRqbX25qrj/Sq2w XYVpgJ/Tf/vFMlC6/VaoZBbBaOQz2pvjOR8vEs5ja9O7rirUik6ocnU0Z8fTBr0th104 zAbA6MBh/x1mqRcpWbWXVT5k0L3bJ592bZdY4UNFyXjbWcTLWNpmZUnce7CvtkeeIJP/ /mwiQBJexo3etta5B+KiAHmdMglUlOR8bl1IXuNxrB3DoQsWQwcehIH0SIx/AQ7/VfES SIJmn5u4uexNErwQPIJwXMtsLnCjUtx7c7GDCLn4SqKAR42u5plIsLPWvkLBcxAXPoFe MY/w== X-Gm-Message-State: AOAM531K7igRcfPZjMMtC3iU6sEpOjjKSTPA+NYzal9M1OpJDdkcvcph pHl/td3roZJA1tZgEAqp8rkO1aWJ3EE= X-Google-Smtp-Source: ABdhPJyatIbXSNpUNiqOPEwXfPY58uN83BgrWcd6uAbpnjSIWud/Qmb5KIsVqhMLU2PGALwjhnGcvA== X-Received: by 2002:a17:902:db05:b0:14d:2df1:2610 with SMTP id m5-20020a170902db0500b0014d2df12610mr1069876plx.73.1644992550365; Tue, 15 Feb 2022 22:22:30 -0800 (PST) Received: from localhost (KD036014041111.ppp-bb.dion.ne.jp. [36.14.41.111]) by smtp.gmail.com with ESMTPSA id 69sm4309191pgc.61.2022.02.15.22.22.28 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 15 Feb 2022 22:22:29 -0800 (PST) Date: Wed, 16 Feb 2022 15:22:27 +0900 (JST) Message-Id: <20220216.152227.2011857448174448615.horikyota.ntt@gmail.com> To: sawada.mshk@gmail.com Cc: andres@anarazel.de, hlinnaka@iki.fi, pgsql-hackers@postgresql.org Subject: Re: Race conditions in 019_replslot_limit.pl From: Kyotaro Horiguchi In-Reply-To: References: <20220215235157.jknqi73c5scietxe@alap3.anarazel.de> <20220216.142637.1918987197255698649.horikyota.ntt@gmail.com> User-Agent: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk At Wed, 16 Feb 2022 14:58:23 +0900, Masahiko Sawada wrote in > Or it's possible that the process took a time to clean up the > temporary replication slot? Checkpointer may take ReplicationSlotControlLock. Dead lock between ReplicationSlotCleanup and InvalidateObsoleteReplicationSlots happened? regards. -- Kyotaro Horiguchi NTT Open Source Software Center