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 1l6gKe-0006oP-7H for pgsql-general@arkaria.postgresql.org; Mon, 01 Feb 2021 21:02:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l6gKc-0007am-R0 for pgsql-general@arkaria.postgresql.org; Mon, 01 Feb 2021 21:01:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6fU7-0004I2-Ey for pgsql-general@lists.postgresql.org; Mon, 01 Feb 2021 20:07:43 +0000 Received: from portal-smtp-out.hot.ee ([194.126.101.125]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6fU1-000093-IB for pgsql-general@postgresql.org; Mon, 01 Feb 2021 20:07:42 +0000 Received: from localhost (localhost [127.0.0.1]) by vm-hot-relay10.estpak.ee (Postfix) with ESMTP id 7FF9F1D5A; Mon, 1 Feb 2021 22:07:34 +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 mSbqvygN15ht; Mon, 1 Feb 2021 22:07:32 +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 497881D10; Mon, 1 Feb 2021 22:07:32 +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> <45dc661e-f277-566b-4c47-97b2f8710975@aklaver.com> From: Andrus Message-ID: Date: Mon, 1 Feb 2021 22:07:26 +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: <45dc661e-f277-566b-4c47-97b2f8710975@aklaver.com> Content-Type: multipart/alternative; boundary="------------2C78FE4644BB8FB00E9CA8A2" 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. --------------2C78FE4644BB8FB00E9CA8A2 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 ; // >> Not sure what the above is supposed to be doing? > I showed the user definition >> >> It havent created any large objects. > > What hasn't created large objects? I > >> >> How to use this information to fix the issue ? > > Do the pg_dump as user clusteradmin. This works. However I need to allow non-supoeruser to create backup also. How to do this ? Andrus. --------------2C78FE4644BB8FB00E9CA8A2 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 ; //

Not sure what the above is supposed to be doing?

I showed the user definition

It havent created any large objects.

What hasn't created large objects?
I


How to use this information to fix the issue ?

Do the pg_dump as user clusteradmin.

This works. However I need to allow non-supoeruser to create backup also. How to do this ?

Andrus.


--------------2C78FE4644BB8FB00E9CA8A2--