10:16:38.327 | 7.0 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_unread_comments'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
10:16:38.451 | 1.2 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/comment/list', '{"object_type":"9","object_id":"16757","page":"1","web_access_token":"IB4L4uAW8bjXvE6-5qxkaUjtqmmYbCm_"}', '{"code":2000,"result":{"list":[{"id":139007,"object_id":16757,"object_type":"9","parent":{},"description":"\u5218\u4eba\u8bda\u5b8c\u6210\u4e86\u4e00\u6761\u5f85\u529e\u4e8b\u9879","created_by":1001,"created_at":"2024-05-29 09:55:27","reply_to":"","is_system":true,"for_user":"","description2":"HPC\u7f51\u7ad9\u65b0\u589e\u6848\u4f8b","comments":[],"attachmentRelationships":[],"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","userMetas":[{"user_id":1001,"avatar":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}]},"can_delete":true},{"id":139006,"object_id":16757,"object_type":"9","parent":{},"description":"\u5218\u4eba\u8bda\u66f4\u65b0\u4e86\u4e00\u6761\u5f85\u529e\u4e8b\u9879","created_by":1001,"created_at":"2024-05-29 09:55:27","reply_to":"","is_system":true,"for_user":"","description2":"HPC\u7f51\u7ad9\u65b0\u589e\u6848\u4f8b","comments":[],"attachmentRelationships":[],"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","userMetas":[{"user_id":1001,"avatar":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}]},"can_delete":true},{"id":132172,"object_id":16757,"object_type":"9","parent":{},"description":"\u5218\u4eba\u8bda\u65b0\u5efa\u4e86\u4e00\u6761\u5f85\u529e\u4e8b\u9879","created_by":1011,"created_at":"2024-04-08 13:41:38","reply_to":"","is_system":true,"for_user":"","description2":"HPC\u7f51\u7ad9\u65b0\u589e\u6848\u4f8b","comments":[],"attachmentRelationships":[],"createdBy":{"id":1011,"key":1011,"name":"\u97e9\u96c5\u82b3","sex":"F","userMetas":[{"user_id":1011,"avatar":"\/files\/cdn\/a57be577deb434\/avatar\/b54747f4-248d-380e-93bc-0f62f769e70d.png"}]},"can_delete":false},{"id":132171,"object_id":16757,"object_type":"9","parent":{},"description":"\u97e9\u96c5\u82b3\u4e3a\u5218\u4eba\u8bda\u65b0\u5efa\u4e86\u4e00\u4e2a\u5f85\u529e\u4e8b\u9879","created_by":1011,"created_at":"2024-04-08 13:41:38","reply_to":"","is_system":true,"for_user":"","description2":"HPC\u7f51\u7ad9\u65b0\u589e\u6848\u4f8b","comments":[],"attachmentRelationships":[],"createdBy":{"id":1011,"key":1011,"name":"\u97e9\u96c5\u82b3","sex":"F","userMetas":[{"user_id":1011,"avatar":"\/files\/cdn\/a57be577deb434\/avatar\/b54747f4-248d-380e-93bc-0f62f769e70d.png"}]},"can_delete":false}],"unread":1,"count":4,"pagenation":{"totalcount":4,"thispage":1,"pagesize":20}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0}', FALSE, '2025-07-24 10:16:38') RETURNING "id" |