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 1nHzJC-0006b5-Mk for pgsql-committers@arkaria.postgresql.org; Thu, 10 Feb 2022 02:35:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nHzJB-0006uX-IO for pgsql-committers@arkaria.postgresql.org; Thu, 10 Feb 2022 02:35:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nHzJB-0006uO-3q for pgsql-committers@lists.postgresql.org; Thu, 10 Feb 2022 02:35:45 +0000 Received: from mail-qt1-x830.google.com ([2607:f8b0:4864:20::830]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nHzJ8-0006q8-8S for pgsql-committers@lists.postgresql.org; Thu, 10 Feb 2022 02:35:44 +0000 Received: by mail-qt1-x830.google.com with SMTP id t1so3760259qtq.13 for ; Wed, 09 Feb 2022 18:35:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=rjZw/jjdQ0CQQx/92S4Xq7lek+NXi9L5IExfyxsUABk=; b=Oew3vOTvXVwlfYD3dfpNsmeJEPqNKdp1z/3oRE9QwLK2VxitVedBlHq/FltD+zpMt3 NGVyyOh1lEZri7XzuLbNmsvjsAvl0WBrLhgpWCDHZ8ii07DeFWmIAYAfhSw6bhiRuQ40 u0IoIlKEt5apvAzBk6By6ncd3wUJ1MNQRs+mQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=rjZw/jjdQ0CQQx/92S4Xq7lek+NXi9L5IExfyxsUABk=; b=uHFIC+O5MS3Fvy0AIpxXFufDdxHXIcrRMXs8pXn0/JB6Mw1RAegteUQ9pTuSydg/FV U6qp7ptEGj+g8pj4h6yIlVQAg2TbzuDPnDOtPG3NPLpq9qZJ04448FQgRmkxLgy1mLBx BcGMQd1l4vk6S6QEe6MytTjXEmW/xlDw0vT7x4kSCK07oGUtzLCvzcT7wiGhRA8uzVI9 h1cQBiGJm1mMV9PnHSnQ+X0gLOMuTrdja1oT8M6YbJaWYFMQqQlRn/1hscY8aK8CA4BP M9JFUzrX/X9P5ZpxvUT0S6dSMfstRxOPkYn2+IzuB7R9NZj6Six172aDtklOo2oGX12n Gtmg== X-Gm-Message-State: AOAM530J2aZjb6pY01ZuyN0wl+8G/hPO+R9xiyQsJUu+4zaesA5Wo0go McC1PQmTa5DfSgYRAZAr9x41bA== X-Google-Smtp-Source: ABdhPJwDZ01Zpq6Qul1s1ibEfidNetjDtFvmhPGI5jBVZ6SRZEe7ibW8c8I9IO4utVpJD/hNel9Fzw== X-Received: by 2002:a05:622a:1006:: with SMTP id d6mr3477877qte.409.1644460540702; Wed, 09 Feb 2022 18:35:40 -0800 (PST) Received: from rfd.leadboat.com ([2600:1702:a20:5750::2e]) by smtp.gmail.com with ESMTPSA id o6sm2473qtk.69.2022.02.09.18.35.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Feb 2022 18:35:40 -0800 (PST) Date: Wed, 9 Feb 2022 18:35:37 -0800 From: Noah Misch To: Tom Lane Cc: Andres Freund , Thomas Munro , pgsql-committers Subject: Re: pgsql: TAP tests: check for postmaster.pid anyway when "pg_ctl start" f Message-ID: <20220210023537.GA3222837@rfd.leadboat.com> References: <855583.1642687119@sss.pgh.pa.us> <867290.1642689136@sss.pgh.pa.us> <20220120192736.msyesvdlljn6tptw@alap3.anarazel.de> <926839.1642708567@sss.pgh.pa.us> <1075553.1642717844@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1075553.1642717844@sss.pgh.pa.us> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Jan 20, 2022 at 05:30:44PM -0500, Tom Lane wrote: > I wrote: > > What I'm thinking of doing is inventing a "soft_stop" variant of > > Cluster::stop that won't complain if pg_ctl stop fails, and then > > having 017_shm's poll_start() call that before retrying the start > > call. > > I did that, modeling the details on Cluster::start's fail_ok option. On AIX, this pair of commits added 5-10h of runtime to 017_shm.pl. Before 6c4a890 or 4fdbf9a: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=hoverfly&dt=2022-01-19%2020%3A41%3A47 [21:14:17] t/017_shm.pl ......................... ok 7360 ms ( 0.01 usr 0.00 sys + 1.62 cusr 0.71 csys = 2.34 CPU) After both: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=hoverfly&dt=2022-01-21%2021%3A03%3A28 [07:52:31] t/017_shm.pl ......................... ok 36908794 ms ( 0.00 usr 0.00 sys + 5.16 cusr 16.04 csys = 21.20 CPU)