From: | Michael Paquier <michael(dot)paquier(at)gmail(dot)com> |
---|---|
To: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
Cc: | Euler Taveira <euler(at)timbira(dot)com(dot)br>, Robins Tharakan <tharakan(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Accurate list of Keywords / Datatypes? |
Date: | 2016-05-11 02:50:05 |
Message-ID: | CAB7nPqS2OXGzPpm4jAmv7giOEdY7BVzx=kpOmRdnc6B9ZqOG9A@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, May 11, 2016 at 10:22 AM, David G. Johnston
<david(dot)g(dot)johnston(at)gmail(dot)com> wrote:
> On Saturday, May 7, 2016, Euler Taveira <euler(at)timbira(dot)com(dot)br> wrote:
>>
>> On 07-05-2016 22:53, Robins Tharakan wrote:
>> > Should I be looking somewhere else? Parse keywords from Git Source file
>> > (if so where)? Parse PG Documentation?
>> >
>> src/include/parser/kwlist.h
>>
>>
>
> http://www.postgresql.org/docs/9.5/interactive/functions-info.html
>
> SELECT * FROM pg_get_keywords();
>
> I don't know how the docs, this function, and the source code relate to each
> other.
ScanKeywords is fed directly from kwlist.h, have for example a look at
the top of src/common/keywords.c. Then NumScanKeywords is calculated
from the list generated. pg_get_keywords is at the end making use of
those structures generated.
--
Michael
From | Date | Subject | |
---|---|---|---|
Next Message | Euler Taveira | 2016-05-11 02:51:44 | Re: Accurate list of Keywords / Datatypes? |
Previous Message | Masahiko Sawada | 2016-05-11 02:40:23 | Re: Reviewing freeze map code |