Re: Three weeks left until feature freeze

From: Zoltan Boszormenyi <zboszor(at)dunaweb(dot)hu>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: Three weeks left until feature freeze
Date: 2006-07-30 14:17:52
Message-ID: 44CCBF90.20200@dunaweb.hu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Tom Lane írta:
> Zoltan Boszormenyi <zboszor(at)dunaweb(dot)hu> writes:
>
>> I am working on adding a new column contraint,
>> namely the GENERATED [ALWAYS | BY DEFAULT ] AS
>> [ IDENTITY ( sequence_options ) | ( expression )]
>>
>
> Doesn't this still have the issue that we're taking over spec-defined
> syntax to represent behavior that does not quite match the spec-defined
> semantics? It's not clear to me how closely tied this syntax is to
> NEXT VALUE FOR, but if it's got any of the latter's action-at-a-distance
> subtleties then I think we ought to leave well enough alone till we have
> a solution for that.
>
> regards, tom lane
>

Sorry for not answering earlier, I was on a holiday.
I read again sections 6.13 and 9.21 about NEXT
VALUE FOR and generation of the next value of
a sequence generator, respectively. If I see it right,
neither of them require the other one.

The IDENTITY COLUMN syntax in section 11.4
only mentions section 9.21. Section 14.8 about
INSERT statement does not even mention it,
only refers to "default clause" in section 11.5.
And that also doesn't say anything about neither
NEXT VALUE FOR nor next value generation of
a sequence.

And I saw comments in the PostgreSQL
documentation that goes like this:
"Standard doesn't specify so we are conforming."
Hint, hint. ;-)

I think the IDENTITY COLUMN (and GENERATED
ALWAYS AS) can stand on its own without
NEXT VALUE FOR.

Best regards,
Zoltán Böszörményi

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-07-30 15:27:33 Re: New variable server_version_num
Previous Message Stefan Kaltenbrunner 2006-07-30 08:03:25 Re: Going for "all green" buildfarm results