| От | John R Pierce |
|---|---|
| Тема | Re: Upgrade questions |
| Дата | |
| Msg-id | 4F5E683C.4090507@hogranch.com обсуждение исходный текст |
| Ответ на | Re: Upgrade questions (Tim Uckun <timuckun@gmail.com>) |
| Ответы |
Re: Upgrade questions
|
| Список | pgsql-general |
On 03/12/12 1:25 PM, Tim Uckun wrote: > create a new bigint field. > copy all the IDs to it. > index it in the background > at frequency of your choosing sync the id field to the new field to keep it up. > at a time of your choosing set the default for the new field to be > serial starting at max(id) > drop the ID field > rename the field to id if there's other tables that have FK references to this table's ID, that could be problematic. -- john r pierce N 37, W 122 santa cruz ca mid-left coast
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера