Skip site navigation (1) Skip section navigation (2)

Re: "could not stat file "base/17436/119145": Permission denied" when performing pg_database_size() on windows with 8.4.0

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 (view raw or flat)
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

In response to

pgeu-general by date

Next:From: Joshua D. DrakeDate: 2010-01-30 00:29:06
Subject: Re: "could not stat file "base/17436/119145": Permission denied" when performing pg_database_size() on windows with 8.4.0
Previous:From: Peter GeogheganDate: 2010-01-30 00:12:54
Subject: "could not stat file "base/17436/119145": Permission denied" when performing pg_database_size() on windows with 8.4.0

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group