Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YM0BU-0000h0-PB for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Feb 2015 20:16:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YM0BU-00042V-8m for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Feb 2015 20:16:24 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YM0BT-00042N-8m for pgsql-bugs@postgresql.org; Thu, 12 Feb 2015 20:16:23 +0000 Received: from mwork.nabble.com ([162.253.133.43]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YM0BL-00085E-JR for pgsql-bugs@postgresql.org; Thu, 12 Feb 2015 20:16:21 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mwork.nabble.com (Postfix) with ESMTP id 8426B13B682A for ; Thu, 12 Feb 2015 12:16:16 -0800 (PST) Date: Thu, 12 Feb 2015 13:16:14 -0700 (MST) From: David G Johnston To: pgsql-bugs@postgresql.org Message-ID: <1423772174344-5837720.post@n5.nabble.com> In-Reply-To: <20150212193420.2590.49423@wrigleys.postgresql.org> References: <20150212193420.2590.49423@wrigleys.postgresql.org> Subject: Re: BUG #12765: Postgresql ROLE dropped, but its not dropped from pg_roles MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.3 (/) 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 vivek.singh wrote > postgres=# ALTER ROLE user1 SET ROLE TO role1; This does not do what it is you think it does... In this statement the word "role" following SET is interpreted as an identifier, specifically a GUC/configuration-variable. It is not the command/keyword ROLE as it is in the first part (ALTER ROLE). See: http://www.postgresql.org/docs/9.4/static/sql-alterrole.html Custom user variables are allowed to be created and this is what you accomplished. You likely meant to issue: GRANT role1 TO user1; David J. -- View this message in context: http://postgresql.nabble.com/BUG-12765-Postgresql-ROLE-dropped-but-its-not-dropped-from-pg-roles-tp5837714p5837720.html Sent from the PostgreSQL - bugs mailing list archive at Nabble.com. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs