From: | Andreas 'ads' Scherbaum <adsmail(at)wars-nicht(dot)de> |
---|---|
To: | pgeu-general(at)postgresql(dot)org |
Subject: | Re: "could not stat file "base/17436/119145": Permission denied" when performing pg_database_size() on windows with 8.4.0 |
Date: | 2010-01-30 00:29:04 |
Message-ID: | 20100130012904.7e3222ae@platin.wars-nicht.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgeu-general |
Hello,
On Sat, 30 Jan 2010 00:12:54 +0000 Peter Geoghegan wrote:
> I have a Postgres 8.4.0 (I've been meaning to upgrade) server running
> on Windows Vista:
>
> Curiously, whenever I call pg_database_size, I get a cryptic error
> message:
>
> SELECT pg_size_pretty(pg_database_size('my_database'))
>
> ERROR: could not stat file "base/17436/119145": Permission denied
This is not really a PostgreSQL-problem. The permissions for this
file/directory (and probably some more) are incorrect. The database
user (usually named "postgres") must own this files.
> Why? What should I do, other than the obvious, upgrading to 8.4.2?
Fix the permissions.
Bye
--
Andreas 'ads' Scherbaum
German PostgreSQL User Group
European PostgreSQL User Group - Board of Directors
Volunteer Regional Contact, Germany - PostgreSQL Project
From | Date | Subject | |
---|---|---|---|
Next Message | Joshua D. Drake | 2010-01-30 00:29:06 | Re: "could not stat file "base/17436/119145": Permission denied" when performing pg_database_size() on windows with 8.4.0 |
Previous Message | Peter Geoghegan | 2010-01-30 00:12:54 | "could not stat file "base/17436/119145": Permission denied" when performing pg_database_size() on windows with 8.4.0 |