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 1l6hEo-0001pO-KC for pgsql-general@arkaria.postgresql.org; Mon, 01 Feb 2021 22:00:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l6hEH-0000No-KE for pgsql-general@arkaria.postgresql.org; Mon, 01 Feb 2021 21:59:29 +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 1l6hEG-0000Nd-1S for pgsql-general@lists.postgresql.org; Mon, 01 Feb 2021 21:59:29 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6hEC-0000rZ-Es for pgsql-general@postgresql.org; Mon, 01 Feb 2021 21:59:27 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 8CA67C9B; Mon, 1 Feb 2021 16:59:20 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 01 Feb 2021 16:59:20 -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=7 0G1LPqmZHmjllR+6/o6ywW4LdcU9oGMv2kOaR1Ktc0=; b=pmee0QcBkEpGVjMQf FM6CVavSVzWZstgtfkcYu1uU4M0cw4w68DBgG8X0MKCHwiAy6pu7quSo8D/pNKEb zNZNU2A7Q1BKp8rKAEEs4TYaaX6H1EA+Zc5liRfrWQNnMf//g5DR2mJpzZKrKyEq dypTRYi5u0nwbw1Sg614bl+c1sm+E00ZA/6P7Hhv/XHWL9czfHEK73Lo4mr7MAZR GTBYmQj7CQ5ZUYqTl07vW8MPL+Tnf1cmkdg9IYcGrY4JGn5/vBD8CdMrF3DiwdTN R8QqILkZkLq7+H9Orw9QgUrbPC6Bx+qBweZFMBdNUmIVY0PCEwmaA5ut1F1dJsYH Xd6iA== 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=70G1LPqmZHmjllR+6/o6ywW4LdcU9oGMv2kOaR1Kt c0=; b=FJB+XcdWVp6h6HoaERqAJfB2aZZwBwVl82JuOQnWOVadSjdZteVuWO08K l63R8cV2MMj+HdyspTCz6O8tbsWSvhjjf7+YIH5bTvhQd1GoXTRZkytcfaJvCuzB 64CjwYg59zNCrxDRXocZdIMlArkqAv/ejAdfbFDKLu3QiJDVeZkAOLz3AsuYvtYd MCd4EjtylCKWQ75EfTGfxGWwlWLgONKgdtUdBv05kqsrjJxxu2zjXL1nMFbkDSxi YnBBnk+ldht/MEso1J1qrBHpWgKKp5e/0761DzQl5alVCL5Uva/HJzodOBtkmYVH cevj7nnj93CdssnlCC6yuecLUowIw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeekgdduhedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepveevfeevfe eugeffkeekhfegieeufffgteeujedvgffhueejjefhkeejleegtdegnecukfhppeeljedr uddufedrvddujedrvdejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh 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 52775108005C; Mon, 1 Feb 2021 16:59:19 -0500 (EST) Subject: Re: permission denied for large object 200936761 To: Andrus , 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: Adrian Klaver Message-ID: <61aa8e4d-645a-31c8-53ba-c83a5e01e48e@aklaver.com> Date: Mon, 1 Feb 2021 13:59:18 -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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2/1/21 1:28 PM, Andrus wrote: > Hi! > > >Long term figure out what they are and if they are needed or not. > > Non-superuser backup worked earlier. It looks like large objects > suddenly appeared in database: > > select * from  pg_largeobject_metadata > > Oid                      Lomowner > > 200936761       30152 > 200936762      30152 > 200936767       30152 > > How to figure out what are large object with oids   200936761, 200936762 > and 200936767 ? I misspoke earlier about large objects not being tied to a schema.table. They can be as a column of type oid. To see if they are try : SELECT relname, attname FROM pg_attribute AS pa JOIN pg_class AS pc ON pa.attrelid = pc.oid WHERE atttypid = 'oid'::regtype AND relnamespace = 'public'::regnamespace AND attnum > 0; Where relnamespace is the schema you are interested in. > > Pd_dump throws error on first of them: 200936761 > > Andrus. > -- Adrian Klaver adrian.klaver@aklaver.com