| | |
| | | comment on column lf.sys_layer.bak is '备注'; |
| | | |
| | | select * from lf.sys_layer; |
| | | ----------------------------------------------------------------------------------------------------- 34.服务日志表 |
| | | -- DROP TABLE IF EXISTS lf.sys_serve_log; |
| | | create table lf.sys_serve_log( |
| | | id serial8, |
| | | resid integer, |
| | | name varchar(100), |
| | | type varchar(50), |
| | | url varchar(4096), |
| | | create_user integer, |
| | | create_time timestamp(6) without time zone default now(), |
| | | bak varchar(1024) |
| | | ) partition by range(create_time); |
| | | |
| | | create table lf.sys_serve_log_2023 partition of lf.sys_serve_log for values from ('2023-01-01') to ('2024-01-01'); |
| | | create INDEX index_sys_serve_log_2023_optime on lf.sys_serve_log_2023 (create_time); |
| | | create table lf.sys_serve_log_2024 partition of lf.sys_serve_log for values from ('2024-01-01') to ('2025-01-01'); |
| | | create INDEX index_sys_serve_log_2024_optime on lf.sys_serve_log_2024 (create_time); |
| | | create table lf.sys_serve_log_2025 partition of lf.sys_serve_log for values from ('2025-01-01') to ('2026-01-01'); |
| | | create INDEX index_sys_serve_log_2025_optime on lf.sys_serve_log_2025 (create_time); |
| | | create table lf.sys_serve_log_2026 partition of lf.sys_serve_log for values from ('2026-01-01') to ('2027-01-01'); |
| | | create INDEX index_sys_serve_log_2026_optime on lf.sys_serve_log_2026 (create_time); |
| | | create table lf.sys_serve_log_2027 partition of lf.sys_serve_log for values from ('2027-01-01') to ('2028-01-01'); |
| | | create INDEX index_sys_serve_log_2027_optime on lf.sys_serve_log_2027 (create_time); |
| | | |
| | | comment on table lf.sys_serve_log is '服务日志表'; |
| | | comment on column lf.sys_serve_log.id is '主键ID'; |
| | | comment on column lf.sys_serve_log.resid is '服务ID'; |
| | | comment on column lf.sys_serve_log.name is '名称'; |
| | | comment on column lf.sys_serve_log.type is '类型'; |
| | | comment on column lf.sys_serve_log.url is '图层地址'; |
| | | comment on column lf.sys_serve_log.create_user is '访问人ID'; |
| | | comment on column lf.sys_serve_log.create_time is '访问时间'; |
| | | comment on column lf.sys_serve_log.bak is '备注'; |
| | | |
| | | select * from lf.sys_serve_log; |
| | | ----------------------------------------------------------------------------------------------------- vacuum analyze md.md_zxcg; |