| От | Laurenz Albe |
|---|---|
| Тема | Re: Change from BIGINT to INT in prod. |
| Дата | |
| Msg-id | eba1e522e6a0cf69b6bca6c36e45f6d101670c84.camel@cybertec.at обсуждение |
| Ответ на | Re: Change from BIGINT to INT in prod. ("David G. Johnston" <david.g.johnston@gmail.com>) |
| Список | pgsql-admin |
On Thu, 2020-11-05 at 11:23 -0700, David G. Johnston wrote: > > So when i try running alter table table_name alter column column_name type INT; , it is hanging and starts providinga lock on the table. It has to rewrite the table and needs an AccessExclusive lock. You have to suspend all concurrent activity on that table. > I'm not seeing the point of doing this specific conversion at all really Exactly; this exercise is not necessary. The few bytes you are saving are not worth the trouble. Yours, Laurenz Albe -- +43-670-6056265 CYBERTEC PostgreSQL International GmbH Gröhrmühlgasse 26, A-2700 Wiener Neustadt Web: https://www.cybertec-postgresql.com
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера