CMDBuild Forum

Re: org.postgresql.util.PSQLException: ERROR: must be owner of relation Product

Hello, we are using the Administration Module to add an attribute to the Product table and we got this message:

Caused by: org.postgresql.util.PSQLException: ERROR: must be owner of relation Product
  Where: SQL statement "ALTER TABLE "Product" ADD COLUMN test date"
PL/pgSQL function cm_create_attribute(oid,text,text,text,boolean,boolean,text) line 9 at EXECUTE statement
 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2284)
 at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2003)
 at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:200)
 at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:424)
 at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:161)
 at org.postgresql.jdbc.PgPreparedStatement.executeQuery(PgPreparedStatement.java:114)
 at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
 at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
 at org.springframework.jdbc.core.JdbcTemplate$1.doInPreparedStatement(JdbcTemplate.java:688)
 at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:629)

Do you have an idea ?  We use Postgres db.  

Thanks

 

 

It seems that CMDBuild is accessing Postgres with a user who does not have sufficient permission to modify the structure of a table.

Normally we use the user "postgres" that has full superadmin access to entire PostgreSQL DB.

CMDBuild Team