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.89) (envelope-from ) id 1gM3Pl-0007OT-BS for pgsql-bugs@arkaria.postgresql.org; Mon, 12 Nov 2018 04:01:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gM3Pj-0005e3-P1 for pgsql-bugs@arkaria.postgresql.org; Mon, 12 Nov 2018 04:01:27 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1gM3Pj-0005dw-Gk for pgsql-bugs@lists.postgresql.org; Mon, 12 Nov 2018 04:01:27 +0000 Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gM3Pg-00012d-UM for pgsql-bugs@lists.postgresql.org; Mon, 12 Nov 2018 04:01:27 +0000 Received: by mail-lj1-x236.google.com with SMTP id z80-v6so6324415ljb.8 for ; Sun, 11 Nov 2018 20:01:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=G1zxp/mWwzjaKJWGcUSZd6mgWpYEAcVlpmye6ccBsqc=; b=g36idUK6Ym6AcMcvpwyCD6IQUtsRFIG73u1gAbfMQBa1FUFwHtSYm7v4fu8DXjA1dK KV5juSX3APu+8YLXPku/kJT46NRjVBoqL6Dm9WuP3hfiim5bu0tENTRWaRfMCmu5aXto 1OCurZkZk0HN+jXkZxX5PcbDS0e9hJbiJRhEBhJVAB2NdfjcqVi2wbtEdenU4dTWqhyG MBDjcC/j5MAn0zh/iJUy5MV7OLeadtOtTQKTO7IbuJ6uveQ9qL7Qhtf+uybZ1n5gpqzm WDgwtwHLKuVAA74DFKzaFBd41aUbW8Zn+Tj7q/kgP0zVHQs7/JreXSVLs9X/JgdOphKb lIVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=G1zxp/mWwzjaKJWGcUSZd6mgWpYEAcVlpmye6ccBsqc=; b=Sem7CSK3fdwc4TyhL7M6y/hJtKKkOb3K5FhHMajSB/twtx8TYh4hGp5CwNs6kEqk8G i0+RoZ9wlHh/j6sZFZLtk+2rL+vQPDtdek91l2PbOn7A3lnHHh2yer9fjm7Lzee4i11r 93hiXZ5KJAzKG49wPAlFtPSr+WPmqX4v6VMWL85U3qgDLekTLFLBuza24PUsOeWNvXSV KYP7870MYywT/Q6C7Q3WZsK3XHmgrgQZJeoPbvR4OwPcMbleZ7aUypbrEGErqHvuKLNi jF4N+KrzI8G5kJVxlqeNu198KrX1xwk9oId3uzBhTBf8NaCk01r8N76xXV5AGDwyjG1z bSeg== X-Gm-Message-State: AGRZ1gJ1Mvn5pdKXqB8B6pjTOZjBZcyebCXwlx3t7J0pJFRUQFrxy0WU NQCP5jsXl4AsATATR8yr5Wd8Ae8+WXk= X-Google-Smtp-Source: AJdET5cSrKZa7vJdCO9XyI2LQD24lfu/x7V8Bd/ut/Jnky6vheo6aIIGhVcSsTl3XGkkk4aAp3xtTA== X-Received: by 2002:a2e:5747:: with SMTP id r7-v6mr10584487ljd.141.1541995283330; Sun, 11 Nov 2018 20:01:23 -0800 (PST) Received: from [1.0.0.7] ([178.155.4.187]) by smtp.gmail.com with ESMTPSA id j12-v6sm2811239lja.8.2018.11.11.20.01.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Nov 2018 20:01:22 -0800 (PST) Subject: Re: BUG #15492: pg_cancel_backend(pg_backend_pid()) returns true sporadically To: Tom Lane , Magnus Hagander Cc: Michael Paquier , pgsql-bugs@lists.postgresql.org References: <15492-9b79ce7d1e0687a9@postgresql.org> <20181109012058.GC2652@paquier.xyz> <16170.1541774987@sss.pgh.pa.us> From: Alexander Lakhin Message-ID: <5063e179-6520-2bf7-36cf-2dfb8c858007@gmail.com> Date: Mon, 12 Nov 2018 07:01:21 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <16170.1541774987@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 09.11.2018 17:49, Tom Lane wrote: > Magnus Hagander writes: >> On Fri, Nov 9, 2018 at 2:21 AM Michael Paquier wrote: >>> On Thu, Nov 08, 2018 at 11:31:41AM +0100, Magnus Hagander wrote: >>>> ... why is this problem only showing up now? >> Oh, i didn't realize that wasn't run by the buildfarm. Then yeah, it's >> pretty likely it was simply never run. > IIRC, the reason those tests aren't run by default is that they're > pointless unless executed in a hot-standby configuration. I'm inclined to > think we should remove them from src/test/regress altogether, and instead > put equivalent checks (for any not-already-covered case) into one of the > TAP tests that sets up such a configuration. src/test/recovery is > probably the right home. I tried to use the 'make standycheck' approach for two reasons. First, it's documented at https://www.postgresql.org/docs/11/regress-run.html Second, it allows to test a replication between different minor versions (after some setup). Will we still have such a possibility, if the tests will be removed? Best regards, Alexander