Re: [HACKERS] SERIAL type feature request

2005-12-07 Thread Zoltan Boszormenyi
Hi, Zoltan Boszormenyi írta: Jan Wieck írta: On 12/5/2005 1:03 PM, Zoltan Boszormenyi wrote: Jan Wieck írta: On 12/4/2005 5:10 PM, Zoltan Boszormenyi wrote: I found this in the SQL2003 draft: 4.14.7 Identity columns ... An identity column has a start value, an increment, a maximum

Re: [HACKERS] SERIAL type feature request

2005-12-05 Thread Zoltan Boszormenyi
Jan Wieck írta: On 12/4/2005 5:10 PM, Zoltan Boszormenyi wrote: I found this in the SQL2003 draft: 4.14.7 Identity columns ... An identity column has a start value, an increment, a maximum value, a minimum value, and a cycle option. ... The exact properties of a sequence. It would be a

Re: [HACKERS] SERIAL type feature request

2005-12-05 Thread Jan Wieck
On 12/5/2005 1:03 PM, Zoltan Boszormenyi wrote: Jan Wieck írta: On 12/4/2005 5:10 PM, Zoltan Boszormenyi wrote: I found this in the SQL2003 draft: 4.14.7 Identity columns ... An identity column has a start value, an increment, a maximum value, a minimum value, and a cycle option. ...

Re: [HACKERS] SERIAL type feature request

2005-12-05 Thread Zoltan Boszormenyi
Jan Wieck írta: On 12/5/2005 1:03 PM, Zoltan Boszormenyi wrote: Jan Wieck írta: On 12/4/2005 5:10 PM, Zoltan Boszormenyi wrote: I found this in the SQL2003 draft: 4.14.7 Identity columns ... An identity column has a start value, an increment, a maximum value, a minimum value, and a

Re: [HACKERS] SERIAL type feature request

2005-12-04 Thread Zoltan Boszormenyi
Andrew Dunstan írta: Zoltan Boszormenyi wrote: Hi! I would like to add an entry to PostgreSQL 8.2 TODO: - Extend SERIAL to a full-featured auto-incrementer type. I can't see this item on the TODO list at all. Where exactly did you find it? That's why I wanted it ADDed... ;-) Best

Re: [HACKERS] SERIAL type feature request

2005-12-04 Thread Zoltan Boszormenyi
Peter Eisentraut írta: Josh Berkus wrote: I believe that our SERIAL/SEQUENCE stuff is already in compliance with the SQL standard for sequences (in SQL03). Why would we change it? Because your belief is wrong, but Zoltan's proposal is not getting is closer. OK, what does the

Re: [HACKERS] SERIAL type feature request

2005-12-04 Thread Bruce Momjian
Zoltan Boszormenyi wrote: Peter Eisentraut ?rta: Josh Berkus wrote: I believe that our SERIAL/SEQUENCE stuff is already in compliance with the SQL standard for sequences (in SQL03). Why would we change it? Because your belief is wrong, but Zoltan's proposal is not getting

Re: [HACKERS] SERIAL type feature request

2005-12-04 Thread Andrew Dunstan
Zoltan Boszormenyi wrote: Andrew Dunstan írta: Zoltan Boszormenyi wrote: Hi! I would like to add an entry to PostgreSQL 8.2 TODO: - Extend SERIAL to a full-featured auto-incrementer type. I can't see this item on the TODO list at all. Where exactly did you find it? That's why I

Re: [HACKERS] SERIAL type feature request

2005-12-04 Thread Zoltan Boszormenyi
OK, I admit I haven't read the SQL standards on this matter. Tino Wildenhain írta: Am Samstag, den 03.12.2005, 22:23 +0100 schrieb Zoltan Boszormenyi: Hi! I would like to add an entry to PostgreSQL 8.2 TODO: - Extend SERIAL to a full-featured auto-incrementer type. To achieve this, the

Re: [HACKERS] SERIAL type feature request

2005-12-04 Thread Tino Wildenhain
Am Sonntag, den 04.12.2005, 08:52 +0100 schrieb Zoltan Boszormenyi: OK, I admit I haven't read the SQL standards on this matter. Tino Wildenhain írta: ... A SERIAL type has the assumption that its value starts at a low value (1) and is increasing. Or is there a type modifier keyword that

