From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Andrus <kobruleht2@hot.ee>
To: pgsql-general@postgresql.org
Subject: Re: permission denied for large object 200936761
Date: Mon, 1 Feb 2021 08:15:51 -0800
Message-ID: <2eee8862-ea29-3e9c-30ff-82ec7ad4d99f@aklaver.com> (raw)
In-Reply-To: <47c92baa-949b-92d1-c162-1f0d8348fb50@hot.ee>
References: <47c92baa-949b-92d1-c162-1f0d8348fb50@hot.ee>
On 2/1/21 6:43 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?
More below.
>
> Tried
>
> select * from "200936761"
>
> but it returned "relation does not exist"
>
> How to fix this ? How to find which table causes this error ?
Large objects are stored in a system catalog(table):
https://www.postgresql.org/docs/12/catalog-pg-largeobject.html
You can query that to see what is there. I would not go about deleting
until you find what the large objects are for.
>
> How to find and delete all large objects in database ? Maybe it is
> created accidently .
>
> Using
>
> PostgreSQL 12.2 (Debian 12.2-2.pgdg100+1) on x86_64-pc-linux-gnu,
> compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
>
> Andrus.
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, kobruleht2@hot.ee
Subject: Re: permission denied for large object 200936761
In-Reply-To: <2eee8862-ea29-3e9c-30ff-82ec7ad4d99f@aklaver.com>
References: <47c92baa-949b-92d1-c162-1f0d8348fb50@hot.ee> <2eee8862-ea29-3e9c-30ff-82ec7ad4d99f@aklaver.com>
* 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