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

2025-11-10 955 views
4

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

回答

7

执行的SQL如下:

2

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

8

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