4 ms·
> PostgreSQL (and maybe other SQL implementations; not sure!) has some smarts about detecting when an expression is used verbatim in a SQL query I think this o
by jamii 6y ago
> PostgreSQL (and maybe other SQL implementations; not sure!) has some smarts about detecting when an expression is used verbatim in a SQL query
I think this one is in the SQL 2016 spec. There's definitely a section about how to put the AST into a normal form to compare expressions for syntactic equality.
EDIT found it - https://news.ycombinator.com/item?id=22991487 https://news.ycombinator.com/item?id=22991487