Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2lFF-0001q2-3c for pgsql-committers@arkaria.postgresql.org; Thu, 12 Oct 2017 21:42:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e2lFE-0007ec-Dg for pgsql-committers@arkaria.postgresql.org; Thu, 12 Oct 2017 21:42:20 +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 1e2lEy-0007E7-1a for pgsql-committers@postgresql.org; Thu, 12 Oct 2017 21:42:04 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e2lEv-0005X8-SS; Thu, 12 Oct 2017 21:42:02 +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 v9CLg1b8001580; Thu, 12 Oct 2017 17:42:01 -0400 From: Tom Lane To: Robert Haas cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Avoid coercing a whole-row variable that is already coerced. In-reply-to: References: Comments: In-reply-to Robert Haas message dated "Thu, 12 Oct 2017 21:16:31 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1578.1507844521.1@sss.pgh.pa.us> Date: Thu, 12 Oct 2017 17:42:01 -0400 Message-ID: <1579.1507844521@sss.pgh.pa.us> 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 Robert Haas writes: > Avoid coercing a whole-row variable that is already coerced. This logic seems very strange and more than likely buggy: the added coerced_var flag feels like the sort of action at a distance that is likely to have unforeseen side effects. I'm not entirely sure what the issue is here, but if you're concerned about not applying two ConvertRowtypeExprs in a row, why not have the upper one just strip off the lower one? We handle, eg, nested RelabelTypes that way. regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers