Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tVvc7-00CiCp-Uz for pgsql-general@arkaria.postgresql.org; Thu, 09 Jan 2025 16:42:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tVvc7-004LIt-ED for pgsql-general@arkaria.postgresql.org; Thu, 09 Jan 2025 16:42:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tVvc7-004LIl-3H for pgsql-general@lists.postgresql.org; Thu, 09 Jan 2025 16:42:30 +0000 Received: from mail-oa1-x36.google.com ([2001:4860:4864:20::36]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tVvc3-000lN1-3B for pgsql-general@lists.postgresql.org; Thu, 09 Jan 2025 16:42:30 +0000 Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-2a8690dcb35so354247fac.3 for ; Thu, 09 Jan 2025 08:42:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736440947; x=1737045747; darn=lists.postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=Af+eM/Y+NleOavZdV7wsa0L7AmV/+98KYQZvOo7j5Os=; b=jvS3C5baAtclqTMdz57YSzvIGwGnUYvEl2RfCUhIlD0T3HmFKBc0ElGB/0Yoq8tuCp yjOW5LCJuOw1RIwf9gvY1h8JiVY5BgPzrT0lsYci7G82JjHcuqvvGymXUkd7YgC0PlEH 8R1akx43zPgISeWdWEYs3VT2VSt1HVivyyZTKfpECjfjwbHoAzxz4+8HuoOy1nkywR4G i9RDqXzp+oV5l6UgfJsnVh8xA/PCZIAfXKRycYok5KGUw1m9VtjZzMkPY9zjP80jdIaY al/iT+nxL8PwsR2YLXgVXZFz3XpoRbs/cvR12CwADic/J5gZb63BZd5hS1bJo2HQA4w1 g+cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736440947; x=1737045747; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Af+eM/Y+NleOavZdV7wsa0L7AmV/+98KYQZvOo7j5Os=; b=l65hrB5mb+2KFtCXM/NnWxZATBfejQ56Oq0CLkk5xIB7Fxik09/KNYmO6psLbeFvas 0z2PIxMAfK0du64O/bZrfFU3SejNZRFbjIc6gt0V2U76Qb+2UgJ5QuDvOUy10tm8qbyD zbjSv9iJkerDu4iKUcaWGy48ohkTyOM1bW+P4j7bcSbTVsAqKLmWjMzIjvy4E0pviPaF E2m9jUciPb0WIo+VIwsvXUxvD6BxmHIQN2MSnnsz8QhlR98rN2mrBjSbGy9v1QkdMcLM Go1sERdKiT3BGw69LLNFkg4SF/NxTSXaMGsjKFyssZHjnz8aUjp5r1OGFYHw/JZYJEa0 1bIA== X-Gm-Message-State: AOJu0YzJAvzVGbRauEM7lQNfUryq+12WFpXWQpRfFupwv2Km6ehf4sQ6 2Pc5GaUM5GNjXCBecnicEL/Vyg+L1VcHH3Ng+CFb5OXlmQrfO9quB13lwnc1S7hEsXhratuvKiv jdhZ+DpQugruxJurA5QVHGnggxEPSzYjE X-Gm-Gg: ASbGnctXWMcbXL1tjNPpDrawAsSHygqvHDsXh5cdsYQjIFUx0ILCDFoPIB4HAOiP7EA sBnKrHzsppHsSAqT3/3AGkEkP+GDq9YwE6YyawxsD9oybJjcy9iCl8y6GL1KjRGrfqSKqkmBW X-Google-Smtp-Source: AGHT+IGKbSryVW9kjO58aBKJHEB6c3dLNh/flAR6PbpdmcsfsSoOsel0z0/XciARoXsXeL8DGqA2/SajlXEyG3q124M= X-Received: by 2002:a05:6871:210b:b0:29e:4bc4:97ca with SMTP id 586e51a60fabf-2aa0675a917mr3963746fac.21.1736440946778; Thu, 09 Jan 2025 08:42:26 -0800 (PST) MIME-Version: 1.0 From: yudhi s Date: Thu, 9 Jan 2025 22:12:13 +0530 X-Gm-Features: AbW1kvY4P85ZJdath4kVDaiqxfs8AmNr95vid6bgKyGW1woWYNtXVR4rHVacWBM Message-ID: Subject: recovery error while running any statement To: pgsql-general Content-Type: multipart/alternative; boundary="000000000000ce76cb062b48a9c5" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000ce76cb062b48a9c5 Content-Type: text/plain; charset="UTF-8" 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 --000000000000ce76cb062b48a9c5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Experts,
It's postgres aurora version 16. Wh= ile=C2=A0 running the ALTER command on any object we see an error "= Only RowExclusiveLock or less can be acquired on database objects during re= covery". 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 &quo= t;cannot set transaction read-write mode during recovery".

Want to understand=C2=A0, what is the cause of this er= ror and how to fix this?

Regards
Yudhi
--000000000000ce76cb062b48a9c5--