From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | jody <jody(dot)xha(at)gmail(dot)com> |
Cc: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: db dump from php |
Date: | 2013-01-06 21:34:03 |
Message-ID: | 7056.1357508043@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
jody <jody(dot)xha(at)gmail(dot)com> writes:
> I have a problem when creating a db dump from a php script in a html page.
> This used to work in previous PostgreSQL versions, but now (v, 9.1.5)
> it fails, and i have no idea why.
It might help to look in the postgres server's log to see if there are
any related messages. Based on the described symptoms I'm guessing a
user authentication failure, possibly related to the fact that the
dump is running as whatever-user-owns-the-webserver-process rather than
yourself. If it worked before, that probably means you had the older
server configured differently for authentication --- see pg_hba.conf
and related files.
Note in particular that "peer" and "ident" auth modes don't care about
password files, and instead directly check which OS user the client
program is running as ...
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Christian Hammers | 2013-01-07 09:37:03 | Re: db dump from php |
Previous Message | jody | 2013-01-06 13:50:50 | db dump from php |