In a large saucepan, saute the onion and olive oil over medium heat until the onions have softened. Add the tomatoes, juice and all. Stir and simmer for 4-5 minutes until the tomatoes have started to break down.
Add the tomato sauce, brown sugar, and pesto, and turn heat to low. Simmer, stirring occasionally, for 3-4 minutes until heated through.