Re: Changing the size of a varchar field

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Changing the size of a varchar field
Дата
Msg-id 1161.1083861653@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Changing the size of a varchar field  (Eric Ridge <ebr@tcdi.com>)
Ответы Re: Changing the size of a varchar field  (Eric Ridge <ebr@tcdi.com>)
Список pgsql-general
Eric Ridge <ebr@tcdi.com> writes:
> Using PG 7.3.x, how stupid is this:
>     UPDATE pg_attribute SET atttypmod=<new size + 4> WHERE ....;

It'll work okay for a varchar column (not char) at least as far as the
table itself is concerned.  I think there are some issues for views
referencing the column, possibly also indexes.

            regards, tom lane

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

Предыдущее
От: "Ed L."
Дата:
Сообщение: Re: select for update & lock contention
Следующее
От: Jerry LeVan
Дата:
Сообщение: Announce: PgBrowse-0.9