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 [EMAIL PROTECTED] | (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