From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Wei Weng <wengwei(at)alumni(dot)stevens-tech(dot)edu> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Extending Datatype |
Date: | 2003-02-14 12:38:48 |
Message-ID: | 200302141238.h1ECcmf02988@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Well, look in /contrib for some example data types. The job isn't
trivial. Can you explain how UNIQUEIDENTIFIER is different from SERIAL?
---------------------------------------------------------------------------
Wei Weng wrote:
> I need to use the UNIQUEIDENTIFIER. There are other concerns in the database
> design that makes using a serial type very inpractical.
>
> Is there easy example of writing a data type extension somewhere??
>
> Thanks
>
>
> Wei
>
> ----- Original Message -----
> From: "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>
> To: "Wei Weng" <wweng(at)kencast(dot)com>
> Cc: <pgsql-sql(at)postgresql(dot)org>
> Sent: Thursday, February 13, 2003 6:06 PM
> Subject: Re: [SQL] Extending Datatype
>
>
> >
> > Try the SERIAL data type. It uses sequences and DEFAULT. Read the FAQ.
> >
> > --------------------------------------------------------------------------
> -
> >
> > Wei Weng wrote:
> > > Where can I find a more detailed doc on how to write module for extended
> > > datatype? There isn't much about it on techdoc.postgresql.org.
> > >
> > > (I need to write one for UNIQUEIDENTIFIER.)
> > >
> > > Thanks!
> > >
> > >
> > > Wei
> > >
> > >
> > >
> > >
> > >
> > > ---------------------------(end of broadcast)---------------------------
> > > TIP 5: Have you checked our extensive FAQ?
> > >
> > > http://www.postgresql.org/users-lounge/docs/faq.html
> > >
> >
> > --
> > Bruce Momjian | http://candle.pha.pa.us
> > pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
> > + If your life is a hard drive, | 13 Roberts Road
> > + Christ can be your backup. | Newtown Square, Pennsylvania
> 19073
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 5: Have you checked our extensive FAQ?
> >
> > http://www.postgresql.org/users-lounge/docs/faq.html
> >
> >
>
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Tomasz Myrta | 2003-02-14 12:59:22 | Re: sub-query optimization |
Previous Message | Tomasz Myrta | 2003-02-14 12:24:45 | Re: sub-query optimization |