WOW! I was unaware or M-x sql-postgres. That's extremely nice Vinod. Thanks! Is there something similar for Oracle?
Also, do you know how to make it so readline can be used within this psql process running in Emacs (so that up arrow gives me the last command)?