| От | Berend Tober |
|---|---|
| Тема | Re: Reordering columns in a table |
| Дата | |
| Msg-id | 43BEC8BD.2020908@seaworthysys.com обсуждение исходный текст |
| Ответ на | Re: Reordering columns in a table (Andreas Kretschmer <akretschmer@spamfence.net>) |
| Список | pgsql-general |
Andreas Kretschmer wrote: >John McCawley <nospam@hardgeus.com> schrieb: > > >>However, in the real world, ... >> >> > >...And i think, other systems do this: > >- begin >- create a new temp. table with the new order >- insert all values from the old table in the new temp. table >- drop the old table >- rename the temp. table to the old table name >- commit > >You can do the same, no problem. > > > Except for the details regarding dependent views and foreign key references... (as someone mentioned mentioned earlier!). And you probably wouldn't want to do that on an in-production system, I would think, although the transaction block prehaps provides appropriate protection. Regards, Berend Tober
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера