leafo / pgmoon

A pure Lua Postgres driver for use in OpenResty & more
MIT License
390 stars 93 forks source link

pgmoon support automatic master-slave switch #131

Open liukaiyuliukaiyu opened 1 year ago

liukaiyuliukaiyu commented 1 year ago

Whether pgmoon can support automatic master-slave switching? when the primary database fails,the primary/secondary switchover is detected through the database protocol, and the underlying layer can be adjusted to connect to the new primary database.

leafo commented 1 year ago

same answer as here: https://github.com/leafo/pgmoon/issues/129

no plans to add layers above the database connection logic