8.0 Beta 1 // Environment Vars // .pgpass

From: "efesar (the kay)" <efesar(at)unm(dot)edu>
To: "Pgsql-Hackers-Win32(at)Postgresql(dot) Org" <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: 8.0 Beta 1 // Environment Vars // .pgpass
Date: 2004-08-12 01:39:45
Message-ID: NGBBKFMOILMAGDABPFEGIEAIADAB.efesar@unm.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers-win32 pgsql-patches


The 8.0 version does not acknowledge env vars like PGPASSWORD and seems to
ignore the contents of the .pgpass file.

When there is not a c:\documents and settings\postgres\.pgpass the
pg_restore program does not ask for a password but simply says this:

G:\dbarchive>C:\Progra~1\PostgreSQL\8.0-beta1\bin\pg_restore -O -d
blog -x -F c -h 127.0.0.1 -U postgres blogdb01

pg_restore: [archiver (db)] connection to database "blog" failed: FATAL:
Password authentication failed for user "postgres"

However when there is a .pgpass file, pg_restore asks for a password a la
the -W switch but ignores the password in the .pgpass file. I realize the
manual says the file will be ignored if it doesn't have the right
permissions. In XP, I set the ONLY user (no inheritance) as postgres and
gave it full read/write. I also set ownership to postgres. Still, it gets
ignored.

Ergo, I can't run any automated scripts for backing things up. Any
suggestions?

-kay
www.fearstudios.com <http://www.fearstudios.com/>
www.efesar.com <http://www.efesar.com/>
www.efesar.com/blog <http://www.efesar.com/blog>
www.burque.info <http://www.burque.info>

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004

In response to

Responses

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Tom Lane 2004-08-12 04:25:54 Re: 8.0 Beta 1 // Environment Vars // .pgpass
Previous Message Tom Lane 2004-08-11 23:35:17 Re: error moving table to tablespace (8.0 beta win32 )

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2004-08-12 02:23:50 Re: pg_dump 'die_on_errors'
Previous Message Greg Sabino Mullane 2004-08-12 01:22:39 Allow psql to work against non-tablespace servers (e.g. 7.4)