pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Andrus <kobruleht2@hot.ee>
To: Adrian Klaver <adrian.klaver@aklaver.com>
To: pgsql-general@postgresql.org
Subject: Re: permission denied for large object 200936761
Date: Mon, 01 Feb 2021 21:53:37 +0100
Message-ID: <ed44153c97970e36d7f4266370fcb1d5110f2d91.camel@cybertec.at> (raw)
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>

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






view thread (27+ messages)  latest in thread

Message-ID: <ed44153c97970e36d7f4266370fcb1d5110f2d91.camel@cybertec.at>
Permalink:  ../ed44153c97970e36d7f4266370fcb1d5110f2d91.camel@cybertec.at/
Also on:    postgresql.org/message-id/ed44153c97970e36d7f4266370fcb1d5110f2d91.camel@cybertec.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, kobruleht2@hot.ee, adrian.klaver@aklaver.com
  Subject: Re: permission denied for large object 200936761
  In-Reply-To: <ed44153c97970e36d7f4266370fcb1d5110f2d91.camel@cybertec.at>
  References: <47c92baa-949b-92d1-c162-1f0d8348fb50@hot.ee> <2eee8862-ea29-3e9c-30ff-82ec7ad4d99f@aklaver.com> <08f90e7b-8d08-d46e-abb7-85dd68bc3078@hot.ee> <ed44153c97970e36d7f4266370fcb1d5110f2d91.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox