Re: best practice transitioning from one datatype to another
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: best practice transitioning from one datatype to another |
| Дата | |
| Msg-id | 7105.1247699147@sss.pgh.pa.us обсуждение |
| Ответ на | best practice transitioning from one datatype to another (CG <cgg007@yahoo.com>) |
| Ответы |
Re: best practice transitioning from one datatype to another
|
| Список | pgsql-general |
CG <cgg007@yahoo.com> writes:
> While transitioning from 8.1 to 8.4, I need to�transition to�the internal UUID type in place of the
contrib/uniqueidentifiermodule. I've built the database around uniqueidentifier, so nearly every table has one column
ofthat data type. It's going to be tedious to
> ALTER TABLE foo ALTER COLUMN bar SET DATA TYPE uuid;
> ...repeat 600 times...
> I'll�also have to drop�and reload the�views and the rules on tables. It'll be tedious even if the tables have no data
inthem.
> Can anyone recommend�a better/faster way to make the transition?
Couldn't you rename the type to uuid in the 8.1 database before you
dump?
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера