Re: Bug #787: Backup Files Output Constraints Before Functions - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Bug #787: Backup Files Output Constraints Before Functions
Date
Msg-id 7005.1033161000@sss.pgh.pa.us
Whole thread Raw
In response to Bug #787: Backup Files Output Constraints Before Functions  (pgsql-bugs@postgresql.org)
List pgsql-bugs
pgsql-bugs@postgresql.org writes:
> Would it be possible for pg_dump to do the right thing here?

Not real soon :-(.  It's possible that 7.4 pg_dump will be smart enough
to handle circular dependencies like this one.  The current pg_dump
doesn't even know there is a problem, much less have a strategy for
coping.

I assume you can't simply create the try_it() function before the table
that uses it?  (If you rewrote it as a plpgsql function, you probably
could do that, since the body of a PL function isn't checked when it's
defined.  Perhaps this can serve as a workaround until pg_dump gets
smarter about dependencies.)

            regards, tom lane

pgsql-bugs by date:

Previous
From: Adam Doligalski
Date:
Subject: Nie ma mnie w biurze
Next
From: Jean-Luc Lachance
Date:
Subject: Re: Nie ma mnie w biurze