Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRsEt-0001GQ-IZ for pgsql-sql@arkaria.postgresql.org; Sat, 18 May 2019 05:50:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hRsEq-00062g-1O for pgsql-sql@arkaria.postgresql.org; Sat, 18 May 2019 05:50:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRsEp-0005yy-NL for pgsql-sql@lists.postgresql.org; Sat, 18 May 2019 05:50:31 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hRsEm-0006RU-Dw for pgsql-sql@postgresql.org; Sat, 18 May 2019 05:50:30 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 91A2114199881 for ; Fri, 17 May 2019 22:50:26 -0700 (MST) Date: Fri, 17 May 2019 22:50:26 -0700 (MST) From: rajan To: pgsql-sql@postgresql.org Message-ID: <1558158626560-0.post@n3.nabble.com> In-Reply-To: <525.1558154817@sss.pgh.pa.us> References: <1558152796956-0.post@n3.nabble.com> <525.1558154817@sss.pgh.pa.us> Subject: Re: getting permission denied error for user2 while proper privileges are present MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, Thanks for the response. One more question. Please notice the lines where GRANT and ALTER DEFAULT PRIVILEGES are executed. Even though I am executing those statements as postgres user, when viewing the privileges the grantor is always the learner user. How is that possible? ----- -- Thanks, Rajan. -- Sent from: http://www.postgresql-archive.org/PostgreSQL-sql-f2142323.html