Re: [HACKERS] Opinion about macro for the uuid datatype.

2006-09-18 Thread Gevik Babakhani
On Mon, 2006-09-18 at 14:23 +0200, Peter Eisentraut wrote: > Am Montag, 18. September 2006 13:50 schrieb Gevik Babakhani: > > It was > > My question was, "Could you do this using a domain?". The possible answers > to > that are "Yes" and "No", neither of which appears below, nor does "domain".

Re: [HACKERS] Opinion about macro for the uuid datatype.

2006-09-18 Thread Peter Eisentraut
Am Montag, 18. September 2006 13:50 schrieb Gevik Babakhani: > It was My question was, "Could you do this using a domain?". The possible answers to that are "Yes" and "No", neither of which appears below, nor does "domain". > Gevik Babakhani <[EMAIL PROTECTED]> writes: > > I was wondering if I

Re: [HACKERS] Opinion about macro for the uuid datatype.

2006-09-18 Thread Gevik Babakhani
It was Gevik Babakhani <[EMAIL PROTECTED]> writes: > I was wondering if I should go ahead and add a macro datatype like the > SERIAL, only this time for the uuid. This assumes a fact not in evidence, which is that we're going to accept a uuid-generation function as part of core. AFAIK the only r

Re: [HACKERS] Opinion about macro for the uuid datatype.

2006-09-18 Thread Peter Eisentraut
Am Montag, 18. September 2006 13:28 schrieb Gevik Babakhani: > > Could you do this using a domain? > > Tom had a very good point about this. And that point was? -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)---

Re: [HACKERS] Opinion about macro for the uuid datatype.

2006-09-18 Thread Gevik Babakhani
On Mon, 2006-09-18 at 13:20 +0200, Peter Eisentraut wrote: > Am Sonntag, 17. September 2006 01:47 schrieb Gevik Babakhani: > > The development of the uuid datatype is yet in progress... > > I was wondering if I should go ahead and add a macro datatype like the > > SERIAL, only this time for the uui

Re: [HACKERS] Opinion about macro for the uuid datatype.

2006-09-18 Thread Peter Eisentraut
Am Sonntag, 17. September 2006 01:47 schrieb Gevik Babakhani: > The development of the uuid datatype is yet in progress... > I was wondering if I should go ahead and add a macro datatype like the > SERIAL, only this time for the uuid. Could you do this using a domain? -- Peter Eisentraut http://

Re: [HACKERS] Opinion about macro for the uuid datatype.

2006-09-17 Thread Gevik Babakhani
Understood, Thank you :) On Sat, 2006-09-16 at 21:23 -0400, Tom Lane wrote: > Gevik Babakhani <[EMAIL PROTECTED]> writes: > > I was wondering if I should go ahead and add a macro datatype like the > > SERIAL, only this time for the uuid. > > This assumes a fact not in evidence, which is that we'r

Re: [HACKERS] Opinion about macro for the uuid datatype.

2006-09-16 Thread Tom Lane
Gevik Babakhani <[EMAIL PROTECTED]> writes: > I was wondering if I should go ahead and add a macro datatype like the > SERIAL, only this time for the uuid. This assumes a fact not in evidence, which is that we're going to accept a uuid-generation function as part of core. AFAIK the only reasonabl

[HACKERS] Opinion about macro for the uuid datatype.

2006-09-16 Thread Gevik Babakhani
The development of the uuid datatype is yet in progress... I was wondering if I should go ahead and add a macro datatype like the SERIAL, only this time for the uuid. something like: create table tbl ( mypk SERIALGUID; ) which creates create table tbl ( mypk uuid default new_guid