Use psql; it provides all the command-line options you need.
--
Scott Ribe
scott_ribe@killerbytes.com http://www.killerbytes.com/
(303) 722-0567 voice
---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faq