| From: | Chris Browne <cbbrowne(at)acm(dot)org> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: UUID column as pimrary key? |
| Date: | 2011-01-04 21:11:14 |
| Message-ID: | 874o9o1ij1.fsf@cbbrowne.afilias-int.info |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
d(dot)wall(at)computer(dot)org (David Wall) writes:
> We're using UUID for primary keys in PG 8.4 without any issues. I
> have no real insights into the details or performance issues, but
> always figured it was stored as a binary 128-bit value, but with added
> benefits of being able to enter and view them using a standard string
> format. We don't sort them as they have no real meaning for us.
In principle, this might be a reason to want to do the long-outstanding
work on hash indexes; with UUIDs, it mayn't be useful to sort the
values, but you *do* want to be able to validate that they're unique.
--
output = ("cbbrowne" "@" "gmail.com")
http://www3.sympatico.ca/cbbrowne/
"Computers are like air conditioners: They stop working properly if
you open windows."
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dominik Żyła | 2011-01-04 21:28:23 | Re: Default to pager off |
| Previous Message | Michael Satterwhite | 2011-01-04 21:05:03 | Default to pager off |