[alibaba/druid]druid数据源貌似无法识别PostgreSQL分区语句

2025-11-10 824 views
4

这样会提示期望是partition by而不是partition of error.log

回答

5

执行的SQL如下:

5

CREATE TABLE IF NOT EXISTS lc_event_1689811200000 PARTITION OF lc_event FOR VALUES FROM (1689811200000) TO (1690416000000)

4

看了一下是不支持, 官方也有示例sql: https://www.postgresql.org/docs/current/sql-createtable.html 近期我来加下解析支持