DuckDB v2.0: Your Database Deserves a Better Parser
Summary
DuckDB is replacing its PostgreSQL-derived SQL parser with a PEG-based parser in v2.0, enabling easier evolution and runtime extensibility through a dedicated grammar and extension API. The post covers how PEGs avoid typical parser conflicts, introduces DuckSQL dialect concepts, and explains how extensions can add syntax while reusing existing DuckDB parsing and AST machinery.