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 1l6iTc-0005n5-7v for pgsql-general@arkaria.postgresql.org; Mon, 01 Feb 2021 23:19:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l6iT5-00078u-HB for pgsql-general@arkaria.postgresql.org; Mon, 01 Feb 2021 23:18:51 +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 1l6iT4-00078n-BY for pgsql-general@lists.postgresql.org; Mon, 01 Feb 2021 23:18:51 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6iT2-0000z8-1J for pgsql-general@postgresql.org; Mon, 01 Feb 2021 23:18:49 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 988D5DE5; Mon, 1 Feb 2021 18:18:46 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 01 Feb 2021 18:18:46 -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=A 3jQGbTBbs/VfcG21RsV4U1ajUYqMOjqgMnJVIXhR0g=; b=X3EO8LhYBalwwsge0 f+fXJ4zmQXRqyeh1oJpuN4+ukVG6imN4HfNEhjHP18EU3OOvJDLD5cKzPducloqY eI2Z6lUN+wWOXHQZ9IhGrUne3DYr11SZ1eb081zfYQZe0EigcaoW/z9rf5exM/nS biQLmN7im4CawyM5Z9YJF1pfAEAZ45cvniLfi/SmNBDXegN7g89UehP8wycvBrQh gMOAeT/aZ+5vSDzo1r2IE9LDMapBTbSWHzqZ6SXeGAoOZufqz7SBV4o16nQzUDvx Fa9iPN8hMS20P0icIBEqECcjoirENgXWbUwDRWKfFBsSbx48+tL+8LDkSULpVubc FTMFg== 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=A3jQGbTBbs/VfcG21RsV4U1ajUYqMOjqgMnJVIXhR 0g=; b=nIIxJVi2Ojy2hSbrOPKT64dnH/7merupE6PlctqVEb/mY1cwWucOQ3xgM AJLLXO0lGEXBeAeQtRmXGrnGDSofz51Tc/Fka8LyQFsAgDxKNhtVtYbQKI4Ix44+ cTAj1ZVJtLXli3gI90DmseW9vM3DZQsBf95Ucs7DK1VpSel71bdmy6lzMej9sZf5 HEvC7zRpJI9mVb40rQYQ8FGi38iHKHLpVE01MXBi5QYmILOhNoNQaMbEg2HQzdTH c+Kkf6ncMF4LiDIK9KJU7e1OQxBAhhSXTPEhqhUCtX2ZoR9DvMod7RluVegivhfQ bL4LSx2pwDWuSlz5UpAUPmWrOojaQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeelgddtvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuggftrfgrthhtvghrnhepuddufeejteevffehgfduhedthfdvteekieeuheefveev udetkeelueehgeduhefhnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenuc fkphepleejrdduudefrddvudejrddvjeenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrd gtohhm 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 EBE16108005B; Mon, 1 Feb 2021 18:18:44 -0500 (EST) Subject: Re: permission denied for large object 200936761 To: Andrus , Laurenz Albe , 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> <6f141378-2651-3c71-1bab-8b5700e45fbd@hot.ee> <467be57b-9ef6-c3a4-227e-f403ec1b5d68@hot.ee> From: Adrian Klaver Message-ID: <17c2acb7-1ef3-6c0a-e05f-9d99d634f090@aklaver.com> Date: Mon, 1 Feb 2021 15:18:44 -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: <467be57b-9ef6-c3a4-227e-f403ec1b5d68@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 3:07 PM, Andrus wrote: > Hi! > > > What code changed between the last backup and today? > > I have imported data from other clusters and executed lot of different > sql commands.  I have used grant, revoke, reassign commands to change > privileges for other users and have deleted and added users. I don't suppose this was done in a structured way that could be gone back over? > > Cluster contains 25 databases. There are 50 users executing SELECT, > INSERT, UPDATE, DELETE, CREATE, DROP  and similar commands. Yeah, but you are only concerned with one database and two schemas. > > dumpuser has rights only to one database and two schemas (public and > firma74 ). > > >> You could try some of the functions here: >> >> https://www.postgresql.org/docs/12/lo-funcs.html >> >> to see if you can figure it out. > > There is only one function , lo_get() in this page which returns data. I > tried Actually there is a second lo_export() at bottom of page. It needs superuser privilege and access to the server file system. > > select * from lo_get(200936761); > > select * from lo_get(200936762); > > select * from lo_get(200936767); > > Those queries returned one row containing one zero-length column lo_get. What happens if you query: https://www.postgresql.org/docs/12/catalog-pg-largeobject.html as a superuser? Do you see anything in the data field? > > Andrus. > > -- Adrian Klaver adrian.klaver@aklaver.com