0

我正在使用 PostgresSQL 9.6 并且有一个内省数据库的过程。我有以下错误:

org.postgresql.util.PSQLException: ERROR: column "attidentity" does not exist
  Position: 169
    at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2440)
    at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2183)
    at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:308)
    at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441)
    at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365)
    at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:143)
    at org.postgresql.jdbc.PgPreparedStatement.executeQuery(PgPreparedStatement.java:106)
    at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:83)
    at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:83)

我必须修改我的表格吗?有什么指导吗?

4

1 回答 1

1

PostgreSQL v10 中引入了逻辑复制和副本标识,因此您不会pg_attribute在 9.6 的目录中找到该列。

于 2019-03-20T20:48:05.690 回答