This is a really interesting idea. I had never considered this before.
This would allow you to write PostgreSQL queries that work against a flat file or a Postgres server. Am I understanding the potential benefit correctly?
If you are interested in that specifically, you may be a bit more interested in DuckDB’s growing support in this area: https://duckdb.org/2026/08/20/duckdb-20-peg-parser
If you are interested in that specifically, you may be a bit more interested in DuckDB’s growing support in this area: https://duckdb.org/2026/08/20/duckdb-20-peg-parser