We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 14f1091 + 4700207 commit 501c50aCopy full SHA for 501c50a
src/main/webapp/WEB-INF/pg.sql
@@ -7,7 +7,7 @@ select nextval('seq_zl_log_info_main_id');
7
CREATE TABLE "zl_log_info_main" (
8
"id" int8 DEFAULT nextval('seq_zl_log_info_main_id'::regclass) NOT NULL,
9
"server_id" int4,
10
-"cont" json,
+"cont" jsonb,
11
"time" timestamp(6),
12
"file" varchar(150) COLLATE "default",
13
"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<='
148
149
EXPLAIN
150
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