Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sLtc4-00HA07-3B for pgsql-general@arkaria.postgresql.org; Tue, 25 Jun 2024 00:00:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sLtc2-00CiaE-3A for pgsql-general@arkaria.postgresql.org; Tue, 25 Jun 2024 00:00:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sLtc1-00Cia5-8q for pgsql-general@lists.postgresql.org; Tue, 25 Jun 2024 00:00:42 +0000 Received: from mta-p5.oit.umn.edu ([134.84.196.205]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sLtby-002xvm-Og for pgsql-general@postgresql.org; Tue, 25 Jun 2024 00:00:40 +0000 Received: from localhost (unknown [127.0.0.1]) by mta-p5.oit.umn.edu (Postfix) with ESMTP id 4W7Q2Y5LKgz9vKZN for ; Tue, 25 Jun 2024 00:00:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at umn.edu Received: from mta-p5.oit.umn.edu ([127.0.0.1]) by localhost (mta-p5.oit.umn.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CPSeSAKAL8sl for ; Mon, 24 Jun 2024 19:00:37 -0500 (CDT) Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mta-p5.oit.umn.edu (Postfix) with ESMTPS id 4W7Q2Y34PGz9vKZL for ; Mon, 24 Jun 2024 19:00:37 -0500 (CDT) DMARC-Filter: OpenDMARC Filter v1.3.2 mta-p5.oit.umn.edu 4W7Q2Y34PGz9vKZL DKIM-Filter: OpenDKIM Filter v2.11.0 mta-p5.oit.umn.edu 4W7Q2Y34PGz9vKZL Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-2c7e48b9f80so5645829a91.0 for ; Mon, 24 Jun 2024 17:00:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=d.umn.edu; s=google; t=1719273636; x=1719878436; darn=postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=VEa7ETNY8rsAwfOL0CvOnPJmdmh+0FGNyxEkyDSjoAo=; b=LHRqyTCTqYWbTqR3JGqjw254jC/1GwhgKghNhQjRDgzXjbck+ohO0MraW0O5CTFpuM j9rFoaeX5Ah6nCqcoRpxkReZmy2oEbm90egGtqlh/NBUD+3zAlYAKG7GH3r2OYD1DEGS SthqWgh5h6xFt1bt4B8jaTOVQelSYYF6KLGwSggL0hAHtvXe6k55BDptSw0Ze3/FYKaX tCb6uS48krMEABNCIl1eAgEqrJnooZ/JkWaZKqEXa6jImTEVISFgYnJ3fE6qz+03HU7S yBGGJ68j0MsH1YOXa4JXeMz7xG/ABPnOJUX+h+0XjC1JHuCQMh67xLHVX1TKV3AErtc0 FIHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719273636; x=1719878436; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=VEa7ETNY8rsAwfOL0CvOnPJmdmh+0FGNyxEkyDSjoAo=; b=UTznNE/QLKuUu9AuwfbFedq3KkHFPFVwooFQy30ZNPCI2ahn4B6EppBHP6v8+8z8HZ +K1DYrFY10PrpUEnA3OgDjm0Sd09qfZMkSg+dc+GymQbUZnNbbnBWNTh296h4THYg6h1 XPLCIWyP3GCpqY3bQu+2oUh27b4zgtD20Fy52Q8570dGInmaQ/GJpHbKEcxwssXi84AG bCiKvawsYqo6lgW8KCZ34EaDpBZ2cVtqIn6kRLpocp84mBuctekQEaUhqQwaaiCE3/CS W0BX9pt3h6E96gbR3UmU3aiGsqjxE5GSDRxG5xmPJDBaipDQfn+YNFTGDcria26jr/gI Cw1w== X-Gm-Message-State: AOJu0YzanRnMkxWjTGuoRcKgGL+UNNhSibNpdYk9ZTPRGWLkVuwXYGPP rsL3toOlBsoQKOJhzQfrmUt5zKHrdAPTrTRDDS7JNAvTjXNtgkMOCUd85S14y4TUeVV/KOCtOrp 3dv38ndoolSTDW8nr49FjjuQIuXUUk6B1tWTTdh/RSClr4E9EW3PhjbeH2xtl6acz/Ka6E8r2KA Ayh1zIH0se5oiuARqzlUqSmuza+orjB5U6hzYppPTTO0vNGlKTUA== X-Received: by 2002:a17:90b:3a8b:b0:2c2:deda:8561 with SMTP id 98e67ed59e1d1-2c8506827d9mr5065479a91.41.1719273635054; Mon, 24 Jun 2024 17:00:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGkH2do34hMT//jURoMWQn/IYIdeHw18D9aU7yabuLwfoZja0L/Sr3HhCbzVvRfGUv5YnxAiu6n8bhECVLC938= X-Received: by 2002:a17:90b:3a8b:b0:2c2:deda:8561 with SMTP id 98e67ed59e1d1-2c8506827d9mr5065455a91.41.1719273634478; Mon, 24 Jun 2024 17:00:34 -0700 (PDT) MIME-Version: 1.0 From: Matt Zagrabelny Date: Mon, 24 Jun 2024 19:00:23 -0500 Message-ID: Subject: schema privileges and drop role To: "pgsql-general@postgresql.org >> PG-General Mailing List" Content-Type: multipart/alternative; boundary="000000000000414f69061bab965e" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000414f69061bab965e Content-Type: text/plain; charset="UTF-8" Greetings, I have a database that I recently changed the ownership for and now I am attempting to drop the previous owner of the database: test_db=# drop ROLE legacy_owner; ERROR: role "legacy_owner" cannot be dropped because some objects depend on it DETAIL: privileges for schema public I don't know where to look to find out what I need to alter to be able to remove the legacy role and internet searches came up fruitless. Does anyone have any hints or advice on where to look? Thanks for the help! -m --000000000000414f69061bab965e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Greetings,

I have a database= that I recently changed the ownership for and now I am attempting to drop = the previous owner of the database:

test_db=3D# dr= op ROLE legacy_owner;
ERROR: =C2=A0role "legacy_owner" cannot = be dropped because some objects depend on it
DETAIL: =C2=A0privileges fo= r schema public

I don't know where to look to = find out what I need to alter to be able to remove the legacy role and inte= rnet searches came up fruitless.

Does anyone h= ave any hints or advice on where to look?

Thanks f= or the help!

-m
--000000000000414f69061bab965e--