Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jAgoq-0002g6-4M for pgsql-hackers@arkaria.postgresql.org; Sat, 07 Mar 2020 21:17:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jAgoo-0007B0-SU for pgsql-hackers@arkaria.postgresql.org; Sat, 07 Mar 2020 21:17:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jAgoo-0007At-Jn for pgsql-hackers@lists.postgresql.org; Sat, 07 Mar 2020 21:17:10 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jAgom-0001Pm-Jq for pgsql-hackers@postgresql.org; Sat, 07 Mar 2020 21:17:10 +0000 Received: by mail-wm1-x341.google.com with SMTP id 6so6074449wmi.5 for ; Sat, 07 Mar 2020 13:17:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=gY6DkKbuxLyNSH0Cmgr1gRWAxtgHkOvZmrdOV49mVcE=; b=Hf8hmMtbbQB+wboVabWtufY+1iYbgGsMOmDbzvNp15dJcgw/Y4LvVU5VYmfNB6bse4 PjrYrKXO95YWd3xc918jBKLRtw1hCNuJB7CskBp2s+0nBwmaiSZL17fjJUj1eMbfx3TR HF8gPinfiSB3btj6C9gW0v+vCGME1bTwPtBOY2JTEuRKwt2DEFYN3l1O8L6wfM1Aa9Jc sNIFSNQifRYpboety5eI9Ol42bln2ibUdTNp0XNkAYd/b2jEVjgsyJ494P0Vf6ksqJEv rBMGKju8ymYJ6wcdyR9c21OmtztFQlSyL0NqZzgHjNbaVIKiz9I+y/CPH8jM91OsDD0V 67yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=gY6DkKbuxLyNSH0Cmgr1gRWAxtgHkOvZmrdOV49mVcE=; b=W7mJ4j4rF9/G8SECzAl09aotYjevB2bMG6XH2hU93fgIaa21NObmKPiFSBC5T6njzC Cbf64yxSpkIQkov2MsQODftoCT2ISP6j3k3YLsoZuRHbFf6GR9ryjgUdCcCDjoFgBzCd /ZiftpyZR5iKMJ6N31k6Zc/F8WDpYmGRAtkvnGpLxe5y1AHAZfrrTf/+rsYhYGBxByIh DJ0jPHUsZxUojI/BWVkY74qfzShvx3FlDb3rEWzxpk3jYJdsIpahWLmYTpIgSyp9fue0 ZzxvkQh+r3F+yT6fpikmfxUSrbtfebcOBJgOXJZqec+e4oxBalJYtGrCQMG82YMbTloZ M5EQ== X-Gm-Message-State: ANhLgQ1aziQZzAVxymPcxk5WQo50Y4G0CIV4fIAfJS623Ed0s/ZlNHdH OP+sgZfFiP9GBD3uybNyB9Y= X-Google-Smtp-Source: ADFU+vtijbhbp0MZL/Bw/Sxc83IvSFJP1Fdj6OpIW+glL3CQN7ccet6PP+xoPcDpMp76dvrVClRAwA== X-Received: by 2002:a7b:cd13:: with SMTP id f19mr3386088wmj.10.1583615827801; Sat, 07 Mar 2020 13:17:07 -0800 (PST) Received: from nol ([2a01:e0a:c:bcf0:dbc8:f7e9:89ae:5cd7]) by smtp.gmail.com with ESMTPSA id u20sm18380714wmj.14.2020.03.07.13.17.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Mar 2020 13:17:07 -0800 (PST) Date: Sat, 7 Mar 2020 22:17:09 +0100 From: Julien Rouhaud To: Tom Lane Cc: Michael Paquier , pgsql-hackers Subject: Re: Add an optional timeout clause to isolationtester step. Message-ID: <20200307211709.6kfpiddif4uxafg5@nol> References: <20200303092551.GB1890@paquier.xyz> <20200304051510.GE2593@paquier.xyz> <20200305035354.GQ2593@paquier.xyz> <20200306131547.GA2904@nol> <20200307014142.GC1531@paquier.xyz> <20200307061615.c47sju2bytuiaazv@nol> <8441.1583595994@sss.pgh.pa.us> <20200307205328.ffidfyo3me46qscn@nol> <15903.1583615371@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15903.1583615371@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sat, Mar 07, 2020 at 04:09:31PM -0500, Tom Lane wrote: > Julien Rouhaud writes: > > On Sat, Mar 07, 2020 at 10:46:34AM -0500, Tom Lane wrote: > >> What's the actual need that you're trying to deal with? > > > Testing the correct behavior of non trivial commands, such as CIC/reindex > > concurrently, that fails during the execution. > > Hmm ... don't see how a timeout helps with that? For reindex concurrently, a SELECT FOR UPDATE on a different connection can ensure that the reindex will be stuck at some point, so canceling the command after a long enough timeout reproduces the original faulty behavior.