Django 1.9.5支持PostgreSQL 11吗?
Heroku上Postgres 10的寿命越来越近,但是我仍然使用它在Django 1.9上使用它。是否可以毫无麻烦地迁移到Postgres 11?
The end-of-life for Postgres 10 on Heroku is closer and closer, but I still have a legacy project on Django 1.9 using it there. Is it possible to migrate to Postgres 11 without troubles?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过文档进行:
pssycopg2中的Postgres 11的最早提及在2.7.x左右出现,有2.8次明确提及:
因此,问题将在psycopg附近(如果有的话)。如果您可以在Python 3.4+上使用Psycopg 2.8+运行您的Django项目,则应该没有理由为什么它不起作用。 Psycopg2的较旧版本也可以很好地与Postgres 11+一起使用。您应该简单地在本地环境(例如Docker)上进行测试。
Going by the documentation:
The earliest mentions of Postgres 11 in psycopg2 appear around 2.7.x, with 2.8 explicitly mentioning:
So, the problem will be somewhere around psycopg, if anything. If you can run your Django project on Python 3.4+ with psycopg 2.8+, there should be no reason why it doesn't work. Older versions of psycopg2 may well work with Postgres 11+ just fine as well. You should simply test that on a local environment (e.g. Docker).