Re: newid() in postgres

From: "Postgres User" <postgres(dot)developer(at)gmail(dot)com>
To: marcel(dot)beutner <m(dot)beutner(at)googlemail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: newid() in postgres
Date: 2007-04-07 19:25:36
Message-ID: b88c3460704071225p1d754d0eh59d11bbd1b155c2e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

You'll need to create a custom function in Postgres to support this,
which is fairly easy. It's been done before- do a search on Google:

http://www.hclausen.net/psql.php

On 5 Apr 2007 01:27:15 -0700, marcel.beutner <m(dot)beutner(at)googlemail(dot)com> wrote:
> Hello,
>
> Thanks a lot for your answers! But I don't need a sequence which only
> will be incremented. I need a _real_ GUID just as the newid()
> function. Is there no way to generate such a GUID?
>
> I need a real GUID because I use them further in my host app. And my
> host app relies on it.
>
>
> Thanks for your answers.
>
> Marcel
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Björn Lundin 2007-04-07 20:47:35 Re: Documenting PGSQL database.
Previous Message RPK 2007-04-07 19:07:44 Documenting PGSQL database.