Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WXkot-0006bM-BP for pgsql-bugs@arkaria.postgresql.org; Wed, 09 Apr 2014 05:13:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WXkos-0007Yt-MP for pgsql-bugs@arkaria.postgresql.org; Wed, 09 Apr 2014 05:13:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WXkor-0007Ym-N0 for pgsql-bugs@postgresql.org; Wed, 09 Apr 2014 05:13:05 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WXkop-0008QK-3y for pgsql-bugs@postgresql.org; Wed, 09 Apr 2014 05:13:05 +0000 MIME-Version: 1.0 Subject: BUG #9923: "reassign owned" does not change permissions grantor To: pgsql-bugs@postgresql.org From: bashtanov@imap.cc Date: Wed, 09 Apr 2014 05:12:46 +0000 Message-ID: <20140409051246.15796.35010@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.1 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 9923 Logged by: Alexey Bashtanov Email address: bashtanov@imap.cc PostgreSQL version: 9.3.1 Operating system: CentOS 6.4 Description: Hello! "Alter ... owner to ..." statement changes the permissions grantor but "reassign owned ..." does not. [ACTIONS] 1. create a type, give it some permissions. Get something like this: test_bash_20140408=# select (select rolname from pg_roles where oid = typowner), typacl from pg_type where oid = 'foo'::regtype; rolname | typacl ---------+--------- ro | {=U/ro} (1 row) 2. reassign owned by its owner to some other user: test_bash_20140408=# reassign owned by ro to test_ui; REASSIGN OWNED [EXPECTED] new permissions grantor is the new owner: test_bash_20140408=# select (select rolname from pg_roles where oid = typowner), typacl from pg_type where oid = 'foo'::regtype; rolname | typacl ---------+--------- test_ui | {=U/test_ui} (1 row) [RECIEVED] permissions grantor was left the same: test_bash_20140408=# select (select rolname from pg_roles where oid = typowner), typacl from pg_type where oid = 'foo'::regtype; rolname | typacl ---------+--------- test_ui | {=U/ro} (1 row) Additionally, these ACLs cannot be pg_restored after pg_dumped BTW is the expected behavior documented? I could not find this in docs. Regards, Alexey Bashtanov -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs