Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PostgreSQL:错误:语法错误位于或接近“NOT”_Postgresql_Docker_Centos_Libpqxx - Fatal编程技术网

PostgreSQL:错误:语法错误位于或接近“NOT”

PostgreSQL:错误:语法错误位于或接近“NOT”,postgresql,docker,centos,libpqxx,Postgresql,Docker,Centos,Libpqxx,从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...

从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上运行良好,因此我不确定要修复什么以及修复的位置。

如果PostgreSQL 9.5中不存在,则在9.2版中不支持->和