Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1flhhN-0002Ya-4W for pgsql-general@arkaria.postgresql.org; Fri, 03 Aug 2018 21:33:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1flhhK-00057l-Ll for pgsql-general@arkaria.postgresql.org; Fri, 03 Aug 2018 21:33:22 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1flhhK-00057e-A4 for pgsql-general@lists.postgresql.org; Fri, 03 Aug 2018 21:33:22 +0000 Received: from mta04.2.doruk.net.tr ([81.21.172.141] helo=mta04.doruk.net.tr) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1flhhG-0002FT-PJ for pgsql-general@postgresql.org; Fri, 03 Aug 2018 21:33:20 +0000 Received: from cmail19.webkontrol.doruk.net.tr ([212.58.6.99]) by mta04.doruk.net.tr with esmtp (Exim 4.86) (envelope-from ) id 1flhhB-0001yC-Jc for pgsql-general@postgresql.org; Sat, 04 Aug 2018 00:33:13 +0300 Received: from DESKTOPM80CG12 ([31.206.45.189]) by cmail19.webkontrol.doruk.net.tr (IceWarp 11.1.2.0) with ASMTP id 201808040033520243 for ; Sat, 04 Aug 2018 00:33:52 +0300 From: =?UTF-8?B?RXJ0YW4gS8O8w6fDvGtvxJ9sdQ==?= To: References: <00a801d42b6a$6cb81c80$46285580$@1nar.com.tr> In-Reply-To: Subject: RE: Eror while dropping a user Date: Sat, 4 Aug 2018 00:33:12 +0300 Message-ID: <001201d42b71$951cabd0$bf560370$@1nar.com.tr> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQKmHnpR+PvuCcxAuYENHAUA+6Ob8wGJ16Ozov5WeSA= Content-Language: tr List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > From: Alessandro Aste =20 > Sent: Saturday, August 4, 2018 12:02 AM > To: Ertan K=C3=BC=C3=A7=C3=BCko=C4=9Flu > Cc: pgsql-general@postgresql.org > Subject: Re: Eror while dropping a user > > You can run this query to itendify the relations owned by the users = you're not allowed to drop,=20 > just replace ('', 'username2' ..'userN' ) = with the your role names .=20 > Then, once you have identified the tables/objecst change the owner = like this:=20 I tried to run it on "postgres" database and "pars" database, schemas on = pars database, etc. All return empty results. Thanks anyway. Regards, Ertan