Closed
Description
Hello,
sql:
1.create partitions
select create_range_partitions('gem_s1u_http_kpi_1h_statistics'::regclass,'statistical_time','2017-02-08 00:00:00'::timestamp,interval '1 hour',96,false );
2. set_enable_parent
select set_enable_parent('gem_s1u_http_kpi_1h_statistics'::regclass,false);
3.set_auto
select set_auto('gem_s1u_http_kpi_1h_statistics'::regclass,false);
4.now,when i use copy to insert datas,it lists:
ERROR: attribute(statistical_time) 11 has wrong type. details:Table has type character varying, but query expects timestamp without time zone. at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2198)...
5.if i drop all patitions ,it works well.
What i should do to solve this problem?