Re: Strange permission problem regarding pg_settings

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: Strange permission problem regarding pg_settings
Дата
Msg-id 3FD79281.6040007@joeconway.com
обсуждение исходный текст
Ответ на Re: Strange permission problem regarding pg_settings  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Strange permission problem regarding pg_settings  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom Lane wrote:
> Now, why does Florian see a permissions failure (which is really the
> *right* behavior) when we don't?  He didn't say exactly which PG version
> he was running, but I see a likely-related bug fix between 7.3.2 and
> 7.3.3:

That seems to be it:

# psql regression
Welcome to psql 7.3.2, 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' ;
ERROR:  pg_settings: permission denied

> This fix may need to be rethought.  I'm not sure though where is a clean
> place to plug in the UPDATE permissions check given that the rules for
> this case do not generate any UPDATE query.

Do you want me to take a look at this, or are you planning to?

Joe



В списке pgsql-general по дате отправления:

Предыдущее
От: Jean-Max Reymond
Дата:
Сообщение: datestyle in postgresql.conf, version 7.4
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Strange permission problem regarding pg_settings