Re: wrong message on REASSIGN OWNED

From: Jaime Casanova <jaime(at)2ndquadrant(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: wrong message on REASSIGN OWNED
Date: 2011-06-13 06:41:10
Message-ID: BANLkTi=mrd6BE9dwPfoQg_pfNBi8j_tijA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Jun 11, 2011 at 8:01 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>
> "can't reassign objects owned by %s because this user is internal to
> the database system" ?
>

that message is not that clear... it seems to imply i can't reassign
any object from that user...

btw, i'm allowed to use ALTER TABLE to assign a new owner (even an
unprivileged one) to a system catalog, probably that's a bug.

db=# create role unprivileged_user login;
CREATE ROLE
db=# alter table pg_class owner to unprivileged_user ;
ALTER TABLE
db=# \dt pg_class
List of relations
Schema | Name | Type | Owner
------------+----------+-------+-------------------
pg_catalog | pg_class | table | unprivileged_user
(1 row)

--
Jaime Casanova         www.2ndQuadrant.com
Professional PostgreSQL: Soporte 24x7 y capacitación

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Florian Pflug 2011-06-13 07:01:45 Re: Boolean operators without commutators vs. ALL/ANY
Previous Message Shigeru Hanada 2011-06-13 05:34:25 Re: FOREIGN TABLE doc fix