Load SQL dump in PostgreSQL without the password dependancy

Posted by Cédric Girard on Stack Overflow See other posts from Stack Overflow or by Cédric Girard
Published on 2010-05-12T16:13:31Z Indexed on 2010/05/13 1:04 UTC
Read the original article Hit count: 451

Filed under:
|
|

Hi,

I want my unit tests suite to load a SQL file in my database. I use a command like

"C:\Program Files\PostgreSQL\8.3\bin"\psql --host 127.0.0.1 --dbname unitTests --file C:\ZendStd\www\voo4\trunk\resources\sql\base_test_projectx.pg.sql --username postgres 2>&1

It run fine in command line, but need me to have a pgpass.conf Since I need to run unit tests suite on each of development PC, and on development server I want to simplify the deployment process. Is there any command line wich include password?

Thanks, Cédric

© Stack Overflow or respective owner

Related posts about postgresql

Related posts about loading