how to adjust auto increment id offset?

Поиск
Список
Период
Сортировка
От Yan Chunlu
Тема how to adjust auto increment id offset?
Дата
Msg-id CAOA66tHb1kyy7ncpBNvmBXGPAxUzW4keR3JFtq4WSG0XSaW3DA@mail.gmail.com
обсуждение исходный текст
Ответы Re: how to adjust auto increment id offset?  (Bèrto ëd Sèra <berto.d.sera@gmail.com>)
Re: how to adjust auto increment id offset?  (Andrew Sullivan <ajs@crankycanuck.ca>)
Список pgsql-general
I would like to implement two master db with even-odd id sharding.   in mysql it is fairly easy by using the configuration:

auto_increment_offset = 1
auto_increment_increment = 2


but I have searched a lot didn't find anything related to this, some users doing this via trigger like "rubyrep". 

is there an easy way to do this?  thanks!

В списке pgsql-general по дате отправления:

Предыдущее
От:
Дата:
Сообщение: Re: Client SQL Tool
Следующее
От: Bèrto ëd Sèra
Дата:
Сообщение: Re: how to adjust auto increment id offset?