16:06:13.763 | 2.3 ms | SELECT | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
16:06:13.767 | 1.5 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
16:06:13.772 | 22.1 ms | SELECT | SELECT
c.*,
CASE WHEN p.client_id IS NULL THEN false ELSE true END AS cooperated,
CASE WHEN c.sales_rep IS NULL THEN 0 ELSE 1 END AS is_public,
sl.lost_contact_days,
extract(epoch from (now() - max(arrive.end_at))) / 86400 AS last_arrive_days,
sl.last_contact,
max(arrive.end_at) as last_arrive,
CASE WHEN c.client_class IS NOT NULL THEN (
(CASE WHEN cl.contact_base > 0 THEN floor(CASE WHEN c.contact_count > cl.contact_base THEN 1 * 15 ELSE c.contact_count * 15 / cl.contact_base END) ELSE 15 END)
+
floor(c.client_base_info_count * 15 / 9)
+
(CASE WHEN cl.visit_base > 0 THEN floor(CASE WHEN c.visit_count > ceil((CASE WHEN extract(year from now()) = extract(year from c.created_at::date) THEN (now()::date - c.created_at::date + 1)::float ELSE 259::float END) / cl.visit_base::float) THEN 1 * 20 ELSE c.visit_count * 20 / ceil((CASE WHEN extract(year from now()) = extract(year from c.created_at::date) THEN (now()::date - c.created_at::date + 1)::float ELSE 259::float END) / cl.visit_base::float) END) ELSE 20 END)
+
(CASE WHEN cl.cooperate_base > 0 THEN floor(CASE WHEN c.cooperate_count > cl.cooperate_base THEN 1 * 20 ELSE c.cooperate_count * 20 / cl.cooperate_base END) ELSE 20 END)
+
(CASE WHEN cl.case_pre_sales_base > 0 THEN floor(CASE WHEN c.case_pre_sales_count > cl.case_pre_sales_base THEN 1 * 15 ELSE c.case_pre_sales_count * 15 / cl.case_pre_sales_base END) ELSE 15 END)
+
(CASE WHEN cl.case_implement_base > 0 THEN floor(CASE WHEN c.case_implement_count > cl.case_implement_base THEN 1 * 15 ELSE c.case_implement_count * 15 / cl.case_implement_base END) ELSE 15 END)
) ELSE NULL END as score
FROM "a57be577deb434"."tbl_clients" "c" LEFT JOIN "a57be577deb434"."tbl_sales_group_relationships" "sgr" ON sgr.sales_id = c.sales_rep LEFT JOIN "a57be577deb434"."tbl_client_classes" "cl" ON cl.id = c.client_class LEFT JOIN "a57be577deb434"."tbl_client_address_rels" "car" ON car.client_id = c.id LEFT JOIN "a57be577deb434"."tbl_addresses" "a" ON car.address_id = a.id LEFT JOIN (SELECT "client_id" FROM "a57be577deb434"."tbl_projects" WHERE "project_status"=3 GROUP BY "client_id") "p" ON p.client_id = c.id LEFT JOIN "a57be577deb434"."tbl_work_logs" "arrive" ON (arrive.client_id = c.id) AND ("arrive"."scenario_id"=1) AND ("arrive"."is_draft"=FALSE) AND ("arrive"."location_in_id" IS NOT NULL) AND ("arrive"."location_out_id" IS NOT NULL) AND ("arrive"."client_id" IS NOT NULL) LEFT JOIN (SELECT extract(epoch from (now() - max(end_at))) / 86400 AS lost_contact_days, max(end_at) as last_contact, client_id FROM "a57be577deb434"."tbl_work_logs" WHERE "is_draft"=FALSE GROUP BY "client_id") "sl" ON sl.client_id = c.id LEFT JOIN "a57be577deb434"."tbl_term_taxonomy_relationships" "ttr" ON ttr.object_id = c.id AND ttr.term_id = 14 LEFT JOIN (SELECT "client_id" FROM "a57be577deb434"."tbl_contacts" WHERE lower(name) LIKE '%%' GROUP BY "client_id") "cc" ON cc.client_id = c.id WHERE (("c"."sales_rep"='1001')) AND (("c"."sales_rep" IN (1001, 5049, 5301, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 1004, 5072, 5033, 5359, 5409, 5412, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) OR ("c"."sales_rep" IS NULL) OR ("c"."id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1001))) AND ("deleted"=FALSE) GROUP BY "c"."id", "cl"."id", "cooperated", "lost_contact_days", "last_contact" ORDER BY "is_public" DESC |
16:06:13.797 | 0.4 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_client_types" WHERE "id" IN (5, 6, 3) |
16:06:13.797 | 4.8 ms | SELECT | SELECT
d.nspname AS table_schema,
c.relname AS table_name,
a.attname AS column_name,
t.typname AS data_type,
a.attlen AS character_maximum_length,
pg_catalog.col_description(c.oid, a.attnum) AS column_comment,
a.atttypmod AS modifier,
a.attnotnull = false AS is_nullable,
CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default,
coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc,
array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values,
CASE atttypid
WHEN 21 /*int2*/ THEN 16
WHEN 23 /*int4*/ THEN 32
WHEN 20 /*int8*/ THEN 64
WHEN 1700 /*numeric*/ THEN
CASE WHEN atttypmod = -1
THEN null
ELSE ((atttypmod - 4) >> 16) & 65535
END
WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/
WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/
ELSE null
END AS numeric_precision,
CASE
WHEN atttypid IN (21, 23, 20) THEN 0
WHEN atttypid IN (1700) THEN
CASE
WHEN atttypmod = -1 THEN null
ELSE (atttypmod - 4) & 65535
END
ELSE null
END AS numeric_scale,
CAST(
information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t))
AS numeric
) AS size,
a.attnum = any (ct.conkey) as is_pkey
FROM
pg_class c
LEFT JOIN pg_attribute a ON a.attrelid = c.oid
LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum
LEFT JOIN pg_type t ON a.atttypid = t.oid
LEFT JOIN pg_namespace d ON d.oid = c.relnamespace
LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p'
WHERE
a.attnum > 0 and t.typname != ''
and c.relname = 'tbl_client_types'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
16:06:13.802 | 4.0 ms | SELECT | select
ct.conname as constraint_name,
a.attname as column_name,
fc.relname as foreign_table_name,
fns.nspname as foreign_table_schema,
fa.attname as foreign_column_name
from
(SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s
FROM pg_constraint ct
) AS ct
inner join pg_class c on c.oid=ct.conrelid
inner join pg_namespace ns on c.relnamespace=ns.oid
inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s]
left join pg_class fc on fc.oid=ct.confrelid
left join pg_namespace fns on fc.relnamespace=fns.oid
left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s]
where
ct.contype='f'
and c.relname='tbl_client_types'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
16:06:13.807 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_client_classes" WHERE "id" IN (43, 1, 47, 80) |
16:06:13.807 | 2.7 ms | SELECT | SELECT
d.nspname AS table_schema,
c.relname AS table_name,
a.attname AS column_name,
t.typname AS data_type,
a.attlen AS character_maximum_length,
pg_catalog.col_description(c.oid, a.attnum) AS column_comment,
a.atttypmod AS modifier,
a.attnotnull = false AS is_nullable,
CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default,
coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc,
array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values,
CASE atttypid
WHEN 21 /*int2*/ THEN 16
WHEN 23 /*int4*/ THEN 32
WHEN 20 /*int8*/ THEN 64
WHEN 1700 /*numeric*/ THEN
CASE WHEN atttypmod = -1
THEN null
ELSE ((atttypmod - 4) >> 16) & 65535
END
WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/
WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/
ELSE null
END AS numeric_precision,
CASE
WHEN atttypid IN (21, 23, 20) THEN 0
WHEN atttypid IN (1700) THEN
CASE
WHEN atttypmod = -1 THEN null
ELSE (atttypmod - 4) & 65535
END
ELSE null
END AS numeric_scale,
CAST(
information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t))
AS numeric
) AS size,
a.attnum = any (ct.conkey) as is_pkey
FROM
pg_class c
LEFT JOIN pg_attribute a ON a.attrelid = c.oid
LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum
LEFT JOIN pg_type t ON a.atttypid = t.oid
LEFT JOIN pg_namespace d ON d.oid = c.relnamespace
LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p'
WHERE
a.attnum > 0 and t.typname != ''
and c.relname = 'tbl_client_classes'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
16:06:13.810 | 3.4 ms | SELECT | select
ct.conname as constraint_name,
a.attname as column_name,
fc.relname as foreign_table_name,
fns.nspname as foreign_table_schema,
fa.attname as foreign_column_name
from
(SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s
FROM pg_constraint ct
) AS ct
inner join pg_class c on c.oid=ct.conrelid
inner join pg_namespace ns on c.relnamespace=ns.oid
inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s]
left join pg_class fc on fc.oid=ct.confrelid
left join pg_namespace fns on fc.relnamespace=fns.oid
left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s]
where
ct.contype='f'
and c.relname='tbl_client_classes'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
16:06:13.814 | 25.1 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id" IN (146, 982, 1032, 1039, 1077, 1094, 1095, 1098, 1175, 1178, 1661, 1933, 1956, 2044, 2045, 2046, 2115, 2117, 2207, 2219, 2486, 2499, 2500, 2511, 2519, 2520, 2536, 2538, 2539, 2540, 2545, 2551, 2553, 2582, 2589, 2616, 2718, 2719, 2798, 2800, 2803, 2836, 2838, 2845, 3009, 3081, 3278, 3286, 3296, 3301, 3304, 3311, 3327, 3334, 3344, 3364, 3372, 3389) |
16:06:13.840 | 0.8 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=14) AND ("id" IN (101, 164, 180, 232, 226, 98, 9, 212, 130, 179, 181, 133, 182, 172, 132, 142, 140, 102, 45, 100, 5, 138, 165, 177, 1, 2, 7, 229, 94, 136, 135, 139, 196, 204, 137, 208, 174, 215, 129, 168, 167, 175, 197, 199, 184, 128, 189, 6, 11, 211, 213, 156, 200, 205, 192, 203, 160, 171, 185, 191, 157, 131, 93, 8, 178, 176, 217, 188, 2100000000, 307, 335, 319, 340, 153, 341, 346, 107, 348, 155, 349, 313, 317, 320, 315, 350, 351, 353, 355, 359, 369, 374, 377, 331, 328, 324, 322)) ORDER BY "sort" |
16:06:13.841 | 0.4 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_client_industries" WHERE "id" IN (5, 4, 13, 20, 10, 3, 18, 57) |
16:06:13.842 | 2.6 ms | SELECT | SELECT
d.nspname AS table_schema,
c.relname AS table_name,
a.attname AS column_name,
t.typname AS data_type,
a.attlen AS character_maximum_length,
pg_catalog.col_description(c.oid, a.attnum) AS column_comment,
a.atttypmod AS modifier,
a.attnotnull = false AS is_nullable,
CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default,
coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc,
array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values,
CASE atttypid
WHEN 21 /*int2*/ THEN 16
WHEN 23 /*int4*/ THEN 32
WHEN 20 /*int8*/ THEN 64
WHEN 1700 /*numeric*/ THEN
CASE WHEN atttypmod = -1
THEN null
ELSE ((atttypmod - 4) >> 16) & 65535
END
WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/
WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/
ELSE null
END AS numeric_precision,
CASE
WHEN atttypid IN (21, 23, 20) THEN 0
WHEN atttypid IN (1700) THEN
CASE
WHEN atttypmod = -1 THEN null
ELSE (atttypmod - 4) & 65535
END
ELSE null
END AS numeric_scale,
CAST(
information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t))
AS numeric
) AS size,
a.attnum = any (ct.conkey) as is_pkey
FROM
pg_class c
LEFT JOIN pg_attribute a ON a.attrelid = c.oid
LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum
LEFT JOIN pg_type t ON a.atttypid = t.oid
LEFT JOIN pg_namespace d ON d.oid = c.relnamespace
LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p'
WHERE
a.attnum > 0 and t.typname != ''
and c.relname = 'tbl_client_industries'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
16:06:13.844 | 3.5 ms | SELECT | select
ct.conname as constraint_name,
a.attname as column_name,
fc.relname as foreign_table_name,
fns.nspname as foreign_table_schema,
fa.attname as foreign_column_name
from
(SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s
FROM pg_constraint ct
) AS ct
inner join pg_class c on c.oid=ct.conrelid
inner join pg_namespace ns on c.relnamespace=ns.oid
inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s]
left join pg_class fc on fc.oid=ct.confrelid
left join pg_namespace fns on fc.relnamespace=fns.oid
left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s]
where
ct.contype='f'
and c.relname='tbl_client_industries'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
16:06:13.848 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_company_natures" WHERE "id" IN (6, 3, 1, 4, 2) |
16:06:13.849 | 2.5 ms | SELECT | SELECT
d.nspname AS table_schema,
c.relname AS table_name,
a.attname AS column_name,
t.typname AS data_type,
a.attlen AS character_maximum_length,
pg_catalog.col_description(c.oid, a.attnum) AS column_comment,
a.atttypmod AS modifier,
a.attnotnull = false AS is_nullable,
CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default,
coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc,
array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values,
CASE atttypid
WHEN 21 /*int2*/ THEN 16
WHEN 23 /*int4*/ THEN 32
WHEN 20 /*int8*/ THEN 64
WHEN 1700 /*numeric*/ THEN
CASE WHEN atttypmod = -1
THEN null
ELSE ((atttypmod - 4) >> 16) & 65535
END
WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/
WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/
ELSE null
END AS numeric_precision,
CASE
WHEN atttypid IN (21, 23, 20) THEN 0
WHEN atttypid IN (1700) THEN
CASE
WHEN atttypmod = -1 THEN null
ELSE (atttypmod - 4) & 65535
END
ELSE null
END AS numeric_scale,
CAST(
information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t))
AS numeric
) AS size,
a.attnum = any (ct.conkey) as is_pkey
FROM
pg_class c
LEFT JOIN pg_attribute a ON a.attrelid = c.oid
LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum
LEFT JOIN pg_type t ON a.atttypid = t.oid
LEFT JOIN pg_namespace d ON d.oid = c.relnamespace
LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p'
WHERE
a.attnum > 0 and t.typname != ''
and c.relname = 'tbl_company_natures'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
16:06:13.851 | 3.4 ms | SELECT | select
ct.conname as constraint_name,
a.attname as column_name,
fc.relname as foreign_table_name,
fns.nspname as foreign_table_schema,
fa.attname as foreign_column_name
from
(SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s
FROM pg_constraint ct
) AS ct
inner join pg_class c on c.oid=ct.conrelid
inner join pg_namespace ns on c.relnamespace=ns.oid
inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s]
left join pg_class fc on fc.oid=ct.confrelid
left join pg_namespace fns on fc.relnamespace=fns.oid
left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s]
where
ct.contype='f'
and c.relname='tbl_company_natures'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
16:06:13.855 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
16:06:13.856 | 0.5 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001) |
16:06:13.857 | 0.5 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id" IN (1003, 5076, 1001, 1011, 5023, 5295, 5015, 5359, 5360) |
16:06:13.858 | 22.0 ms | SELECT | SELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=10) AND ("object_id" IN (146, 982, 1032, 1039, 1077, 1094, 1095, 1098, 1175, 1178, 1661, 1933, 1956, 2044, 2045, 2046, 2115, 2117, 2207, 2219, 2486, 2499, 2500, 2511, 2519, 2520, 2536, 2538, 2539, 2540, 2545, 2551, 2553, 2582, 2589, 2616, 2718, 2719, 2798, 2800, 2803, 2836, 2838, 2845, 3009, 3081, 3278, 3286, 3296, 3301, 3304, 3311, 3327, 3334, 3344, 3364, 3372, 3389)) GROUP BY "object_id" |
16:06:13.880 | 1.7 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_cases" WHERE ("case_status" NOT IN (5, 6)) AND ("client_id" IN (146, 982, 1032, 1039, 1077, 1094, 1095, 1098, 1175, 1178, 1661, 1933, 1956, 2044, 2045, 2046, 2115, 2117, 2207, 2219, 2486, 2499, 2500, 2511, 2519, 2520, 2536, 2538, 2539, 2540, 2545, 2551, 2553, 2582, 2589, 2616, 2718, 2719, 2798, 2800, 2803, 2836, 2838, 2845, 3009, 3081, 3278, 3286, 3296, 3301, 3304, 3311, 3327, 3334, 3344, 3364, 3372, 3389)) |
16:06:13.882 | 0.9 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE ("project_status" IN (1, 2)) AND ("client_id" IN (146, 982, 1032, 1039, 1077, 1094, 1095, 1098, 1175, 1178, 1661, 1933, 1956, 2044, 2045, 2046, 2115, 2117, 2207, 2219, 2486, 2499, 2500, 2511, 2519, 2520, 2536, 2538, 2539, 2540, 2545, 2551, 2553, 2582, 2589, 2616, 2718, 2719, 2798, 2800, 2803, 2836, 2838, 2845, 3009, 3081, 3278, 3286, 3296, 3301, 3304, 3311, 3327, 3334, 3344, 3364, 3372, 3389)) |
16:06:13.884 | 3.3 ms | SELECT | SELECT
d.nspname AS table_schema,
c.relname AS table_name,
a.attname AS column_name,
t.typname AS data_type,
a.attlen AS character_maximum_length,
pg_catalog.col_description(c.oid, a.attnum) AS column_comment,
a.atttypmod AS modifier,
a.attnotnull = false AS is_nullable,
CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default,
coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc,
array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values,
CASE atttypid
WHEN 21 /*int2*/ THEN 16
WHEN 23 /*int4*/ THEN 32
WHEN 20 /*int8*/ THEN 64
WHEN 1700 /*numeric*/ THEN
CASE WHEN atttypmod = -1
THEN null
ELSE ((atttypmod - 4) >> 16) & 65535
END
WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/
WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/
ELSE null
END AS numeric_precision,
CASE
WHEN atttypid IN (21, 23, 20) THEN 0
WHEN atttypid IN (1700) THEN
CASE
WHEN atttypmod = -1 THEN null
ELSE (atttypmod - 4) & 65535
END
ELSE null
END AS numeric_scale,
CAST(
information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t))
AS numeric
) AS size,
a.attnum = any (ct.conkey) as is_pkey
FROM
pg_class c
LEFT JOIN pg_attribute a ON a.attrelid = c.oid
LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum
LEFT JOIN pg_type t ON a.atttypid = t.oid
LEFT JOIN pg_namespace d ON d.oid = c.relnamespace
LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p'
WHERE
a.attnum > 0 and t.typname != ''
and c.relname = 'tbl_projects'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
16:06:13.887 | 6.2 ms | SELECT | select
ct.conname as constraint_name,
a.attname as column_name,
fc.relname as foreign_table_name,
fns.nspname as foreign_table_schema,
fa.attname as foreign_column_name
from
(SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s
FROM pg_constraint ct
) AS ct
inner join pg_class c on c.oid=ct.conrelid
inner join pg_namespace ns on c.relnamespace=ns.oid
inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s]
left join pg_class fc on fc.oid=ct.confrelid
left join pg_namespace fns on fc.relnamespace=fns.oid
left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s]
where
ct.contype='f'
and c.relname='tbl_projects'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
16:06:13.894 | 0.4 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1001' |
16:06:13.902 | 8.1 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=146)) AND ("user_id"=1001) |
16:06:13.912 | 1.1 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=982)) AND ("user_id"=1001) |
16:06:13.913 | 1.0 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=1032)) AND ("user_id"=1001) |
16:06:13.914 | 1.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=1039)) AND ("user_id"=1001) |
16:06:13.916 | 1.0 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=1077)) AND ("user_id"=1001) |
16:06:13.917 | 1.0 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=1094)) AND ("user_id"=1001) |
16:06:13.918 | 1.0 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=1095)) AND ("user_id"=1001) |
16:06:13.919 | 1.0 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=1098)) AND ("user_id"=1001) |
16:06:13.920 | 1.0 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=1175)) AND ("user_id"=1001) |
16:06:13.922 | 1.0 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=1178)) AND ("user_id"=1001) |
16:06:13.923 | 1.0 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=1661)) AND ("user_id"=1001) |
16:06:13.924 | 1.0 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=1933)) AND ("user_id"=1001) |
16:06:13.925 | 1.0 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=1956)) AND ("user_id"=1001) |
16:06:13.926 | 0.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2044)) AND ("user_id"=1001) |
16:06:13.927 | 0.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2045)) AND ("user_id"=1001) |
16:06:13.927 | 0.3 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2046)) AND ("user_id"=1001) |
16:06:13.928 | 1.0 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2115)) AND ("user_id"=1001) |
16:06:13.929 | 0.5 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2117)) AND ("user_id"=1001) |
16:06:13.929 | 0.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2207)) AND ("user_id"=1001) |
16:06:13.930 | 0.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2219)) AND ("user_id"=1001) |
16:06:13.931 | 1.1 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2486)) AND ("user_id"=1001) |
16:06:13.932 | 0.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2499)) AND ("user_id"=1001) |
16:06:13.932 | 0.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2500)) AND ("user_id"=1001) |
16:06:13.933 | 0.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2511)) AND ("user_id"=1001) |
16:06:13.934 | 0.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2519)) AND ("user_id"=1001) |
16:06:13.934 | 0.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2520)) AND ("user_id"=1001) |
16:06:13.935 | 0.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2536)) AND ("user_id"=1001) |
16:06:13.935 | 0.9 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2538)) AND ("user_id"=1001) |
16:06:13.936 | 0.5 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2539)) AND ("user_id"=1001) |
16:06:13.937 | 0.5 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2540)) AND ("user_id"=1001) |
16:06:13.938 | 0.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2545)) AND ("user_id"=1001) |
16:06:13.938 | 0.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2551)) AND ("user_id"=1001) |
16:06:13.939 | 0.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2553)) AND ("user_id"=1001) |
16:06:13.939 | 0.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2582)) AND ("user_id"=1001) |
16:06:13.940 | 0.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2589)) AND ("user_id"=1001) |
16:06:13.941 | 0.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2616)) AND ("user_id"=1001) |
16:06:13.941 | 0.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2718)) AND ("user_id"=1001) |
16:06:13.942 | 0.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2719)) AND ("user_id"=1001) |
16:06:13.942 | 0.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2798)) AND ("user_id"=1001) |
16:06:13.943 | 0.3 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2800)) AND ("user_id"=1001) |
16:06:13.943 | 0.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2803)) AND ("user_id"=1001) |
16:06:13.944 | 0.5 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2836)) AND ("user_id"=1001) |
16:06:13.945 | 0.7 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2838)) AND ("user_id"=1001) |
16:06:13.946 | 0.8 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=2845)) AND ("user_id"=1001) |
16:06:13.947 | 1.0 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=3009)) AND ("user_id"=1001) |
16:06:13.948 | 0.5 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=3081)) AND ("user_id"=1001) |
16:06:13.949 | 0.5 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=3278)) AND ("user_id"=1001) |
16:06:13.950 | 0.5 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=3286)) AND ("user_id"=1001) |
16:06:13.950 | 0.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=3296)) AND ("user_id"=1001) |
16:06:13.951 | 0.5 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=3301)) AND ("user_id"=1001) |
16:06:13.951 | 0.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=3304)) AND ("user_id"=1001) |
16:06:13.952 | 0.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=3311)) AND ("user_id"=1001) |
16:06:13.953 | 0.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=3327)) AND ("user_id"=1001) |
16:06:13.953 | 0.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=3334)) AND ("user_id"=1001) |
16:06:13.954 | 0.5 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=3344)) AND ("user_id"=1001) |
16:06:13.954 | 0.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=3364)) AND ("user_id"=1001) |
16:06:13.955 | 0.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=3372)) AND ("user_id"=1001) |
16:06:13.956 | 0.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=3389)) AND ("user_id"=1001) |
16:06:13.956 | 0.8 ms | SELECT | SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id" IN (146, 982, 1032, 1039, 1077, 1094, 1095, 1098, 1175, 1178, 1661, 1933, 1956, 2044, 2045, 2046, 2115, 2117, 2207, 2219, 2486, 2499, 2500, 2511, 2519, 2520, 2536, 2538, 2539, 2540, 2545, 2551, 2553, 2582, 2589, 2616, 2718, 2719, 2798, 2800, 2803, 2836, 2838, 2845, 3009, 3081, 3278, 3286, 3296, 3301, 3304, 3311, 3327, 3334, 3344, 3364, 3372, 3389) |
16:06:13.958 | 0.6 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (2534, 2742, 2776, 2737, 522, 1186, 529, 2647, 3101, 786, 2589, 2672, 2662, 3112, 3250, 3235, 3232, 3247, 2658, 3249, 3300, 3327, 3392, 3364, 3348, 3363, 3388, 3415, 3384, 2865, 3502, 3525, 3537, 3549, 3550, 3493, 3620, 3598, 3661, 3703, 3763, 1756, 3755, 3724, 3725, 3746, 3803, 3853, 3857, 3935, 3916, 3900, 3967, 3978, 3997, 2599, 2812, 2783, 2981, 2836, 2909, 2756, 2963, 2708, 2817, 2148, 1842, 1843, 1558, 2141, 26, 1692, 1697, 1734, 1872, 655, 1930, 1934, 1946, 616, 656, 1091, 653, 2542, 798, 1177, 1755, 1702, 2340, 4106, 4055, 4131, 4112, 4140)) AND ("user_id"='1001') |
16:06:13.959 | 2.4 ms | SELECT | SELECT
d.nspname AS table_schema,
c.relname AS table_name,
a.attname AS column_name,
t.typname AS data_type,
a.attlen AS character_maximum_length,
pg_catalog.col_description(c.oid, a.attnum) AS column_comment,
a.atttypmod AS modifier,
a.attnotnull = false AS is_nullable,
CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default,
coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc,
array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values,
CASE atttypid
WHEN 21 /*int2*/ THEN 16
WHEN 23 /*int4*/ THEN 32
WHEN 20 /*int8*/ THEN 64
WHEN 1700 /*numeric*/ THEN
CASE WHEN atttypmod = -1
THEN null
ELSE ((atttypmod - 4) >> 16) & 65535
END
WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/
WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/
ELSE null
END AS numeric_precision,
CASE
WHEN atttypid IN (21, 23, 20) THEN 0
WHEN atttypid IN (1700) THEN
CASE
WHEN atttypmod = -1 THEN null
ELSE (atttypmod - 4) & 65535
END
ELSE null
END AS numeric_scale,
CAST(
information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t))
AS numeric
) AS size,
a.attnum = any (ct.conkey) as is_pkey
FROM
pg_class c
LEFT JOIN pg_attribute a ON a.attrelid = c.oid
LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum
LEFT JOIN pg_type t ON a.atttypid = t.oid
LEFT JOIN pg_namespace d ON d.oid = c.relnamespace
LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p'
WHERE
a.attnum > 0 and t.typname != ''
and c.relname = 'tbl_sales_contract_remind_receivers'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
16:06:13.961 | 3.8 ms | SELECT | select
ct.conname as constraint_name,
a.attname as column_name,
fc.relname as foreign_table_name,
fns.nspname as foreign_table_schema,
fa.attname as foreign_column_name
from
(SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s
FROM pg_constraint ct
) AS ct
inner join pg_class c on c.oid=ct.conrelid
inner join pg_namespace ns on c.relnamespace=ns.oid
inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s]
left join pg_class fc on fc.oid=ct.confrelid
left join pg_namespace fns on fc.relnamespace=fns.oid
left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s]
where
ct.contype='f'
and c.relname='tbl_sales_contract_remind_receivers'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
16:06:13.965 | 8.3 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_sales_contract_remind_receivers" ("contract_id", "user_id") VALUES (2534, 1001), (2742, 1001), (2776, 1001), (2737, 1001), (522, 1001), (1186, 1001), (529, 1001), (2647, 1001), (3101, 1001), (786, 1001), (2589, 1001), (2672, 1001), (2662, 1001), (3112, 1001), (3250, 1001), (3235, 1001), (3232, 1001), (3247, 1001), (2658, 1001), (3249, 1001), (3300, 1001), (3327, 1001), (3392, 1001), (3364, 1001), (3348, 1001), (3363, 1001), (3388, 1001), (3415, 1001), (3384, 1001), (2865, 1001), (3502, 1001), (3525, 1001), (3537, 1001), (3549, 1001), (3550, 1001), (3493, 1001), (3620, 1001), (3598, 1001), (3661, 1001), (3703, 1001), (3763, 1001), (1756, 1001), (3755, 1001), (3724, 1001), (3725, 1001), (3746, 1001), (3803, 1001), (3853, 1001), (3857, 1001), (3935, 1001), (3916, 1001), (3900, 1001), (3967, 1001), (3978, 1001), (3997, 1001), (2599, 1001), (2812, 1001), (2783, 1001), (2981, 1001), (2836, 1001), (2909, 1001), (2756, 1001), (2963, 1001), (2708, 1001), (2817, 1001), (2148, 1001), (1842, 1001), (1843, 1001), (1558, 1001), (2141, 1001), (26, 1001), (1692, 1001), (1697, 1001), (1734, 1001), (1872, 1001), (655, 1001), (1930, 1001), (1934, 1001), (1946, 1001), (616, 1001), (656, 1001), (1091, 1001), (653, 1001), (2542, 1001), (798, 1001), (1177, 1001), (1755, 1001), (1702, 1001), (2340, 1001), (4106, 1001), (4055, 1001), (4131, 1001), (4112, 1001), (4140, 1001) |
16:06:13.974 | 4.6 ms | UPDATE | UPDATE "a57be577deb434"."tbl_clients" SET "sales_rep"=1001, "pick_at"='now()', "updated_at"='now()', "is_overdue_remind"=FALSE WHERE "id" IN (146, 982, 1032, 1039, 1077, 1094, 1095, 1098, 1175, 1178, 1661, 1933, 1956, 2044, 2045, 2046, 2115, 2117, 2207, 2219, 2486, 2499, 2500, 2511, 2519, 2520, 2536, 2538, 2539, 2540, 2545, 2551, 2553, 2582, 2589, 2616, 2718, 2719, 2798, 2800, 2803, 2836, 2838, 2845, 3009, 3081, 3278, 3286, 3296, 3301, 3304, 3311, 3327, 3334, 3344, 3364, 3372, 3389) |
16:06:13.979 | 3.2 ms | SELECT | SELECT
d.nspname AS table_schema,
c.relname AS table_name,
a.attname AS column_name,
t.typname AS data_type,
a.attlen AS character_maximum_length,
pg_catalog.col_description(c.oid, a.attnum) AS column_comment,
a.atttypmod AS modifier,
a.attnotnull = false AS is_nullable,
CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default,
coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc,
array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values,
CASE atttypid
WHEN 21 /*int2*/ THEN 16
WHEN 23 /*int4*/ THEN 32
WHEN 20 /*int8*/ THEN 64
WHEN 1700 /*numeric*/ THEN
CASE WHEN atttypmod = -1
THEN null
ELSE ((atttypmod - 4) >> 16) & 65535
END
WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/
WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/
ELSE null
END AS numeric_precision,
CASE
WHEN atttypid IN (21, 23, 20) THEN 0
WHEN atttypid IN (1700) THEN
CASE
WHEN atttypmod = -1 THEN null
ELSE (atttypmod - 4) & 65535
END
ELSE null
END AS numeric_scale,
CAST(
information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t))
AS numeric
) AS size,
a.attnum = any (ct.conkey) as is_pkey
FROM
pg_class c
LEFT JOIN pg_attribute a ON a.attrelid = c.oid
LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum
LEFT JOIN pg_type t ON a.atttypid = t.oid
LEFT JOIN pg_namespace d ON d.oid = c.relnamespace
LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p'
WHERE
a.attnum > 0 and t.typname != ''
and c.relname = 'tbl_client_sales_rep_rels'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
16:06:13.983 | 3.6 ms | SELECT | select
ct.conname as constraint_name,
a.attname as column_name,
fc.relname as foreign_table_name,
fns.nspname as foreign_table_schema,
fa.attname as foreign_column_name
from
(SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s
FROM pg_constraint ct
) AS ct
inner join pg_class c on c.oid=ct.conrelid
inner join pg_namespace ns on c.relnamespace=ns.oid
inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s]
left join pg_class fc on fc.oid=ct.confrelid
left join pg_namespace fns on fc.relnamespace=fns.oid
left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s]
where
ct.contype='f'
and c.relname='tbl_client_sales_rep_rels'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
16:06:13.987 | 5.0 ms | UPDATE | UPDATE "a57be577deb434"."tbl_client_sales_rep_rels" SET "end_at"='now()' WHERE ("client_id" IN (146, 982, 1032, 1039, 1077, 1094, 1095, 1098, 1175, 1178, 1661, 1933, 1956, 2044, 2045, 2046, 2115, 2117, 2207, 2219, 2486, 2499, 2500, 2511, 2519, 2520, 2536, 2538, 2539, 2540, 2545, 2551, 2553, 2582, 2589, 2616, 2718, 2719, 2798, 2800, 2803, 2836, 2838, 2845, 3009, 3081, 3278, 3286, 3296, 3301, 3304, 3311, 3327, 3334, 3344, 3364, 3372, 3389)) AND ("end_at" IS NULL) |
16:06:13.992 | 16.5 ms | UPDATE | UPDATE "a57be577deb434"."tbl_schedules" SET "end_at"='now()', "is_complete"=TRUE, "is_closed"=TRUE WHERE ("client_id" IN (146, 982, 1032, 1039, 1077, 1094, 1095, 1098, 1175, 1178, 1661, 1933, 1956, 2044, 2045, 2046, 2115, 2117, 2207, 2219, 2486, 2499, 2500, 2511, 2519, 2520, 2536, 2538, 2539, 2540, 2545, 2551, 2553, 2582, 2589, 2616, 2718, 2719, 2798, 2800, 2803, 2836, 2838, 2845, 3009, 3081, 3278, 3286, 3296, 3301, 3304, 3311, 3327, 3334, 3344, 3364, 3372, 3389)) AND ("is_complete"=FALSE) |
16:06:14.009 | 3.1 ms | UPDATE | UPDATE "a57be577deb434"."tbl_projects" SET "created_by"=1001, "updated_at"='now()' WHERE "id" IN (3958, 3960, 2939) |
16:06:14.013 | 15.0 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (10, 'sales_rep', 146, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 982, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 1032, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 1039, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 1077, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 1094, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 1095, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 1098, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 1175, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 1178, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (2, 'created_by', 3958, 1, 1001, 'now()', '[2]', '[5]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u521b\u5efa\u4eba","d4":["\u5218\u4eba\u8bda"]}'), (2, 'created_by', 3960, 1, 1001, 'now()', '[1]', '[5]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u521b\u5efa\u4eba","d4":["\u5218\u4eba\u8bda"]}'), (10, 'sales_rep', 1661, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 1933, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 1956, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2044, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2045, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2046, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2115, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2117, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2207, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (2, 'created_by', 2939, 1, 1001, 'now()', '[2]', '[5]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u521b\u5efa\u4eba","d4":["\u5218\u4eba\u8bda"]}'), (10, 'sales_rep', 2219, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2486, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2499, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2500, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2511, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2519, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2520, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2536, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2538, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2539, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2540, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2545, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2551, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2553, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2582, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2589, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2616, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2718, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2719, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2798, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2800, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2803, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2836, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2838, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2845, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 3009, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 3081, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 3278, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 3286, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 3296, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 3301, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 3304, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 3311, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 3327, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 3334, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 3344, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 3364, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 3372, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 3389, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}') |
16:06:14.028 | 5.4 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_client_sales_rep_rels" ("client_id", "sales_rep") VALUES (146, 1001), (982, 1001), (1032, 1001), (1039, 1001), (1077, 1001), (1094, 1001), (1095, 1001), (1098, 1001), (1175, 1001), (1178, 1001), (1661, 1001), (1933, 1001), (1956, 1001), (2044, 1001), (2045, 1001), (2046, 1001), (2115, 1001), (2117, 1001), (2207, 1001), (2219, 1001), (2486, 1001), (2499, 1001), (2500, 1001), (2511, 1001), (2519, 1001), (2520, 1001), (2536, 1001), (2538, 1001), (2539, 1001), (2540, 1001), (2545, 1001), (2551, 1001), (2553, 1001), (2582, 1001), (2589, 1001), (2616, 1001), (2718, 1001), (2719, 1001), (2798, 1001), (2800, 1001), (2803, 1001), (2836, 1001), (2838, 1001), (2845, 1001), (3009, 1001), (3081, 1001), (3278, 1001), (3286, 1001), (3296, 1001), (3301, 1001), (3304, 1001), (3311, 1001), (3327, 1001), (3334, 1001), (3344, 1001), (3364, 1001), (3372, 1001), (3389, 1001) |
16:06:14.034 | 2.8 ms | SELECT | SELECT
d.nspname AS table_schema,
c.relname AS table_name,
a.attname AS column_name,
t.typname AS data_type,
a.attlen AS character_maximum_length,
pg_catalog.col_description(c.oid, a.attnum) AS column_comment,
a.atttypmod AS modifier,
a.attnotnull = false AS is_nullable,
CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default,
coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc,
array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values,
CASE atttypid
WHEN 21 /*int2*/ THEN 16
WHEN 23 /*int4*/ THEN 32
WHEN 20 /*int8*/ THEN 64
WHEN 1700 /*numeric*/ THEN
CASE WHEN atttypmod = -1
THEN null
ELSE ((atttypmod - 4) >> 16) & 65535
END
WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/
WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/
ELSE null
END AS numeric_precision,
CASE
WHEN atttypid IN (21, 23, 20) THEN 0
WHEN atttypid IN (1700) THEN
CASE
WHEN atttypmod = -1 THEN null
ELSE (atttypmod - 4) & 65535
END
ELSE null
END AS numeric_scale,
CAST(
information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t))
AS numeric
) AS size,
a.attnum = any (ct.conkey) as is_pkey
FROM
pg_class c
LEFT JOIN pg_attribute a ON a.attrelid = c.oid
LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum
LEFT JOIN pg_type t ON a.atttypid = t.oid
LEFT JOIN pg_namespace d ON d.oid = c.relnamespace
LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p'
WHERE
a.attnum > 0 and t.typname != ''
and c.relname = 'tbl_user_action_logs'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
16:06:14.037 | 3.4 ms | SELECT | select
ct.conname as constraint_name,
a.attname as column_name,
fc.relname as foreign_table_name,
fns.nspname as foreign_table_schema,
fa.attname as foreign_column_name
from
(SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s
FROM pg_constraint ct
) AS ct
inner join pg_class c on c.oid=ct.conrelid
inner join pg_namespace ns on c.relnamespace=ns.oid
inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s]
left join pg_class fc on fc.oid=ct.confrelid
left join pg_namespace fns on fc.relnamespace=fns.oid
left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s]
where
ct.contype='f'
and c.relname='tbl_user_action_logs'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
16:06:14.040 | 8.1 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_user_action_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "users", "description") VALUES (10, 'sales_rep', 146, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 982, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 1032, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 1039, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 1077, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 1094, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 1095, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 1098, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 1175, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 1178, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 1661, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 1933, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 1956, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2044, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2045, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2046, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2115, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2117, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2207, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2219, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2486, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2499, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2500, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2511, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2519, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2520, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2536, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2538, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2539, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2540, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2545, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2551, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2553, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2582, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2589, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2616, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2718, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2719, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2798, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2800, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2803, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2836, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2838, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 2845, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 3009, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 3081, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 3278, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 3286, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 3296, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 3301, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 3304, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 3311, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 3327, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 3334, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 3344, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 3364, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 3372, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}'), (10, 'sales_rep', 3389, 10, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '["\u5218\u4eba\u8bda"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5c06\u5ba2\u6237\u4ece\u81ea\u5df1\u8f6c\u79fb\u7ed9","d3":"\u81ea\u5df1","d4":[]}') |
16:06:14.063 | 1.1 ms | INSERT | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/client/save-transfer', '{"ClientSearch":{"sales_rep":["1001"],"group":"1","client_class":"","has_contact":"","cooperated":"","client_type":"","company_nature":"","client_industry":"","from_contact_name":"","from_contact":"","state_id":"","created_period":"","created_by":""},"is_all":"1","other_period":"currentfascalyear","Filter":{"name":"lost_contact_days","sort":"ASC"},"page":"1","items":["146","982","2538","2616","1933","3081","1661","3389","3372","3364","3344","3334","3327","3311","3304","3301","3296","3286","3278","3009"],"target":"1001","web_access_token":"sXjqURNBCao5nldOR3zGEIU34GY49pIi"}', '{"code":2000,"result":{"status":1},"status":1,"msg":[{"name":"success","success":"\u5ba2\u6237\u5df2\u7ecf\u6210\u529f\u8f6c\u79fb","error":""}],"mod":0}', FALSE, '2025-09-16 16:06:14') RETURNING "id" |