Re: Strange permission problem regarding pg_settings

From: Joe Conway <mail(at)joeconway(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Florian G(dot) Pflug" <fgp(at)phlo(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: Strange permission problem regarding pg_settings
Date: 2003-12-10 17:27:27
Message-ID: 3FD7577F.8020604@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Tom Lane wrote:
> "Florian G. Pflug" <fgp(at)phlo(dot)org> writes:
>>As user testuser (connected to testdb) :
>>.) update pg_settings set setting='public' where name='search_path' ;
>>this gives "pg_settings: permission denied"
>
> Hm. Works fine here. What do you get from
>
> select relacl, relacl is null from pg_class where relname = 'pg_settings';

Works fine here too, on RH9:

Welcome to psql 7.3.5, the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help on internal slash commands
\g or terminate with semicolon to execute query
\q to quit

regression=# \c template1
You are now connected to database template1.
template1=# create user testuser password 'pw' nocreatedb nocreateuser;
CREATE USER
template1=# create database testdb owner testuser encoding 'utf-8';
CREATE DATABASE
template1=# \c testdb testuser
You are now connected to database testdb as user testuser.
testdb=> update pg_settings set setting='public' where name='search_path' ;
set_config
------------
public
(1 row)

testdb=> select relacl, relacl is null from pg_class where relname =
'pg_settings';
relacl | ?column?
--------+----------
{=r} | f
(1 row)

Joe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Marco van Tol 2003-12-10 18:13:25 Re: Disabling or forwarding external connections
Previous Message Florian G. Pflug 2003-12-10 17:08:41 Re: Strange permission problem regarding pg_settings

Browse pgsql-hackers by date

  From Date Subject
Next Message Jan Wieck 2003-12-10 18:04:39 Re: pljava revisited
Previous Message Florian G. Pflug 2003-12-10 17:08:41 Re: Strange permission problem regarding pg_settings