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 1l6e70-00072K-7n for pgsql-general@arkaria.postgresql.org; Mon, 01 Feb 2021 18:39:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l6e6T-0001He-BT for pgsql-general@arkaria.postgresql.org; Mon, 01 Feb 2021 18:39:13 +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 1l6c8V-0006Gj-Tp for pgsql-general@lists.postgresql.org; Mon, 01 Feb 2021 16:33:11 +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 1l6c8O-0005eu-V4 for pgsql-general@postgresql.org; Mon, 01 Feb 2021 16:33:10 +0000 Received: from localhost (localhost [127.0.0.1]) by vm-hot-relay10.estpak.ee (Postfix) with ESMTP id E6AB91D6E; Mon, 1 Feb 2021 18:33:01 +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 KaTiEdQmpiYX; Mon, 1 Feb 2021 18:32:59 +0200 (EET) Received: from mail.hot.ee (hot-relayhost3.estpak.ee [213.180.2.81]) by vm-hot-relay10.estpak.ee (Postfix) with ESMTP id B23AC1BCD; Mon, 1 Feb 2021 18:32:59 +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> From: Andrus Message-ID: <08f90e7b-8d08-d46e-abb7-85dd68bc3078@hot.ee> Date: Mon, 1 Feb 2021 18:32:54 +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: <2eee8862-ea29-3e9c-30ff-82ec7ad4d99f@aklaver.com> Content-Type: multipart/alternative; boundary="------------1856995D42F2CC4522BE58CB" 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. --------------1856995D42F2CC4522BE58CB Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hi! >> >> Database does not contain large objects. >> >> pg_dump starts to throw error >> >> ERROR:  permission denied for large object 200936761 > > Did you do the pg_dump as a superuser? No. pg_dump needs to be invoked by non-superuser also. It backs up two schemas, public and firma74 . -n public -n firma74 command line options are used. > > You can query that to see what is there. I would not go about deleting > until you find what the large objects are for. > select * from pg_largeobject returns empty table. Database has approx 50 schemas and many thousands of tables. Andrus. --------------1856995D42F2CC4522BE58CB Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Hi!

Database does not contain large objects.

pg_dump starts to throw error

ERROR:  permission denied for large object 200936761

Did you do the pg_dump as a superuser?

No.

pg_dump needs to be invoked by non-superuser also. It backs up two schemas, public and firma74 .

-n public -n firma74 

command line options are used.


You can query that to see what is there. I would not go about deleting until you find what the large objects are for.

select * from pg_largeobject

returns empty table.

Database has approx 50 schemas and many thousands of tables.

Andrus.

--------------1856995D42F2CC4522BE58CB--