PostgreSQL - Performance Tuning
A query with multiple hash joins and sorts runs slowly despite high
work_mem. The server has limited RAM and high load. What combined tuning approach can improve performance?