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 1l6bs2-0000iR-RE for pgsql-general@arkaria.postgresql.org; Mon, 01 Feb 2021 16:16:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l6bs1-0001YF-Q3 for pgsql-general@arkaria.postgresql.org; Mon, 01 Feb 2021 16:16:09 +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 1l6bs0-0001Y6-DW for pgsql-general@lists.postgresql.org; Mon, 01 Feb 2021 16:16:09 +0000 Received: from [66.111.4.25] (helo=out1-smtp.messagingengine.com) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6brw-0005RZ-82 for pgsql-general@postgresql.org; Mon, 01 Feb 2021 16:16:07 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 4C3EB5C0107; Mon, 1 Feb 2021 11:15:53 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 01 Feb 2021 11:15:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=v YKnYI9L6nEe/lJjeCX9tDxnnzVKhAKLw7PnYpT5cIU=; b=ofQOx8BcTdiZ4T2xy InLBH0llEpKlzpzhhUVm/3o64Q361ohIGR+N5pPZ9llc+6v8++YKVFxhnt96QxKC 4rPLiId13J6VFsHrZ+2meQvauJUKPs8WVSNSOctfFKAjZgQ/qrS7SS4FBJ0dvDzC IABijTA344eQKXtP9KAJlb6IuspKv9RUYqogJxIImfSTKYfe6bVufbghLuiIGv5A quyq+UgkRcMPzbxdRE7qDMuK6AMo6sKDRCKriPziVoZZ5RXItQGz7NPeY8lXZ+ln IS5j2kLwMEkvtW2+yo7HNSyeSYL+6MhFmH3pwLnjAFLQpHSOLoIEwHA/hmGJSLxv XI0Bg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=vYKnYI9L6nEe/lJjeCX9tDxnnzVKhAKLw7PnYpT5c IU=; b=PMqlmC4lILm73OSGT5QYXnGL7/jszq/7zrdL9NBua7hbZH2kcciQ0RblE c4JQF9K4LP1Smvkk92gcflUSYAj4JnQ1xwlAF+Mb0Cw1PlFEsQYkyhxtKuWSCFYU 6mLSizjRkq9kkku5ELo1zJ3/Dg71xf3zqmlOhkR1m7gvydzsWEaOx/xhA5FnPBNQ Bd5PQm3UjJrqphIIU1bNWdnzcAJjAxohKxd2hnWYOrGSOPSttQL11+ab4u0asR4h SaQ4+WfPi+dpsqmfJpeqLKafLJ7M1LTbzoZdbASdr0DYx+WbNem0fERT4gUYQzwp pvNl3Jn1kMewvPuv1g47HWNEuQ3ew== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeekgdekiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeduudefjeetve ffhefgudehtdfhvdetkeeiueehfeevveduteekleeuheegudehhfenucffohhmrghinhep phhoshhtghhrvghsqhhlrdhorhhgnecukfhppeeljedruddufedrvddujedrvdejnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghn rdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.4] (97-113-217-27.tukw.qwest.net [97.113.217.27]) by mail.messagingengine.com (Postfix) with ESMTPA id 7982E1080064; Mon, 1 Feb 2021 11:15:52 -0500 (EST) Subject: Re: permission denied for large object 200936761 To: Andrus , pgsql-general@postgresql.org References: <47c92baa-949b-92d1-c162-1f0d8348fb50@hot.ee> From: Adrian Klaver Message-ID: <2eee8862-ea29-3e9c-30ff-82ec7ad4d99f@aklaver.com> Date: Mon, 1 Feb 2021 08:15:51 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <47c92baa-949b-92d1-c162-1f0d8348fb50@hot.ee> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.25 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2/1/21 6:43 AM, Andrus wrote: > 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? More below. > > Tried > > select * from "200936761" > > but it returned "relation does not exist" > > How to fix this ? How to find which table causes this error ? Large objects are stored in a system catalog(table): https://www.postgresql.org/docs/12/catalog-pg-largeobject.html You can query that to see what is there. I would not go about deleting until you find what the large objects are for. > > How to find and delete all large objects in database ? Maybe it is > created accidently . > > Using > >  PostgreSQL 12.2 (Debian 12.2-2.pgdg100+1) on x86_64-pc-linux-gnu, > compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit > > Andrus. > -- Adrian Klaver adrian.klaver@aklaver.com