Re: permission denied for large object 200936761 - Mailing list pgsql-general

From Adrian Klaver
Subject Re: permission denied for large object 200936761
Date
Msg-id cb692fa2-80f6-d769-a260-9676f0d236ae@aklaver.com
Whole thread Raw
In response to Re: permission denied for large object 200936761  (Andrus <kobruleht2@hot.ee>)
Responses Re: permission denied for large object 200936761  (Andrus <kobruleht2@hot.ee>)
List pgsql-general
On 2/1/21 2:20 PM, Andrus wrote:
> Hi!
> 
>  >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.
> 
> I added -B option and changed postgresql.conf  to 
> lo_compat_privileges=on   as temporary fix.
> 
> dumpuser has created backups of same two schemas for years without 
> issues. The issue starts to occur today.

What code changed between the last backup and today?

> 
> Application does not create large objects. It uses bytea columns instead.
> 
> How to figure out what is this large object ?

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.
> 
> Andrus.
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com



pgsql-general by date:

Previous
From: Andrus
Date:
Subject: Re: permission denied for large object 200936761
Next
From: Andrus
Date:
Subject: Re: permission denied for large object 200936761