10:47:10.286 | 8.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_unread_comments'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
10:47:10.438 | 1.6 ms | INSERT | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "version_code", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1000, 6, 170, 'v2/comment/list', '{"object_type":"13","object_id":"4141","page":"1","posttime":"1758250030","access_token":"hLtdglndkreOmfJjmOe7Mve0kQO2lAQu","device_type":"6","version_code":"170","token":"fb15ff804dfa7407f3833e643254072e"}', '{"code":200,"data":{"list":[{"id":191378,"object_id":4141,"object_type":"13","parent":null,"description":"\u5218\u4eba\u8bda\u63d0\u4ea4\u4e86\u4ed8\u6b3e\u8bb0\u5f55\uff1a\u800c\u7279\u70ed\u821e\u4ed8\u6b3e\u91d1\u989d1\u5143","created_by":1001,"created_at":"2025-09-15 16:38:10","reply_to":null,"is_system":true,"for_user":null,"description2":"\u91c7\u8d2d\u5408\u540c\uff1a\u800c\u7279\u70ed\u821e","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":false},{"id":191360,"object_id":4141,"object_type":"13","parent":null,"description":"\u5218\u4eba\u8bda\u63d0\u4ea4\u4e86\u4ed8\u6b3e\u8bb0\u5f55\uff1a\u800c\u7279\u70ed\u821e\u4ed8\u6b3e\u91d1\u989d90\u5143","created_by":1001,"created_at":"2025-09-15 15:52:09","reply_to":null,"is_system":true,"for_user":null,"description2":"\u91c7\u8d2d\u5408\u540c\uff1a\u800c\u7279\u70ed\u821e","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":false},{"id":191330,"object_id":4141,"object_type":"13","parent":null,"description":"\u5218\u4eba\u8bda\u63d0\u4ea4\u4e86\u4ed8\u6b3e\u8bb0\u5f55\uff1a\u800c\u7279\u70ed\u821e\u4ed8\u6b3e\u91d1\u989d1\u5143","created_by":1001,"created_at":"2025-09-15 11:25:18","reply_to":null,"is_system":true,"for_user":null,"description2":"\u91c7\u8d2d\u5408\u540c\uff1a\u800c\u7279\u70ed\u821e","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":false},{"id":191280,"object_id":4141,"object_type":"13","parent":null,"description":"\u5218\u4eba\u8bda\u521b\u5efa\u4e86\u4e00\u6761\u91c7\u8d2d\u5408\u540c","created_by":1001,"created_at":"2025-09-12 15:57:14","reply_to":null,"is_system":true,"for_user":null,"description2":"\u91c7\u8d2d\u5408\u540c\uff1a\u800c\u7279\u70ed\u821e","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":false}],"unread":0,"pagenation":{"totalcount":4,"thispage":1,"pagesize":20}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}]}', FALSE, '2025-09-19 10:47:10') RETURNING "id" |