About
The PostgreSQL Syntax Reference skill provides deep access to the core PostgreSQL grammar (gram.y) and parser implementation. It is designed for developers building schema migration tools, custom SQL parsers, or complex database integrations that require absolute syntax precision. By cross-referencing internal source files like scan.l and parse_utilcmd.c, this skill allows users to understand exactly how PostgreSQL interprets SQL constructs, handles keyword precedence, and processes DDL statements, ensuring that generated SQL is always valid and native to the engine.