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 1l6gCg-0006Ls-8b for pgsql-general@arkaria.postgresql.org; Mon, 01 Feb 2021 20:53: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 1l6gCe-0003Vp-Sv for pgsql-general@arkaria.postgresql.org; Mon, 01 Feb 2021 20:53:44 +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 1l6gCe-0003Vh-Gg for pgsql-general@lists.postgresql.org; Mon, 01 Feb 2021 20:53:44 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l6gCa-0000VU-SJ for pgsql-general@postgresql.org; Mon, 01 Feb 2021 20:53:43 +0000 Received: by mail-wr1-x42e.google.com with SMTP id v15so18156649wrx.4 for ; Mon, 01 Feb 2021 12:53:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=AGhYlu6/NH/zZi6jruoifM3cyXCBjwYs7o8ncFgOnwY=; b=KUIiTYyYX7HFqJn9CyOkOK/zEVs0VrH/FVgi6NVfB/53k+AwB+R5sSasIyPGPFfXs5 fgWi6+QisDignGEI5XyQ2qz9VgD1XYOWzNFV/n1bOshWBopuiwEGpAPeQCdW1qWWqjKR DZ8m9yjX7RzUaUs7dAOULeyY+bdMqwew7UjFm2wXD1IRbw93GTBF4u/aaOnXhhUa1Mjc rslij6Lr08gmkaeu79+iiXe373R5WibYBFDje1sBnQCkFyXL9yms7C4kZMqU6OHbwamC TM7fX/INWOqHMGMZEKaTfgro7nFeFd9+iWEMPAV/Cg1Uc3uQvPzM5tLqDztxAXsyzSDN Wc/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=AGhYlu6/NH/zZi6jruoifM3cyXCBjwYs7o8ncFgOnwY=; b=jaHBbsKRpDf8jZiMheBHKiaYbsGNR1CSVDaYdePJ4+MrkdIDN2bYpKoabYZ0MB3wa3 6qOo7mZ8X6OXT53HW5GPEixfsSRemM/jY8xrvBt2n9eW4E7zRzG9i46Y516ydBpg25fJ n+ZDQxtD+8gy+ao1c/748ID30YEVzC0rQhJIIhQK+QmwoLdoNsKRyhu9F86P5SpNkB2u HRK481BSgtuaNwfK5lF0TnWvPgIijbrEbPfWp8z01vG09Brrngi0xhpg4ckJoorDY5aC 9Xny50JoCo3ybC3wJNgaDhf/ys42ALIiRg5k8bV75nU3G9HDlzFziPaz75BREr0cCkHw jnzg== X-Gm-Message-State: AOAM53073WBR/bEkio75Aq7Xb6MBX1eFEdgwzFW7cZa9s6wBAy8ipJej wXJ8UXvnc9NHt+YrA03PeCtvdg== X-Google-Smtp-Source: ABdhPJzhGl4jbFS48IJFZnIcjf4uQmVQjuQHTTBFkg9EaKB3AcK4hqLx/v4GjgQJVsa4iqCl5V8AFQ== X-Received: by 2002:a5d:525c:: with SMTP id k28mr20063397wrc.157.1612212818870; Mon, 01 Feb 2021 12:53:38 -0800 (PST) Received: from localhost.localdomain (178-190-178-240.adsl.highway.telekom.at. [178.190.178.240]) by smtp.gmail.com with ESMTPSA id b138sm416113wmb.35.2021.02.01.12.53.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Feb 2021 12:53:38 -0800 (PST) Message-ID: Subject: Re: permission denied for large object 200936761 From: Laurenz Albe To: Andrus , Adrian Klaver , pgsql-general@postgresql.org Date: Mon, 01 Feb 2021 21:53:37 +0100 In-Reply-To: <08f90e7b-8d08-d46e-abb7-85dd68bc3078@hot.ee> References: <47c92baa-949b-92d1-c162-1f0d8348fb50@hot.ee> <2eee8862-ea29-3e9c-30ff-82ec7ad4d99f@aklaver.com> <08f90e7b-8d08-d46e-abb7-85dd68bc3078@hot.ee> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, 2021-02-01 at 18:32 +0200, Andrus wrote: > > > 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 . Obviously large objects *are* used. You have to grant the database use permissions with GRANT SELECT ON LARGE OBJECT 200936761 TO dumpuser; Alternatively, use the -B option of pg_dump to skip dumping large objects. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com