Question d’entretien chez Punch (CA)

How would you optimize a slow SQL query in PostgreSQL?