您想使用Heroku提供的Postgres Follower数据库 - 它是一个异步只读复制。详情请参考:https://devcenter.heroku.com/articles/heroku-postgres-follower-databases。
BEGIN; SET synchronous_commit = on; INSERT INTO table ...; COMMIT;
即可。该语句将等待事务完成并传递到从节点。 - hgmnz