pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kenneth Marshall <ktm@rice.edu>
To: Trinath Somanchi <trinath.somanchi@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: UUID for Postgresql 8.4
Date: Wed, 21 Jul 2010 07:38:08 -0500
Message-ID: <20100721123808.GH27203@aart.is.rice.edu> (raw)
In-Reply-To: <AANLkTimGOZtxkCTX9Nc-1DC3GQRYLNWa8mE4l4P54Mi8@mail.gmail.com>
References: <AANLkTimGOZtxkCTX9Nc-1DC3GQRYLNWa8mE4l4P54Mi8@mail.gmail.com>

On Wed, Jul 21, 2010 at 05:49:53PM +0530, Trinath Somanchi wrote:
> Hi All,
> 
> I have a column in my Postgresql database tables which need UUID.
> 
> Is there any function in Pgsql for UUID generation. Please help me in this
> regard.
> 
> -- 
> Regards,
> ----------------------------------------------
> Trinath Somanchi,

Check the page about the UUID type in the manual:

http://www.postgresql.org/docs/8.4/interactive/datatype-uuid.html

It contains some suggestions for generating them, including the
contrib/uuid-ossp module:

http://www.postgresql.org/docs/8.4/interactive/uuid-ossp.html

Cheers,
Ken



view thread (4+ messages)

Message-ID: <20100721123808.GH27203@aart.is.rice.edu>
Permalink:  ../20100721123808.GH27203@aart.is.rice.edu/
Also on:    postgresql.org/message-id/20100721123808.GH27203@aart.is.rice.edu

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: ktm@rice.edu, trinath.somanchi@gmail.com
  Subject: Re: UUID for Postgresql 8.4
  In-Reply-To: <20100721123808.GH27203@aart.is.rice.edu>

* 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