From: Paul S <plabrh1@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: Using GUIDs
Date: Tue, 11 Jul 2006 22:40:03 -0400
Message-ID: <866624ef0607111940v649632deoac11e1d9cc7669e@mail.gmail.com> (raw)
In-Reply-To: <5A7B5AFA-539E-490C-B080-34DF349D555B@pervasive.com>
References: <449FE9AD.7010400@Spheron.com>
<5A7B5AFA-539E-490C-B080-34DF349D555B@pervasive.com>
I have implemented GUID's in an application that needed them. We needed
globally unique PK's and although Postgres did not offer them as a datatype,
we used C# to perform that function. The Postgres database attribute ended
up being a varchar(39). Not as performant as having Postgres natively do it
but it works. :) The good thing is that the GUID is calculated before the
insert into the database so it's actually using the middle tier's resources
to compute it. (ok, it's a small amount but it's nice that the DB didn't
have to pay that price)
Paul
On 6/27/06, Jim Nasby <jnasby@pervasive.com> wrote:
>
> On Jun 26, 2006, at 9:05 AM, Dennis Wagner wrote:
> > I'm currently thinking about using GUIDs as primary keys.
>
> Look on pgFoundry.org; I'm pretty sure there's some kind of UUID type
> there.
> --
> Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com
> Pervasive Software http://pervasive.com work: 512-231-6117
> vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: plabrh1@gmail.com
Subject: Re: Using GUIDs
In-Reply-To: <866624ef0607111940v649632deoac11e1d9cc7669e@mail.gmail.com>
References: <449FE9AD.7010400@Spheron.com> <5A7B5AFA-539E-490C-B080-34DF349D555B@pervasive.com> <866624ef0607111940v649632deoac11e1d9cc7669e@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox