Re: partitioning question -- how to guarantee uniqueness across partitions

From: Arndt Lehmann <arndt(dot)lehmann(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: partitioning question -- how to guarantee uniqueness across partitions
Date: 2009-06-29 01:27:58
Message-ID: f33ed165-de6d-4e4c-bb6f-ac458c1fb67f@d32g2000yqh.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Hi Whit,
>
> you could consider using GUIDs instead of Integer for primary keys.
> Here is a nice blog post explaining how to do this in Rails:
>    http://ariejan.net/2008/08/12/ruby-on-rails-uuid-as-your-activerecord...
>
> Best Regards,
>   Arndt Lehmann

just a note: As per above blog post, the GUID are generated using a
Ruby module.
PostgreSQL actually comes with a baked in UUID column type. That
probably will be a more efficient solution.

Regards,
Arndt

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Arndt Lehmann 2009-06-29 01:28:05 Re: partitioning question -- how to guarantee uniqueness across partitions
Previous Message Arndt Lehmann 2009-06-29 01:16:49 Re: partitioning question -- how to guarantee uniqueness across partitions