Skip site navigation (1) Skip section navigation (2)

Re: Sometimes pg_dump generates dump which is not restorable

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: dmitry(at)koterov(dot)ru
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Sometimes pg_dump generates dump which is not restorable
Date: 2008-11-13 18:07:44
Message-ID: 19458.1226599664@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
"Dmitry Koterov" <dmitry(at)koterov(dot)ru> writes:
> 3. The function a() calls any OTHER function b() from OTHER namespace (or
> uses operators from other namespaces), but does not specify the schema name,
> because it is in database search_path:

> CREATE FUNCTION a(i integer) RETURNS boolean  AS $$
> BEGIN
>     PERFORM b(); -- b() is is from "nsp" schema
>     RETURN true;
> END;$$ LANGUAGE plpgsql IMMUTABLE;

I think your function is broken.  You might want to fix it by attaching
a local search_path setting to it.

			regards, tom lane

In response to

Responses

pgsql-hackers by date

Next:From: Gregory StarkDate: 2008-11-13 18:43:22
Subject: Re: Simple postgresql.conf wizard
Previous:From: Josh BerkusDate: 2008-11-13 18:07:24
Subject: Re: Simple postgresql.conf wizard

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group