Re: [HACKERS] SERIAL type feature request

2005-12-04 Thread Zoltan Boszormenyi
Jan Wieck írta: On 12/3/2005 4:23 PM, Zoltan Boszormenyi wrote: Hi! I would like to add an entry to PostgreSQL 8.2 TODO: - Extend SERIAL to a full-featured auto-incrementer type. To achieve this, the following three requirements should be fulfilled: 1. The statement parser should be able

Re: [HACKERS] SERIAL type feature request

2005-12-04 Thread Andrew Dunstan
Zoltan Boszormenyi wrote: I found this in the SQL2003 draft: 4.14.7 Identity columns ... An identity column has a start value, an increment, a maximum value, a minimum value, and a cycle option. ... And that section says nothing at all about using 0 as a magic value. All it says

Re: [HACKERS] SERIAL type feature request

2005-12-04 Thread Jan Wieck
On 12/4/2005 5:10 PM, Zoltan Boszormenyi wrote: I found this in the SQL2003 draft: 4.14.7 Identity columns ... An identity column has a start value, an increment, a maximum value, a minimum value, and a cycle option. ... The exact properties of a sequence. It would be a good idea to be

Re: [HACKERS] SERIAL type feature request

2005-12-04 Thread Michael Glaesemann
On Dec 5, 2005, at 9:50 , Jan Wieck wrote: If we had to pick any magic value I would vote for skipping 666 in all sequence generators and use that. What about 13? Michael Glaesemann grzm myrealbox com ---(end of broadcast)--- TIP 3: Have

Re: [HACKERS] SERIAL type feature request

2005-12-04 Thread Christopher Kings-Lynne
I think nobody would object to implementing support for the SQL2003 syntax. Most of that would be providing all the values that will get forwarded into the internal sequence generation during CREATE TABLE. Someone also pointed out on IRC the other day that Oracle and DB2 list 'identity' as

[HACKERS] SERIAL type feature request

2005-12-03 Thread Zoltan Boszormenyi
Hi! I would like to add an entry to PostgreSQL 8.2 TODO: - Extend SERIAL to a full-featured auto-incrementer type. To achieve this, the following three requirements should be fulfilled: 1. The statement parser should be able to handle this: create table x ( id serial(N), ... ); and

Re: [HACKERS] SERIAL type feature request

2005-12-03 Thread Tino Wildenhain
Am Samstag, den 03.12.2005, 22:23 +0100 schrieb Zoltan Boszormenyi: Hi! I would like to add an entry to PostgreSQL 8.2 TODO: - Extend SERIAL to a full-featured auto-incrementer type. To achieve this, the following three requirements should be fulfilled: 1. The statement parser should be

Re: [HACKERS] SERIAL type feature request

2005-12-03 Thread Andrew Dunstan
Zoltan Boszormenyi wrote: Hi! I would like to add an entry to PostgreSQL 8.2 TODO: - Extend SERIAL to a full-featured auto-incrementer type. I can't see this item on the TODO list at all. Where exactly did you find it? cheers andrew ---(end of

Re: [HACKERS] SERIAL type feature request

2005-12-03 Thread Josh Berkus
Zoltan, I would like to add an entry to PostgreSQL 8.2 TODO: - Extend SERIAL to a full-featured auto-incrementer type. I believe that our SERIAL/SEQUENCE stuff is already in compliance with the SQL standard for sequences (in SQL03). Why would we change it? -- --Josh Josh Berkus Aglio

Re: [HACKERS] SERIAL type feature request

2005-12-03 Thread Peter Eisentraut
Josh Berkus wrote: I believe that our SERIAL/SEQUENCE stuff is already in compliance with the SQL standard for sequences (in SQL03). Why would we change it? Because your belief is wrong, but Zoltan's proposal is not getting is closer. -- Peter Eisentraut

Re: [HACKERS] SERIAL type feature request

2005-12-03 Thread Jan Wieck
On 12/3/2005 4:23 PM, Zoltan Boszormenyi wrote: Hi! I would like to add an entry to PostgreSQL 8.2 TODO: - Extend SERIAL to a full-featured auto-incrementer type. To achieve this, the following three requirements should be fulfilled: 1. The statement parser should be able to handle this: