Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bDxLu-0000vv-TE for pgsql-committers@arkaria.postgresql.org; Fri, 17 Jun 2016 17:14:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bDxLu-0003xV-2p for pgsql-committers@arkaria.postgresql.org; Fri, 17 Jun 2016 17:14:42 +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 1bDxLh-0003jn-7t for pgsql-committers@postgresql.org; Fri, 17 Jun 2016 17:14:29 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bDxLe-0003rc-Is for pgsql-committers@postgresql.org; Fri, 17 Jun 2016 17:14:28 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 733D420431; Fri, 17 Jun 2016 13:14:25 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Fri, 17 Jun 2016 13:14:25 -0400 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-sasl-enc :x-sasl-enc; s=smtpout; bh=y/QkxvOLw4XElBK4lilVTH0cB5M=; b=mAhaU OASDk4y4mdpRrmkoe0XzTbSsCLp7MRzWi6/zCREr8f2WMlCMoKqo7qQNrWnx+tgs XsSu/Z9DEicxeN8PCuK2nxFVHb+4cC2TFJr56ZG6D5lkFJj9eRJjmc4Cz40Ed/cm O3vaz4dQDiujD1R0iEg7+YOJe+muwGvKWGO/dM= X-Sasl-enc: b8r+/S0t4zQv/xf8SJC1x04EdsvhSajV/suO/YPA9a0k 1466183665 Received: from intern.anarazel.de (somacentral1.static.monkeybrains.net [162.217.75.74]) by mail.messagingengine.com (Postfix) with ESMTPA id 164CDF2022; Fri, 17 Jun 2016 13:14:25 -0400 (EDT) Date: Fri, 17 Jun 2016 10:14:24 -0700 From: Andres Freund To: Robert Haas Cc: Amit Kapila , Tom Lane , pgsql-committers Subject: Re: pgsql: Add regression test for 04ae11f62e643e07c411c4935ea6af46cb112aa9 Message-ID: <20160617171424.a524ysqpwiblm5va@alap3.anarazel.de> References: <8746.1466135448@sss.pgh.pa.us> 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-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On 2016-06-17 08:41:31 -0400, Robert Haas wrote: > On Fri, Jun 17, 2016 at 12:55 AM, Amit Kapila wrote: > > Isn't it possible that the below statement used in parallel restricted > > function fails in leader backend itself: > > + perform * from pg_stat_activity where client_port is null; > > + if (found) then > > + raise 'parallel restricted function run in worker'; > > + end if; > > Yeah, I can't believe I managed to be dumb enough to think that was > going to work. > > Clearly, I shouldn't be trusted with anything more dangerous than a > dull pair of scissors. Dull scissors actually cause much harder to sow up / heal wounds, than sharp ones ... :P -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers