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 1l6cXZ-0002wt-Oi for pgsql-general@arkaria.postgresql.org; Mon, 01 Feb 2021 16:59:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l6cXY-0001mK-Ng for pgsql-general@arkaria.postgresql.org; Mon, 01 Feb 2021 16:59:04 +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 1l6cXY-0001mD-Ff for pgsql-general@lists.postgresql.org; Mon, 01 Feb 2021 16:59:04 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6cXV-0005qo-9o for pgsql-general@postgresql.org; Mon, 01 Feb 2021 16:59:03 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 9553A5C015E; Mon, 1 Feb 2021 11:59:00 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 01 Feb 2021 11:59:00 -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=/ 58isdC0Ii24M5U08OLFn5w1kaOxhWfNWQsTw+x0qwU=; b=sInFweHc8gvmwx4yt tsePIZahCme7JGXX1lB3BPLCDRcpB52xaORUBUQN8z2E+Ruyl9rDO+ZE7sSfHS6I +wSIeqDX5TSUHECuNO8QbhHGxlob4cLmbplhsXG9E9ctaobBc3bLnhxSjideAR9l HMgMbW8ueL2p6SlofJfHoM0+APutop3NpLaATdhFUVBUA+1z/YAu/Ekh0+B+1Cun 1nDv7BvSD4iDwgxTCGxZ5zcpubpolBnn/joobcQQmvK26b1+QJ/F4Vyt5rYXxkEl jCaVPEMBrEuPfCuJ8K8+l9WqrMCSLbY/oO/c06uEyzlo+waKLaNPs92Z0Vi6j+xp Humxg== 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=/58isdC0Ii24M5U08OLFn5w1kaOxhWfNWQsTw+x0q wU=; b=Y8hurM7ebmWZ77bX/nsGSz3ncSG79PyRB3F78J810f+XRtYhgfJplWqHv 3pLI+eLIzhJyiRsIuC4dJIg3pSR2HyKFlUdpQeDB2E6MiLj6n0dhGCeBtBYtBusM 6H1M0rYKDSpu9Cl+026m79Ya2M7Dck2yVfbh54XE/b6YSuWE8EbPFpL7iL1NRHqQ QblDfvoUxe53e2n0P3maOGQiakrPCbmH9zzB8z0hdo2Lzy5SMtmynKiVP3wbtIEY bpui7vFQ4n72PRb6Ob3McerbdH9HMNiGLBbPAijpDj0YUX81vnVESw7a27i9CNt6 U42Kh3GpxeIoSeJ2lCKBQwLTbNFAg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeekgdelhecutefuodetggdotefrodftvf 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 8632F108005B; Mon, 1 Feb 2021 11:58:59 -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> From: Adrian Klaver Message-ID: Date: Mon, 1 Feb 2021 08:58:58 -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: <08f90e7b-8d08-d46e-abb7-85dd68bc3078@hot.ee> 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 8:32 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? > > No. > > pg_dump needs to be invoked by non-superuser also. It backs up two > schemas, public and firma74 . Well the user that runs the pg_dump needs to have permissions on the large objects. For more information see below. > > -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. I haven't used large objects in a while. Forgot that they now have permissions associated with them. Try: https://www.postgresql.org/docs/12/catalog-pg-largeobject-metadata.html instead. > > Database has approx 50 schemas and many thousands of tables. > > Andrus. > -- Adrian Klaver adrian.klaver@aklaver.com