Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bB423-00015T-AO for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Jun 2016 17:46:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bB422-0001d6-PE for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Jun 2016 17:46:14 +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 1bB40h-0008U5-Lg for pgsql-hackers@postgresql.org; Thu, 09 Jun 2016 17:44:51 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bB40e-0005Y7-3i for pgsql-hackers@postgresql.org; Thu, 09 Jun 2016 17:44:50 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u59HiiFC007107; Thu, 9 Jun 2016 13:44:44 -0400 From: Tom Lane To: Robert Haas cc: "pgsql-hackers@postgresql.org" Subject: Re: [COMMITTERS] pgsql: Don't generate parallel paths for rels with parallel-restricted In-reply-to: References: <5569.1465491729@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Thu, 09 Jun 2016 13:26:41 -0400" Date: Thu, 09 Jun 2016 13:44:44 -0400 Message-ID: <7106.1465494284@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) 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 Robert Haas writes: > On Thu, Jun 9, 2016 at 1:02 PM, Tom Lane wrote: >> It seems like the only reason that we would need such a flag is that >> applying has_parallel_hazard() to a Var is a bit expensive thanks to >> the typeid_is_temp() test --- but if you ask me, that test is stupid >> and should be removed. What's the argument for supposing that a temp >> table's rowtype is any more mutable intra-query than any other rowtype? > That error is coming from relation_open(). It might be possible to > find a way to nerf the check in relation_open() enough to let this > case work while making the cases that we need to fail still fail, Well, yeah, you could remove it. It's inappropriate. The right place for such an error check is an attempt to actually access any data within a temp table, ie someplace in localbuf.c. There is no reason a worker shouldn't be allowed to look at the catalog entries for a temp table; they're just like any other catalog entries. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers