| От | Steve Atkins |
|---|---|
| Тема | Converting varchar() to text |
| Дата | |
| Msg-id | 20040915162913.GA10752@gp.word-to-the-wise.com обсуждение исходный текст |
| Ответы |
Re: Converting varchar() to text
|
| Список | pgsql-general |
Is there a safe way to convert varchar(n) to text, other than create a new column, update, delete column, rename? I have a number of databases that were built with varvhar(n) and which should have been done with text. They're in production, and I'd rather not take the downtime needed to convert some rather large tables - the bulk update hitting every row of the large table makes it effectively unvacuumable, and vacuum full requires locks that effectively shut down the entire system. They're the same format on disk, so I'm guessing that some diddling with pg_attribute may be possible. Does anyone have any experience doing this? Cheers, Steve
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера