Parser - keyword cathegory
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
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/
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