Search Postgresql Archives

Re: how to: psql -U user --password password ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/07/2007 13:47, Stefan Zweig wrote:

i know already that there is a way to connect to a remote postgres
using psql with the options --host 123.123.123.1 --port 5432
--username --password

You can specify the username on the command line, but not the password: the --password option only ensures the psql will prompt for the password.

The usual thing, as I understand it, is to use a .pgpass file: have a look at the docs, here:

  http://www.postgresql.org/docs/8.2/static/libpq-pgpass.html

very large *.sql files to import) and more convenient to do the
import directly via psql instead of using jdbc/odbc.

Also, if the files you're importing were created by pg_dump, they'll contain various "backslash" commands that are psql-specific, so you *have* to re-import them via psql.

HTH,

Ray.

---------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@xxxxxx
---------------------------------------------------------------


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux