From: | Jan Wieck <JanWieck(at)Yahoo(dot)com> |
---|---|
To: | Michael Fuhr <mike(at)fuhr(dot)org> |
Cc: | Lee Harr <missive(at)hotmail(dot)com>, pgsql-general(at)postgresql(dot)org, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Subject: | Re: plpgsql constraint checked data fails to restore |
Date: | 2005-06-23 16:39:08 |
Message-ID: | 42BAE5AC.1090801@Yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Added pgsql-hackers
Added Bruce Momjian
On 6/23/2005 12:19 PM, Michael Fuhr wrote:
>> The question I have is how exactly you manage to get the trigger fired
>> when restoring the dump. By default, the dump created by pg_dump will
>> create the table, fill in the data and create the trigger(s) only after
>> that.
>
> Not true for CHECK constraints -- pg_dump creates them with the
> CREATE TABLE statement:
This is still true in 8.1's pg_dump, even though check constraints can
be added later. Even though it is bad practice to have functions that
rely on or even manipulate other objects in a CHECK constraint, I think
pg_dump should add the check constraints in the same manner as it does
triggers.
Bruce, do we have a TODO item for this?
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck(at)Yahoo(dot)com #
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Fein | 2005-06-23 17:00:00 | Re: How to compare the schemas ? |
Previous Message | DBTools Software | 2005-06-23 16:22:34 | Re: How to compare the schemas ? |
From | Date | Subject | |
---|---|---|---|
Next Message | Euler Taveira de Oliveira | 2005-06-23 16:57:01 | Re: The contrib hit list |
Previous Message | Michael Fuhr | 2005-06-23 16:19:39 | Re: plpgsql constraint checked data fails to restore |