Re: Call for objections: revision of keyword classification

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Thomas Lockhart <lockhart(at)fourpalms(dot)org>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Call for objections: revision of keyword classification
Date: 2001-11-15 16:16:07
Message-ID: Pine.LNX.4.30.0111151631170.633-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Tom Lane writes:

> ColId is certainly the most important category for ordinary users, so
> I agree that division would be sufficient for most people's purposes.
> However ... seems like the point of having this documentation at all
> is for it to be complete and accurate. I'd vote for telling the whole
> truth, I think.

Okay, here's the new definition of truth then:

TypeFuncId => "non-reserved"
ColId => "non-reserved (cannot be function or type)"
func_name => "reserved (can be function)"
ColId => "reserved"

This can still be matched well against the SQL 9x columns.

But it gets worse... ;-)

I found that COALESCE, EXISTS, EXTRACT, NULLIF, POSITION, SUBSTRING, TRIM
can be moved from ColLabel to ColId. (This makes sense given the new
definition of ColId as above.) However, I *think* it should be possible
to use these tokens as type names if one were willing to refactor these
lists further. So there's possibly plenty of fun left in this area. ;-)

--
Peter Eisentraut peter_e(at)gmx(dot)net

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2001-11-15 16:16:21 Re: Call for objections: revision of keyword classification
Previous Message Peter Eisentraut 2001-11-15 16:15:48 Re: [DOCS] Use of 'now'

Browse pgsql-patches by date

  From Date Subject
Next Message Peter Eisentraut 2001-11-15 16:16:21 Re: Call for objections: revision of keyword classification
Previous Message Bruce Momjian 2001-11-15 16:14:46 Re: [HACKERS] Open Items (was: RE: [HACKERS] Beta going well)