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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-hackers by date

  From Date Subject
Next Message Gregory Stark 2008-11-13 18:43:22 Re: Simple postgresql.conf wizard
Previous Message Josh Berkus 2008-11-13 18:07:24 Re: Simple postgresql.conf wizard