Parser - keyword cathegory

Started by Radek Strnadabout 17 years ago3 messages
#1Radek Strnad
radek.strnad@gmail.com

Hello,

I'm writing my bachelor thesis and I can't find anywhere what exactly means
the third parameter in ScanKeyword in pgsql/src/backend/parser/keywords.c -
specificly UNRESERVED_KEYWORD, RESERVED_KEYWORD, TYPE_FUNC_NAME_KEYWORD,
COL_NAME_KEYWORD. Could someone explain it to me? Thank you

Kind regards

Radek Strnad

In reply to: Radek Strnad (#1)
Re: Parser - keyword cathegory

Radek Strnad escreveu:

I'm writing my bachelor thesis and I can't find anywhere what exactly
means the third parameter in ScanKeyword in
pgsql/src/backend/parser/keywords.c - specificly UNRESERVED_KEYWORD,
RESERVED_KEYWORD, TYPE_FUNC_NAME_KEYWORD, COL_NAME_KEYWORD. Could
someone explain it to me? Thank you

It's only a category information. Take a look at (almost at the end of) gram.y
to understand what each category is.

--
Euler Taveira de Oliveira
http://www.timbira.com/

#3Heikki Linnakangas
heikki.linnakangas@enterprisedb.com
In reply to: Radek Strnad (#1)
Re: Parser - keyword cathegory

Radek Strnad wrote:

I'm writing my bachelor thesis and I can't find anywhere what exactly means
the third parameter in ScanKeyword in pgsql/src/backend/parser/keywords.c -
specificly UNRESERVED_KEYWORD, RESERVED_KEYWORD, TYPE_FUNC_NAME_KEYWORD,
COL_NAME_KEYWORD. Could someone explain it to me? Thank you

It indicates in what contexts the keyword acts as a reserved keyword, in
other words can't be used as a name for an object without quoting. See
the corresponding rules in gram.y.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com