Re: [GENERAL] REASSIGN OWNED simply doesn't work

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: [GENERAL] REASSIGN OWNED simply doesn't work
Дата
Msg-id 20171016220208.ieyxzk4n27jdh2zi@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: [GENERAL] REASSIGN OWNED simply doesn't work  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-general
David G. Johnston wrote:

> ​You could at least fix the documentation bug since this superuser-only
> restriction doesn't show up and is in fact contradicted by the sentence
> ​"REASSIGN OWNED requires privileges on both the source role(s) and the
> target role."  The error message that comes back seems like it could be
> improved as well.

alvherre=# create role owner1;
CREATE ROLE
alvherre=# create role owner2;
CREATE ROLE
alvherre=# create role sam login;
CREATE ROLE
alvherre=# grant owner1 to sam;
GRANT ROLE
alvherre=# grant owner2 to sam;
GRANT ROLE
alvherre=# set session authorization owner1;
SET
alvherre=> create table owner1_table ();
CREATE TABLE
alvherre=> \q
RESET

$ psql alvherre -U sam

alvherre=> reassign owned by owner1 to owner2;
REASSIGN OWNED
alvherre=> \d          Listado de relacionesEsquema │    Nombre    │ Tipo  │ Dueño  
─────────┼──────────────┼───────┼────────public  │ owner1_table │ tabla │ owner2


> The word "privileges" there seems odd too, wouldn't "membership" be more
> appropriate?
> 
> https://www.postgresql.org/docs/10/static/sql-reassign-owned.html

I can change that.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

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

Предыдущее
От: Sam Gendler
Дата:
Сообщение: Re: [GENERAL] REASSIGN OWNED simply doesn't work
Следующее
От: Tatsuo Ishii
Дата:
Сообщение: [GENERAL] PGConf.ASIA and VISA