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:28:05
Message-ID: 2763fb2a-5211-4205-b19f-ec0d3b37f683@z9g2000yqi.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 BJ Freeman 2009-06-29 02:19:33 another can't connect
Previous Message Arndt Lehmann 2009-06-29 01:27:58 Re: partitioning question -- how to guarantee uniqueness across partitions