Re: [PATCHES] Sequence usage patch - Mailing list pgsql-hackers

From Christopher Kings-Lynne
Subject Re: [PATCHES] Sequence usage patch
Date
Msg-id 06e201c324be$29753840$6500a8c0@fhp.internal
Whole thread Raw
Responses Re: [PATCHES] Sequence usage patch
List pgsql-hackers
(Moved to -hackers)

> Rod Taylor <rbt@rbt.ca> writes:
> > Are you ok with the DB2 and draft-spec syntax of NEXT VALUE FOR (where
> > value is not a reserved word)?  Or should I hold onto that until the
> > spec has gone through the final draft / release?
>
> By that time we'll have done the Oracle-style foo.nextval, and it'll
> become kind of a moot point ;-)

I actually like the NEXT VALUE FOR a lot more.  The reason is that the
Oracle syntax is very much an 'object.property' lookup, which we do nowhere
else in PostgreSQL.  In fact, it's actually a bit bizarre when you start
going database.schema.sequence.nextval, etc.

The NEXT VALUE FOR syntax would be more in keeping with our current sytacies
methinks...

Chris



pgsql-hackers by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: RBLs ... I'm tired of spam ...
Next
From: "Christopher Kings-Lynne"
Date:
Subject: Re: SIGSEGV on cvs tip/7.3.2