这可能有什么问题(在Docker容器中使用的CentOS上的PostgreSQL 9.2.24 ):
terminate called after throwing an instance of 'pqxx::syntax_error'
what(): ERROR: syntax error at or near "NOT"
LINE 1: ...olver_fit_length BIGINT NOT NULL);CREATE INDEX IF NOT EXISTS...
^同样的代码在我的主机Ubuntu18.04和PostgreSQL 10上运行得很好,所以我不知道该在哪里修复什么。
发布于 2019-11-19 23:53:26
“如果不存在”已在PostgreSQL 9.5中引入- 9.2版不支持-> https://www.postgresql.org/docs/9.2/sql-createindex.html和https://www.postgresql.org/docs/9.5/sql-createindex.html。
https://stackoverflow.com/questions/58937961
复制相似问题