Re: Help with ADD COLUMN

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Help with ADD COLUMN
Дата
Msg-id 24319.1038119292@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Help with ADD COLUMN  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Список pgsql-hackers
"Christopher Kings-Lynne" <chriskl@familyhealth.com.au> writes:
> The one big programming difficulty I see is the process of running through
> all the existing tuples in the relation the column was added to and
> evaluating the default for each row.

Basically you wanna do an "UPDATE tab SET col = <default expr>".  I'd
suggest letting the existing machinery handle as much of that as
possible.
        regards, tom lane


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

Предыдущее
От: Masaru Sugawara
Дата:
Сообщение: Re: quote_ident and schemas (was Re: connectby with schema)
Следующее
От: Philip Warner
Дата:
Сообщение: Re: Help with ADD COLUMN