Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLXga-0002XB-8P for pgsql-bugs@arkaria.postgresql.org; Thu, 15 Jun 2017 16:31:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dLXgZ-0005OM-Rb for pgsql-bugs@arkaria.postgresql.org; Thu, 15 Jun 2017 16:31:55 +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 1dLXgZ-0005O6-Ed for pgsql-bugs@postgresql.org; Thu, 15 Jun 2017 16:31:55 +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 1dLXgW-0002dj-R8 for pgsql-bugs@postgresql.org; Thu, 15 Jun 2017 16:31:54 +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 v5FGVeUh011136; Thu, 15 Jun 2017 12:31:41 -0400 From: Tom Lane To: Heikki Linnakangas cc: Michael Paquier , khuddleston@pivotal.io, PostgreSQL mailing lists Subject: Re: BUG #14706: Dependencies not recorded properly for base types In-reply-to: <91122adb-3afc-a727-c4c9-478175729f56@iki.fi> References: <20170614232259.1424.82774@wrigleys.postgresql.org> <22824.1497487336@sss.pgh.pa.us> <1724.1497502434@sss.pgh.pa.us> <91122adb-3afc-a727-c4c9-478175729f56@iki.fi> Comments: In-reply-to Heikki Linnakangas message dated "Thu, 15 Jun 2017 10:49:08 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <11134.1497544300.1@sss.pgh.pa.us> Date: Thu, 15 Jun 2017 12:31:40 -0400 Message-ID: <11135.1497544300@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Heikki Linnakangas writes: > Hmm. Strictly speaking there's no need to update the dependency when > changing opaque into cstring. Because cstring is a pinned type, > recordDependency will do nothing for it. > But in any case, I think it'd be better and simpler to fix the > dependency in SetFunctionArgType() and SetFunctionReturnType() functions > themselves. They're the ones that change the type, they ought to be > responsible for fixing the dependency too. See attached. Yeah, Heikki's version looks good to me. Heikki, are you going to commit/backpatch this, or do you want me to? regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs