Re: Foreign keys for non-default datatypes, redux
| От | Joshua D. Drake |
|---|---|
| Тема | Re: Foreign keys for non-default datatypes, redux |
| Дата | |
| Msg-id | 45CE42B1.2030708@commandprompt.com обсуждение исходный текст |
| Ответ на | Re: Foreign keys for non-default datatypes, redux (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: Foreign keys for non-default datatypes, redux
|
| Список | pgsql-hackers |
> After digging around in the code for awhile I realized that there's a
> potentially bigger backwards-compatibility issue here: if we make the
> RI triggers dependent on finding a pg_constraint entry, then foreign
> key constraints loaded from dumps from pre-7.3 databases will no longer
> work. Those dumps just contain "CREATE CONSTRAINT TRIGGER" commands
> which will not provide enough information. We can make the triggers
> throw errors suggesting that the user drop the triggers and perform
> ALTER TABLE ADD CONSTRAINT. Is that enough, or do we need to try
> harder?
I think it is reasonable to expect that we can not support 7.3 dumps in
that manner considering we are talking about 8.3 ;). We can't be
backward compatible forever.
Further in their right mind is trying to do a 24x7 shop on 7.3. They
could always dump to 8.1 and then to 8.3.
Joshua D. Drake
--
=== The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive PostgreSQL solutions since 1997 http://www.commandprompt.com/
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/
В списке pgsql-hackers по дате отправления: