FYI,
I was having some trouble with my computer being slow when having a bunch of FTP tables open, auto-importing from HEM and using FTTO, but I did a couple of really simple PostgreSQL optimizations that have made a huge difference:
1.)
Find your postgresql.conf file and open in notepad. Mine was in C:\Program Files\PostgreSQL\8.2\data
2.)
Find the 'shared_buffers' value. The default value is comically low, but a good value is 1/4 of your total memory. I set mine to 768MB as I have 4GB of RAM (of which a little more than 3GB actually can be used in non 64-bit systems).
3.)
Find the 'effective_cache_size' value. The default for this is also very low, but can be set to upward of 1/2 of your total memory. I set mine to 1536MB.
4.)
Find the 'redirect_stderr' value and change it to 'off', unless you have a specific reason for looking at log files. If you're like me, the HEM queries result it tons of log data being written out. I had 10MB being written out every 20 minutes. Not only does this eat up tons of disk space, but this will cause your system to be wasting time writing to disk for logs you'll likely never look at.
5.)
Restart either your computer or the PostgreSQL process from Start -> Control Panel -> Administrative Tools -> Services.
See '5-Minute Introduction to PostgreSQL Performance' for more info:
http://www.westnet.com/~gsmith/content/postgresql/pg-5minute.htm
Enjoy.