目前我在生产时运行9.0.5 postgresql。我发现9.0.19已修复了许多安全修复程序,并希望升级到9.0.19(次要)。
我尝试从enterprisedb site下载9.0.19,但在安装时没有检测到现有版本并给我升级选项。
答案 0 :(得分:0)
次要修订之间的升级应该只是使用新的二进制文件启动数据库集群。
最好假设版本9.0.5安装在/opt/postgres/9.0.5上,并且您将使用以下命令启动数据库:
/opt/postgres/9.0.5/bin/pg_ctl start-D /directory/of/database
然后现在你要下载新版本的postgres,将它安装到/opt/postgres/9.0.19中,然后用新的postgres版本停止并启动数据库。
/opt/postgres/9.0.19/bin/pg_ctl stop -D /directory/of/database -m fast
/opt/postgres/9.0.19/bin/pg_ctl start -D /directory/of/database