constraint defaults still print
От | Bruce Momjian |
---|---|
Тема | constraint defaults still print |
Дата | |
Msg-id | 200301182054.h0IKsAv21191@candle.pha.pa.us обсуждение исходный текст |
Ответы |
Re: constraint defaults still print
Namespace/Table Visibility Behavior Issues |
Список | pgsql-hackers |
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 nullForeign Key constraints: $1 FOREIGN KEY (product_id)REFERENCESproducts(product_id) ON UPDATE NO ACTION ON DELETE NO ACTION, $2 FOREIGN KEY(store_id) REFERENCESstores(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, Pennsylvania19073
В списке pgsql-hackers по дате отправления: