Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9FeX-0003yS-KO for pgsql-bugs@arkaria.postgresql.org; Fri, 12 May 2017 18:51:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d9FeW-00019B-UL for pgsql-bugs@arkaria.postgresql.org; Fri, 12 May 2017 18:51:00 +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 1d9FeW-00018F-1T for pgsql-bugs@postgresql.org; Fri, 12 May 2017 18:51:00 +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 1d9FeS-0005xB-OR for pgsql-bugs@postgresql.org; Fri, 12 May 2017 18:50:59 +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 v4CIooN3005733; Fri, 12 May 2017 14:50:50 -0400 From: Tom Lane To: Jeremy Cowgar cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14649: Function Namespace Resolution Bug In-reply-to: References: <20170512174059.1791.21888@wrigleys.postgresql.org> <26979.1494612834@sss.pgh.pa.us> Comments: In-reply-to Jeremy Cowgar message dated "Fri, 12 May 2017 14:25:23 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5731.1494615050.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 12 May 2017 14:50:50 -0400 Message-ID: <5732.1494615050@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 Jeremy Cowgar writes: > Why does it find the initial function just fine in the public namespace, = but the method it calls it can not find, which is in the same namespace as = the calling function? pg_dump is smart enough to schema-qualify that one. If you look at the actual dump output for the table, it looks like SET search_path =3D g, pg_catalog; ... CREATE TABLE people ( id integer NOT NULL, name character varying(50) NOT NULL, CONSTRAINT people_name_check CHECK (public.has_content((name)::text)) ); However, editing the body text of your function is beyond pg_dump's competence. regards, tom lane --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs