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 1flhuE-0003Jo-E0 for pgsql-general@arkaria.postgresql.org; Fri, 03 Aug 2018 21:46:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1flhuC-0008Rm-DG for pgsql-general@arkaria.postgresql.org; Fri, 03 Aug 2018 21:46:40 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1flhuC-0008Rf-5Y for pgsql-general@lists.postgresql.org; Fri, 03 Aug 2018 21:46:40 +0000 Received: from mta04.1.doruk.net.tr ([81.21.172.140] helo=mta04.doruk.net.tr) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1flhu9-00089i-6t for pgsql-general@postgresql.org; Fri, 03 Aug 2018 21:46:39 +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 1flhu5-0004CY-PR for pgsql-general@postgresql.org; Sat, 04 Aug 2018 00:46:33 +0300 Received: from DESKTOPM80CG12 ([31.206.45.189]) by cmail19.webkontrol.doruk.net.tr (IceWarp 11.1.2.0) with ASMTP id 201808040047053690 for ; Sat, 04 Aug 2018 00:47:05 +0300 From: =?iso-8859-9?B?RXJ0YW4gS/zn/Gtv8Gx1?= To: References: <00a801d42b6a$6cb81c80$46285580$@1nar.com.tr> In-Reply-To: <00a801d42b6a$6cb81c80$46285580$@1nar.com.tr> Subject: RE: Eror while dropping a user Date: Sat, 4 Aug 2018 00:46:26 +0300 Message-ID: <001601d42b73$6e25a020$4a70e060$@1nar.com.tr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-9" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQKmHnpR+PvuCcxAuYENHAUA+6Ob86MKp54g Content-Language: tr List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > -----Original Message----- > From: Ertan K=FC=E7=FCko=F0lu =20 > Sent: Friday, August 3, 2018 11:42 PM > To: pgsql-general@postgresql.org > Subject: Eror while dropping a user > > Hello, > > Using PostgreSQL 9.6.9 on Linux amd64 platform. > > I have two users that I cannot drop from the system. I revoked all permissions from tables, sequences, functions. They do not own any = objects. I found a table named "data" in postres database's public schema. Owner = of that table is postgres user. That table do not have any relation with = these users that I failed to drop. It is probably a mistakenly created test = table. After I drop that table, these users dropped without any error. That is something weird to me. I am almost 100% sure that I did not give = any GRANT for these users out of "pars" database. Alessandro's provided = scipt did not return that table when I run it on postgres database and postgres.public schema. Anyway, I could clean up my users in the end. Thanks & regards, Ertan