Ticket #398 (new enhancement)
pgsql2shp should prompt for password if not supplied in command args
|Reported by:||mwtoews||Owned by:||mwtoews|
Presently, if no -P <password> is supplied to pgsql2shp, an error (depending on pg_hba.conf configurations) shows:
pgsql2shp dbname tablename fe_sendauth: no password supplied
It appears that the -P <password> is required, however this opens a security risk as the password is visible and in the command history.
This enhancement request is to mimic the behaviour of psql, whereby a prompt is shown if no password is supplied. A bonus request would be to use .pgpass or pgpass.conf for the password, if available.