Process Flow - PostgresOperator for Postgres database queries
Define SQL query string
Create PostgresOperator with query and connection
Airflow schedules and triggers task
PostgresOperator connects to DB
Executes SQL query
Commits transaction if necessary
Task completes with success or failure
This flow shows how PostgresOperator runs a SQL query in Airflow: define query, create operator, Airflow runs it, connects to DB, executes query, and finishes.