pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jeremy Cowgar <jeremy@cowgar.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14649: Function Namespace Resolution Bug
Date: Fri, 12 May 2017 14:50:50 -0400
Message-ID: <5732.1494615050@sss.pgh.pa.us> (raw)
In-Reply-To: <C85A4615-B255-4D73-B0E2-774980C542A8@cowgar.com>
References: <20170512174059.1791.21888@wrigleys.postgresql.org>
	<26979.1494612834@sss.pgh.pa.us>
	<C85A4615-B255-4D73-B0E2-774980C542A8@cowgar.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Jeremy Cowgar <jeremy@cowgar.com> 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 = 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


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (6+ messages)  latest in thread

Message-ID: <5732.1494615050@sss.pgh.pa.us>
Permalink:  ../5732.1494615050@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5732.1494615050@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jeremy@cowgar.com
  Subject: Re: BUG #14649: Function Namespace Resolution Bug
  In-Reply-To: <5732.1494615050@sss.pgh.pa.us>
  References: <20170512174059.1791.21888@wrigleys.postgresql.org> <26979.1494612834@sss.pgh.pa.us> <C85A4615-B255-4D73-B0E2-774980C542A8@cowgar.com> <5732.1494615050@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox