Re: constraint defaults still print

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: constraint defaults still print
Дата
Msg-id 20030119100852.Y12036-100000@houston.familyhealth.com.au
обсуждение исходный текст
Ответ на constraint defaults still print  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: constraint defaults still print  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
I vote for not showing 'NO ACTION', so long as it's the SQL standard
default...

Chris

On Sat, 18 Jan 2003, Bruce Momjian wrote:

> Remember how we made DEFERRABLE/DEFERRED not print if the constraint was
> the default.  Shouldn't we do the same for MATCH and ON UPDATE/ON DELETE
> sections of the constraint in pg_get_constraintdef()?
>
> Doing \d I see:
>
>     test=> \d sales
>               Table "public.sales"
>           Column       |  Type   | Modifiers
>     -------------------+---------+-----------
>      product_id        | integer | not null
>      store_id          | integer | not null
>      quantity_sold     | integer | not null
>      date_time_of_sale | date    | not null
>     Foreign Key constraints: $1 FOREIGN KEY (product_id) REFERENCES
>     products(product_id) ON UPDATE NO ACTION ON DELETE NO ACTION,
>                              $2 FOREIGN KEY (store_id) REFERENCES
>     stores(store_id) ON UPDATE NO ACTION ON DELETE NO ACTION
>
> If NO ACTION is the default, is there a need to print them?  This would
> also shorten pg_dump output.
>
> --
>   Bruce Momjian                        |  http://candle.pha.pa.us
>   pgman@candle.pha.pa.us               |  (610) 359-1001
>   +  If your life is a hard drive,     |  13 Roberts Road
>   +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Lamar Owen
Дата:
Сообщение: Re: Can we revisit the thought of PostgreSQL 7.2.4?
Следующее
От: "D. Hageman"
Дата:
Сообщение: Namespace/Table Visibility Behavior Issues