Skip to content

Commit 501c50a

Browse files
committed
Merge branch 'master-204test'
2 parents 14f1091 + 4700207 commit 501c50a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/webapp/WEB-INF/pg.sql

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ select nextval('seq_zl_log_info_main_id');
77
CREATE TABLE "zl_log_info_main" (
88
"id" int8 DEFAULT nextval('seq_zl_log_info_main_id'::regclass) NOT NULL,
99
"server_id" int4,
10-
"cont" json,
10+
"cont" jsonb,
1111
"time" timestamp(6),
1212
"file" varchar(150) COLLATE "default",
1313
"time_log" int8 DEFAULT 0 NOT NULL,
@@ -148,3 +148,9 @@ SELECT * FROM "public"."zl_log_info_main" where time>='2017-09-10' and time<='
148148

149149
EXPLAIN
150150
SELECT * FROM "public"."zl_log_info_main" where time_log>=1505001600
151+
152+
153+
-- json索引
154+
CREATE INDEX settings_index ON zl_log_info_main USING gin (info);
155+
CREATE INDEX twitter_settings_index ON zl_log_info_main ((info->>'github'));
156+

0 commit comments

Comments
 (0)