In this article, the author explains synchronous switching and transaction-level asynchronization in PostgreSQL with zero data loss and high performance.