From: Brad Nicholson <bnichols@ca.afilias.info>
To: Askar Zaidi <askar@mail.nplindia.ernet.in>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_dump on remote machine
Date: Fri, 08 Apr 2005 10:20:43 -0400
Message-ID: <4256933B.8090803@ca.afilias.info> (raw)
In-Reply-To: <20050408132127.M86625@mail.nplindia.ernet.in>
References: <20050408125139.DC4BD5AF6F5@svr4.postgresql.org>
<20050408132127.M86625@mail.nplindia.ernet.in>
Check the pg_hba.conf file to see if you have access to the database, as
user that you are trying to connect as, from the IP you are trying to
connect from.
I'll bet that you don't. Check you postgres error logs, and you should
see the refused connection. You might have to tweak the logging settings.
Also, the exact error you get would be a bit more helpful.
Askar Zaidi wrote:
>Hello,
>Iam trying to take a dump of my DB from one machine to another in this
>fashion:
>
>on the secondary database:
>
>pg_dump -b -h 172.16.1.20 (dbname) > /tmp/dump.dump
>
>my error is :
>could not connect to database etc...etc..
>
>although the file dump.dump in /tmp is created.(it's empty)
>
>I can access remote database on my secondary through phpPgAdmin.
>
>Any clues??
>
>Askar Zaidi
>Central Computer Facility,
>National Physical Laboratory,
>New Delhi, India
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
>
--
Brad Nicholson 416-673-4106
Database Administrator, Afilias Canada Corp.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: bnichols@ca.afilias.info, askar@mail.nplindia.ernet.in
Subject: Re: pg_dump on remote machine
In-Reply-To: <4256933B.8090803@ca.afilias.info>
References: <20050408125139.DC4BD5AF6F5@svr4.postgresql.org> <20050408132127.M86625@mail.nplindia.ernet.in> <4256933B.8090803@ca.afilias.info>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox