BUG #5390: pg_dump does not check/include additional schema dependencies when writing schema/search path

From: "Timothy Seever" <tim(dot)seever(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #5390: pg_dump does not check/include additional schema dependencies when writing schema/search path
Date: 2010-03-25 20:30:20
Message-ID: 201003252030.o2PKUKot032893@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 5390
Logged by: Timothy Seever
Email address: tim(dot)seever(at)gmail(dot)com
PostgreSQL version: 8.3.5, others
Operating system: Linux/RHEL5.2
Description: pg_dump does not check/include additional schema
dependencies when writing schema/search path
Details:

To reproduce:

1. Create schema A
2. Create schema B
3. Create function in schema A which depends on something in schema B
without specifying it (i.e. the connected user has B included in the
search_path, and the function A.xyz() has something like val := yyz();
where yyz is actually B.yyz.
4. This works properly in place due to the search path... however upon
dumping/restoring, pg_dump only specifies the single schema+public before
each section, so it will fail to add A.xyz()/view/etc leading to cascaded
missing items.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Victor Vargas 2010-03-25 20:54:11 BUG #5391: coding issues displaying server messages
Previous Message Timothy Seever 2010-03-25 20:23:38 BUG #5389: Column order on dump/reload broken from defined setof function