Re: Default UUID in Postgres

From: Christophe <xof(at)thebuild(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Default UUID in Postgres
Date: 2008-07-09 23:43:22
Message-ID: 21F7F73D-5695-4052-9626-CD0DA044DBB6@thebuild.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Jul 9, 2008, at 4:32 PM, Swaminathan Saikumar wrote:

> Hello,
>
> I created a Postgres table with a UUID. I want the UUID to be
> populated by default.

PostgreSQL doesn't have built-in functions for generating UUIDs, but
there is a module in contrib that will do so:

http://www.postgresql.org/docs/current/static/datatype-uuid.html

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-07-10 00:19:18 Re: manual Installation for thread safety
Previous Message Iv Ray 2008-07-09 23:35:09 Re: MSSQL to PostgreSQL