我们可以成功地创建hypertable
一个标准表,PgAdmin
但是当我们运行它时我们会失败相同的查询Java
。
代码是:
sql = "SELECT create_hypertable('test.conditions', 'time', create_default_indexes => false, migrate_data => true)";
错误是:
Caused by: org.postgresql.util.PSQLException: ERROR: function create_hypertable(unknown, unknown, create_default_indexes => boolean, migrate_data => boolean) does not exist
Hint: No function matches the given name and argument types. You might need to add explicit type casts.
Position: 8
此行在 PgAdmin 上完美运行:
SELECT create_hypertable('test.conditions', 'time', create_default_indexes => false, migrate_data => true)
我们如何解决这个问题?