Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6e9w-00079K-1c for pgsql-general@arkaria.postgresql.org; Mon, 01 Feb 2021 18:42:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l6e9v-0001un-0M for pgsql-general@arkaria.postgresql.org; Mon, 01 Feb 2021 18:42:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6dQI-00082o-L1 for pgsql-general@lists.postgresql.org; Mon, 01 Feb 2021 17:55:38 +0000 Received: from portal-smtp-out.hot.ee ([194.126.101.125]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6dQG-0006Ze-UG for pgsql-general@postgresql.org; Mon, 01 Feb 2021 17:55:38 +0000 Received: from localhost (localhost [127.0.0.1]) by vm-hot-relay10.estpak.ee (Postfix) with ESMTP id 22CD4B8E; Mon, 1 Feb 2021 19:55:36 +0200 (EET) X-Virus-Scanned: Debian amavisd-new at vm-hot-relay10.estpak.ee Received: from portal-smtp-out.hot.ee ([127.0.0.1]) by localhost (vm-hot-relay10.estpak.ee [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lYvXlWXvGooh; Mon, 1 Feb 2021 19:55:33 +0200 (EET) Received: from mail.hot.ee (hot-relayhost1.estpak.ee [213.180.2.79]) by vm-hot-relay10.estpak.ee (Postfix) with ESMTP id E41261CDA; Mon, 1 Feb 2021 19:55:33 +0200 (EET) Subject: Re: permission denied for large object 200936761 To: Adrian Klaver , pgsql-general@postgresql.org References: <47c92baa-949b-92d1-c162-1f0d8348fb50@hot.ee> <2eee8862-ea29-3e9c-30ff-82ec7ad4d99f@aklaver.com> <08f90e7b-8d08-d46e-abb7-85dd68bc3078@hot.ee> <6e8bd48a-9c0b-e045-05ee-1cbe334b2bba@hot.ee> <0cf7c8fe-00fb-0998-d372-d5545234572f@aklaver.com> From: Andrus Message-ID: Date: Mon, 1 Feb 2021 19:55:28 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <0cf7c8fe-00fb-0998-d372-d5545234572f@aklaver.com> Content-Type: multipart/alternative; boundary="------------6E9E10F0AD44EF1CFAA79006" Content-Language: et List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------6E9E10F0AD44EF1CFAA79006 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hi! >Large objects exist independent of those. The important part of the above is lomowner. Use that oid to find the role that owns the objects here: /select rolname from pg_roles where oid = 30152 ; // / returns my role ,  clusteradmin . I have superuser rights: CREATE ROLE clusteradmin WITH   LOGIN   SUPERUSER   INHERIT   NOCREATEDB   NOCREATEROLE   NOREPLICATION: GRANT db1_owner, db2_owner, ... to  clusteradmin; It havent created any large objects. How to use this information to fix the issue ? Andrus. --------------6E9E10F0AD44EF1CFAA79006 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Hi!

>Large objects exist independent of those. The important part of the above is lomowner. Use that oid to find the role that owns the objects here:

select rolname from pg_roles where oid = 30152 ;

returns my role ,  clusteradmin . I have superuser rights:

CREATE ROLE clusteradmin WITH
  LOGIN
  SUPERUSER
  INHERIT
  NOCREATEDB
  NOCREATEROLE
  NOREPLICATION:

GRANT db1_owner, db2_owner, ... to  clusteradmin;

It havent created any large objects.

How to use this information to fix the issue ?

Andrus.
--------------6E9E10F0AD44EF1CFAA79006--