Re: ERROR: permission denied for database control

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
Cc: "Huang, Suya *EXTERN*" <Suya(dot)Huang(at)au(dot)experian(dot)com>, "'pgsql-general General'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: ERROR: permission denied for database control
Date: 2014-05-07 14:13:27
Message-ID: 26814.1399472007@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at> writes:
> Suya Huang wrote:
>> --fails if try to get all db size in one sql
>> postgres=> SELECT current_date,pg_database_size(pg_database.datname) from pg_database;
>> ERROR: permission denied for database control

> It seems like you have a database called "control" for which user "test"
> has no connect privilege.

Yeah, this failure is unsurprising. But it looks like we forgot to
document the restriction :-(. I see a mention of it in the 8.3 release
notes, but there's nothing in the documentation of the functions
themselves. Will fix.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2014-05-07 14:15:24 Re: Server process crash - Segmentation fault
Previous Message Adrian Klaver 2014-05-07 14:03:25 Re: Server process crash - Segmentation fault