recovery error while running any statement

From: yudhi s <learnerdatabase99(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: recovery error while running any statement
Date: 2025-01-09 16:42:13
Message-ID: CAEzWdqeNp1HRJt7SkQxANB60CMhrGuJsRKtEpu-Ghb_nXUvgoQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello Experts,
It's postgres aurora version 16. While running the ALTER command on any
object we see an error "*Only RowExclusiveLock or less can be acquired on
database objects during recovery*". If I run any DML it gives an error
stating '*cannot execute UPDATE in a read-only transaction*' , then I tried
setting "*set transaction read-write*" and it erroring out with "*cannot
set transaction read-write mode during recovery*".

Want to understand , what is the cause of this error and how to fix this?

Regards
Yudhi

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron Johnson 2025-01-09 16:48:52 Re: recovery error while running any statement
Previous Message Ron Johnson 2025-01-09 16:27:20 Re: Alter table fast