From: | Jorge Godoy <jgodoy(at)gmail(dot)com> |
---|---|
To: | Sean Hsien <sean(dot)hsien(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: serial columns with replication/cluster |
Date: | 2010-02-04 10:47:40 |
Message-ID: | 175c742d1002040247u40caa5bcn479be043da79bf32@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)gmail(dot)com>
On Wed, Feb 3, 2010 at 23:21, Sean Hsien <sean(dot)hsien(at)gmail(dot)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(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
From | Date | Subject | |
---|---|---|---|
Next Message | Alban Hertroys | 2010-02-04 14:07:48 | Literals in foreign key definitions |
Previous Message | Jignesh Shah | 2010-02-04 10:30:30 | Setting permissions to access schema and language |