Re: ERROR: could not open relation with OID XXXX - Mailing list pgsql-general

From Adrian Klaver
Subject Re: ERROR: could not open relation with OID XXXX
Date
Msg-id 4fb5ab14-80c6-4ca8-b451-df3cbcacd92f@aklaver.com
Whole thread Raw
In response to Re: ERROR: could not open relation with OID XXXX  (Marcelo Zabani <mzabani@gmail.com>)
Responses Re: ERROR: could not open relation with OID XXXX
List pgsql-general
On 8/25/24 08:36, Marcelo Zabani wrote:
>  > we do some special stuff for catalogs
> 
> That is good to know, thanks!
> 
>  > I believe you could actually lock the pg_class rows for update. Just 
> add FOR UPDATE at the end of the query.
> 
> Thanks, but I tried that and got "ERROR:  permission denied for table 
> pg_class", even if I try it only for tables the user owns.
> 

As I understand it this issue came up in:

https://github.com/mzabani/codd

I would think that the queries in that case would be running as a 
superuser in order to do the migrations.

-- 
Adrian Klaver
adrian.klaver@aklaver.com




pgsql-general by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: ERROR: could not open relation with OID XXXX
Next
From: Marcelo Zabani
Date:
Subject: Re: ERROR: could not open relation with OID XXXX