Increase column width only if it is different

Поиск
Список
Период
Сортировка
От Andrus
Тема Increase column width only if it is different
Дата
Msg-id ggmmb4$25bg$1@news.hub.org
обсуждение исходный текст
Список pgsql-general
I have statements in db upgrade script like

ALTER TABLE mytbl ALTER mycol TYPE CHAR(240)

This takes 80 seconds if table contains 9000 rows even if mycol type is
already 240 characters.

How to check in sql or in pgsql and run this statement only of mycol width
is not 240 characters ?

Andrus.


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

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Re: Using postgres.log file for replication
Следующее
От: Ioana Danes
Дата:
Сообщение: Re: Using postgres.log file for replication