Re: Fixing a too long column value in a before insert trigger or rule

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Fixing a too long column value in a before insert trigger or rule
Дата
Msg-id 3354.1115819064@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Fixing a too long column value in a before insert trigger or rule  (Csaba Nagy <nagy@ecircle-ag.com>)
Ответы Re: Fixing a too long column value in a before insert  (Csaba Nagy <nagy@ecircle-ag.com>)
Список pgsql-general
Csaba Nagy <nagy@ecircle-ag.com> writes:
> We have a situation where a varchar column was limited to a too small
> maximum length in the design phase... shit happens, we will fix our db
> schema in our next database downtime or software version deployment,
> whichever comes first (we are using 7.4 and on the fly column type
> change is only from 8.0 on I guess).

Why don't you just hack the column's atttypmod?  See the archives
(and practice on a test database ;-))

            regards, tom lane

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

Предыдущее
От: Thomas F.O'Connell
Дата:
Сообщение: Re: SECURITY RELEASES: 7.2.8 - 7.3.10 - 7.4.8 - 8.0.3
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PERFORM] "Hash index" vs. "b-tree index" (PostgreSQL