以下の内容はhttps://yohei-a.hatenablog.jp/entry/20201224/1608802311より取得しました。


Aurora PostgreSQL の ReadReplica で SELECT FOR SHARE/UPDATE を実行すると

"cannot execute SELECT FOR SHARE/UPDATE in a read-only transaction" エラーになるという当たり前のこと確認してみた。ただそれだけのこと。

$ psql "host=reader-c-1.******.ap-northeast-1.rds.amazonaws.com user=awsuser dbname=postgres port=5432"
ユーザ awsuser のパスワード:
psql (11.9、サーバ 11.7)
SSL 接続 (プロトコル: TLSv1.2、暗号化方式: ECDHE-RSA-AES256-GCM-SHA384、ビット長: 256、圧縮: オフ)
"help" でヘルプを表示します。
postgres=> select * from test1 for share;
ERROR:  cannot execute SELECT FOR SHARE in a read-only transaction
postgres=> select * from test1 for update;
ERROR:  cannot execute SELECT FOR UPDATE in a read-only transaction



以上の内容はhttps://yohei-a.hatenablog.jp/entry/20201224/1608802311より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14