把dockerized Postgres OLTP数据库放在只读的问题

我有一个dockerized postgres 9.3.5 OLTP实例,我要更新到9.5.2。 而不是closures它,做一个文件的pg_dumpal,然后加载它,我想旋转起来一个新的docker集装箱和pipe道数据库pg_dumpall -h localhost -p [port] -U postgres | psql -h localhost -U postgres -p [port] pg_dumpall -h localhost -p [port] -U postgres | psql -h localhost -U postgres -p [port] 。 我想我可以改变postgresql.conf在只读模式。 这将暂时与我的应用程序混乱,但至less用户仍然可以SELECT 。 有没有更好的方法去做这件事? 在pipe理数据库时,是否存在只读模式的大问题?