Wednesday, July 9, 2008

Re: [GENERAL] Default UUID in Postgres

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

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

No comments: