| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | andrew(at)pillette(dot)com |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: pg_dump and circular dependency |
| Date: | 2004-02-17 23:21:07 |
| Message-ID: | 18701.1077060067@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
andrew(at)pillette(dot)com writes:
> Table A has a CHECK constraint testing boolean function F.
> Function F has a SELECT from Table A.
> In my manual build script, I create the table, then the function, and then at the very end of the script to I do an ALTER TABLE ADD CHECK.
> I suppose I can replace the CHECK with an explicit trigger (that uses an exception) and then pg_dump will get the creation sequence correct. Is there another way?
In 7.4 you could create the function first using SET
check_function_bodies = false. 7.5 will have a proper solution...
pg_dump can now actually detect reference circularities and fix them
by using ALTER ...
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2004-02-17 23:35:32 | Re: String manipulation |
| Previous Message | scott.marlowe | 2004-02-17 23:19:10 | Re: Support. |