What type of grammar is used for PostgreSQL analysis? Is it LR, LALR, LL or something else?
PostgreSQL parser based on yacc and lex. The parsers generated by yacc are LALR (1). You can read the postgres grammar here .