Re: pg_dump cannot connect when executing by a script

From: Luca Ferrari <fluca1978(at)infinito(dot)it>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_dump cannot connect when executing by a script
Date: 2010-05-25 12:49:55
Message-ID: 201005251449.55569.fluca1978@infinito.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tuesday 25 May 2010 01:13:40 pm A. Kretschmer's cat walking on the keyboard
wrote:
> Your unix-scket isn't in /tmp.
>
> Start psql -h localhost and type:
>
> show unix_socket_directory;
>
> This will show you the corrent path to the unix-socket. You can use that
> for pg_dump with option -h </path/to/the/socket-dir>

Not sure if I get it right: on the machine executing the script postgresql is
not installed, only the client is.
However, it seems to work specifying in the pg_dump the port to which the
script must connect: -p 5432. It is interesting to know why the psql command
is working fine even without such parameter and pg_dump is not.

Luca

In response to

Browse pgsql-general by date

  From Date Subject
Next Message ritas 2010-05-25 13:22:25 Re: can't install postgres 8.4 on windows 2003 server
Previous Message Massa, Harald Armin 2010-05-25 11:40:57 Re: can't install postgres 8.4 on windows 2003 server