Re: [HACKERS] Notation for nextval() (was Re: Several small patches) - Mailing list pgsql-hackers

From Don Baccus
Subject Re: [HACKERS] Notation for nextval() (was Re: Several small patches)
Date
Msg-id 3.0.1.32.19991216183846.010b4940@mail.pacifier.com
Whole thread Raw
In response to Notation for nextval() (was Re: Several small patches)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
At 08:35 PM 12/16/99 -0500, Tom Lane wrote:

>presumably I don't want a join against the sequence foo, but I am not
>sure that this will be clear either to a human reader or to the machine.

I haven't personally heard of any human readers of Oracle SQL getting
confused by this notation... :)

On the other hand, I think nextval(foo) makes more sense, it's a
function operating on the sequence foo, not part of foo.  nextval('foo')
is just bizarre, though it's clear and I can't say I worry much about
it now that I'm used to it!

In the porting-from-Oracle project I'm working on, we're just
regsub'ing all foo.nextval's into nextval('foo').



- Don Baccus, Portland OR <dhogaza@pacifier.com> Nature photos, on-line guides, Pacific Northwest Rare Bird Alert
Serviceand other goodies at http://donb.photo.net.
 


pgsql-hackers by date:

Previous
From: Don Baccus
Date:
Subject: Re: [HACKERS] ordering RH6.1
Next
From: Lamar Owen
Date:
Subject: Re: [HACKERS] ordering RH6.1