Updating pg_attribute to widen column

Поиск
Список
Период
Сортировка
От Justin Julicher
Тема Updating pg_attribute to widen column
Дата
Msg-id CAL2Ts-N4dKdQkh4YoeQEpOvphQLrJwFKcg-4AgcJd6mjxOocJA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Updating pg_attribute to widen column  ("Greg Sabino Mullane" <greg@turnstep.com>)
Список pgsql-general

Psql Version: 8.4

Hi,

 

We need to widen a column on a table with millions of rows and the only way to do this currently is to migrate the data from one column to another with a script and trigger.

 

I know how to do this via an update to pg_attribute which would incur the table scan penalty but I have a number of questions is – 

  • Does postgres pick up this change straight away?
  • Are there any caveats to my first question? 


thanks,

Justin 


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

Предыдущее
От: Gavan Schneider
Дата:
Сообщение: Re: youtube video on pgsql integrity
Следующее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: Updating pg_attribute to widen column