Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxRKT-0005oq-9P for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Sep 2017 05:25:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dxRKS-0004R2-SF for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Sep 2017 05:25:44 +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.84_2) (envelope-from ) id 1dxRIr-0007gg-HQ for pgsql-hackers@postgresql.org; Thu, 28 Sep 2017 05:24:05 +0000 Received: from mail-pg0-x22a.google.com ([2607:f8b0:400e:c05::22a]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dxRIn-0008KG-GW for pgsql-hackers@postgresql.org; Thu, 28 Sep 2017 05:24:04 +0000 Received: by mail-pg0-x22a.google.com with SMTP id m30so328541pgn.6 for ; Wed, 27 Sep 2017 22:24:00 -0700 (PDT) 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=sY8KknATkoEWZYizmNsO2vgXTSRfuDXvAHE6PaHA/T8=; b=YKI7dNG/duz4dct5O2LJ0L9w7kL6uMxbmrk3s838el5kCXxiSXckAT8h0F/2pA+XKN cE2x9TJObVvZbnwIU/6heHr+4bP0gh8krKEduzgsPu+bXQyU40z6PBy0kMipc5NVMVE3 je3U5WeE8H/iZzI/g/aJNndKHvTMbs7y5o4dc= 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:user-agent; bh=sY8KknATkoEWZYizmNsO2vgXTSRfuDXvAHE6PaHA/T8=; b=bgc/I5mJYEIPz2r6JkYkXFcFZPXNpJFizBKH8Sxk0DtwTHmv2NqixPjG2C0OMX5N4H Imy1CZFWfUiF7hUqtZ7taOrNOKMELOEWFtBYyTp+nBqZs6EvtiMreHUCL8SvEtirFi8P Bg2OhhDXsDrsylaTGMyCbEpwBNs5hKF92clKtOQIFqh9m75oiH45spwLj9HRUzx2xvJ8 JGgsNZQr+UJVXkeBnl1P6RdtHhGn8z5gUp1d/qfbcZ3UWq2kvVmKpbD2TO1XaSKrKbyx cR2mRG3NIkOJPWICPqDB8N1Giyr/TTNtwFdYZcAaVZI52sZ8AskxC//AlFEeD3XpndkX /tmA== X-Gm-Message-State: AHPjjUiZPhRz5eFVp7lVRr7/I9v1oKqr/UPmAE/NrFetqg0FPfw4QfDV EKUu+hCrUYKOT+8tDO+Xx2jtLQ== X-Google-Smtp-Source: AOwi7QBxTfW0NUqzW0ByBP7VC9k3DAvoq3oFUiTjYoOKCJ4/C8KQJh3pZQqeIt3BkUyYSdAPrOUWMg== X-Received: by 10.98.202.220 with SMTP id y89mr3290560pfk.57.1506576238293; Wed, 27 Sep 2017 22:23:58 -0700 (PDT) Received: from rfd.leadboat.com (c-73-158-248-138.hsd1.ca.comcast.net. [73.158.248.138]) by smtp.gmail.com with ESMTPSA id l131sm929008pga.24.2017.09.27.22.23.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Sep 2017 22:23:56 -0700 (PDT) Date: Thu, 28 Sep 2017 05:23:26 +0000 From: Noah Misch To: Heikki Linnakangas Cc: Jeff Janes , Fabien COELHO , Tom Lane , Michael Paquier , PostgreSQL Developers Subject: Re: pgbench - minor fix for meta command only scripts Message-ID: <20170928052318.GC37725@rfd.leadboat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On Tue, Sep 12, 2017 at 03:27:13AM +0200, Fabien COELHO wrote: > >Shouldn't we use pg_usleep to ensure portability? it is defined for > >front-end code. But it returns void, so the error check will have to be > >changed. > > Attached v3 with pg_usleep called instead. > > >I didn't see the problem before the commit I originally indicated , so I > >don't think it has to be back-patched to before v10. > > Hmmm.... you've got a point, although I'm not sure how it could work without > sleeping explicitely. Maybe the path was calling select with an empty wait > list plus timeout, and select is kind enough to just sleep on an empty list, > or some other miracle. ISTM clearer to explicitely sleep in that case. [Action required within three days. This is a generic notification.] The above-described topic is currently a PostgreSQL 10 open item. Heikki, since you committed the patch believed to have created it, you own this open item. If some other commit is more relevant or if this does not belong as a v10 open item, please let us know. Otherwise, please observe the policy on open item ownership[1] and send a status update within three calendar days of this message. Include a date for your subsequent status update. Testers may discover new open items at any time, and I want to plan to get them all fixed well in advance of shipping v10. Consequently, I will appreciate your efforts toward speedy resolution. Thanks. [1] https://www.postgresql.org/message-id/20170404140717.GA2675809%40tornado.leadboat.com -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers