Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

psql prompting for password. Can we suppress it?


  • From: "Pradeep Rai" <pradeepr(at)infotechsw(dot)com>
  • To: <pgsql-bugs(at)postgresql(dot)org>
  • Subject: psql prompting for password. Can we suppress it?
  • Date: Fri, 27 Jul 2007 15:48:33 +0530
  • Message-id: <000a01c7d037$7d271340$de0ac00a@xpwks8945> <text/plain>

Hello,
 
We are trying to perform bulk insert into PostGre database with the help of
a text file (containing n INSERT statements), and then invoking psql command
from a batch file.
 
"psql -d <database name> -f <file-name.sql> -h <server-ip> -U <username>"
 
The issue is that the psql command window prompts for the password. Have you
got any idea how to suppress it? 
 
Thanks in advance.
 
Best Regards,
Pradeep Rai
(New Delhi, India)


Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group