From: Vibhor Kumar <vibhor.aim@gmail.com>
To: Sandy Test <sandy@mcw.co.il>
Cc: pgsql-general@postgresql.org
Cc: pgsql-admin@postgresql.org
Subject: Re: FW: backup using pg_dump postgreSQL 8.3.8
Date: Wed, 9 Mar 2011 19:40:06 +0530
Message-ID: <1F229316-6442-4E01-8254-CDBF7B84485F@gmail.com> (raw)
In-Reply-To: <10E646CF2170984794256AC2DD2C065C6BA882@Mcw-BS-Mail.mpdc.mcw.co.il>
References: <10E646CF2170984794256AC2DD2C065C6BA882@Mcw-BS-Mail.mpdc.mcw.co.il>
On Mar 9, 2011, at 7:28 PM, Sandy Test wrote:
>
> We have postgreSQL 8.3.8 installed on a windows 8 server (64 bit).
>
> We want to be able to run a nightly backup using the pg_dump command.
> Unfortunately, even with the pg_hba.conf fix of adding host postgres … trust,
> It still asks for a password.
>
> 1. Is this a 64bit issue? If the server was 32bit, would it not ask for a password?
I haven;t seen issue with PG 8.3.8
Please share pg_hba.conf file entry.
> 2. Is there a way of running a dos script that would run the pg_dump providing a password when prompted?
Include following in dos script.
set PGPASSWORD=<passowrd>
Or you can use pgpass.conf file option.
> 3. Is there a way of running the pg_dump with a user that doesn't have a password?
For that user, you have to mention trust with hostname in pg_hba.conf
Thanks & Regards,
Vibhor Kumar
vibhor.aim@gmail.com
Blog:http://vibhork.blogspot.com
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: vibhor.aim@gmail.com, sandy@mcw.co.il, pgsql-general@postgresql.org
Subject: Re: FW: backup using pg_dump postgreSQL 8.3.8
In-Reply-To: <1F229316-6442-4E01-8254-CDBF7B84485F@gmail.com>
* 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