Re: [GENERAL] alter table ?

Поиск
Список
Период
Сортировка
От Postgres DBA
Тема Re: [GENERAL] alter table ?
Дата
Msg-id Pine.BSF.4.02.9811130959340.27705-100000@nest.bistbn.com
обсуждение исходный текст
Ответ на alter table ?  (Kevin Heflin <kheflin@shreve.net>)
Ответы Re: [GENERAL] alter table ?  (Kevin Heflin <kheflin@shreve.net>)
Список pgsql-general
Yeah, that's true, but you can simply overcome this problem with following
query that you should issue right after "alter" query:
    update passwd set spamblock='TRUE';

Aleksey.

On Thu, 12 Nov 1998, Kevin Heflin wrote:

>
> I went to alter a table, to add a column like so:
>
> alter table passwd add column spamblock bool DEFAULT 'TRUE'
>
> this added the new column of type bool but did not make the default true.
>
> Any suggestions?
>
> Kevin
>
>
> --------------------------------------------------------------------
> Kevin Heflin          | ShreveNet, Inc.      | Ph:318.222.2638 x103
> VP/Mac Tech           | 333 Texas St #619    | FAX:318.221.6612
> kheflin@shreve.net    | Shreveport, LA 71101 | http://www.shreve.net
> --------------------------------------------------------------------
>
>
>


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

Предыдущее
От: Sven Hartrumpf
Дата:
Сообщение: PGSQL 6.4 and C++ Functions
Следующее
От: Jeroen Schaap
Дата:
Сообщение: Re: [GENERAL] Failing lo_import on RH 5.1 -- postgresql-6.3.2 (please help-I'm on my knees..)