| От | Tom Lane |
|---|---|
| Тема | Re: Alter column / array |
| Дата | |
| Msg-id | 10481.1002818234@sss.pgh.pa.us обсуждение |
| Ответ на | Alter column / array (Rolf Lüttecke <rolf.luettecke@michael-telecom.de>) |
| Ответы |
Re: Alter column / array
|
| Список | pgsql-admin |
=?iso-8859-1?Q?Rolf_L=FCttecke?= <rolf.luettecke@michael-telecom.de> writes:
> I can't find out why the following command give different results:
ALTER TABLE ADD COLUMN doesn't support adding a default. (There is a
test in the code that's supposed to kick out an error message telling
you so, but it doesn't seem to be working. Need to look at that.)
You can use ALTER TABLE SET DEFAULT to add the default after you add
the column.
Hmm ... I wonder why ADD COLUMN doesn't just call the SET DEFAULT
routine to handle adding the default ...
regards, tom lane
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера