Concept Flow - SELECT with PostgreSQL-specific features
Start: Write SELECT query
Parse query syntax
Check for PostgreSQL-specific features
Handle DISTINCT ON
Return first row per group
Handle RETURNING clause
Return affected rows after INSERT/UPDATE/DELETE
Handle FILTER clause
Apply condition to aggregate functions
Execute query
Return result set
The flow shows how PostgreSQL parses a SELECT query, checks for special features like DISTINCT ON, RETURNING, and FILTER, processes them, then executes and returns results.