Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWpN6-0003iF-5y for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Jan 2017 19:06:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cWpN5-0001aL-PI for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Jan 2017 19:06:11 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cWpN4-0001Y4-MI for pgsql-hackers@postgresql.org; Thu, 26 Jan 2017 19:06:10 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cWpN1-0007Ml-Tw for pgsql-hackers@postgresql.org; Thu, 26 Jan 2017 19:06:09 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 1A489206D0; Thu, 26 Jan 2017 14:06:07 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Thu, 26 Jan 2017 14:06:07 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=smtpout; bh=2iNYUAdq9Pf21l SR65cp8/MKIBo=; b=dAv/ohmvKgBNd4uIYu2tJeN+ukhSzjxAUdBTcBXa78XTWc kcPd66EaxucgQrfgdS+zI1ZEsWwniOqR1Ij6t+AE6avh9SA+sYJZrUV6seb6jRXG AfYnkxBVEuK6TtokG9bQNk7u4ZFGmMDCC5p5+0fSQ7PoA6kMgmlamZf8+dNJc= X-ME-Sender: X-Sasl-enc: UkqNKZSKrxXcVGJ+fJR7Nl6D6+EhdJgiC06o+wJOo91Z 1485457566 Received: from intern.anarazel.de (unknown [208.72.138.107]) by mail.messagingengine.com (Postfix) with ESMTPA id CD0C47E4B1; Thu, 26 Jan 2017 14:06:06 -0500 (EST) Date: Thu, 26 Jan 2017 11:06:05 -0800 From: Andres Freund To: Simon Riggs Cc: pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Check interrupts during hot standby waits Message-ID: <20170126190605.crxlcwndye7fh4sq@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -2.6 (--) 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 Hi, On 2017-01-26 19:00:34 +0000, Simon Riggs wrote: > Check interrupts during hot standby waits > > Branch > ------ > master > > Details > ------- > http://git.postgresql.org/pg/commitdiff/e8ee3d6b859a18d7f7375ceb9e04d256eb18aaec > > Modified Files > -------------- > src/backend/storage/ipc/standby.c | 2 ++ > 1 file changed, 2 insertions(+) It seems that the actual fix here would be to replace the pg_usleep loop with a latch wait.... Then we also don't need to needlessly loop, and actually react promptly to signals. Andres -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers