Re: serial columns with replication/cluster

Поиск
Список
Период
Сортировка
От Jorge Godoy
Тема Re: serial columns with replication/cluster
Дата
Msg-id 175c742d1002040247u40caa5bcn479be043da79bf32@mail.gmail.com
обсуждение исходный текст
Ответ на serial columns with replication/cluster  (Sean Hsien <sean.hsien@gmail.com>)
Список pgsql-general
Sean,

take a look at UUID type.  It might suit you better than serial.

Changing the increment also works, but puts a lot of restrictions on you (such as planning to prevent collision, having to change the increment on several nodes when adding a new node, etc.).


Regards,
--
Jorge Godoy     <jgodoy@gmail.com>


On Wed, Feb 3, 2010 at 23:21, Sean Hsien <sean.hsien@gmail.com> wrote:
Dear all,

At work we're considering using postgres in a cluster. But I am
wondering what implications does multi-master write replication have
on auto-incrementing serial columns?
E.g. Do we need to fiddle with the increment amount depending on the
number of nodes we have?

--
Thanks and regards,
Sean

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

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

Предыдущее
От: Jignesh Shah
Дата:
Сообщение: Setting permissions to access schema and language
Следующее
От: Alban Hertroys
Дата:
Сообщение: Literals in foreign key definitions