On Aug 8, 2007, at 11:13 AM, Gauthier, Dave wrote: Something like this: You may need to use -U to set a user, and there are a bunch of other useful flags to set the output format. There are also flags and environment variables you can set to set the host and port to connect to. Depending on how your access control permissions are setup you may need to get a password to psql, typically by using a ~/.pgpass file. Check the psql man page and the main postgresql docs for the gory details. Cheers, Steve |