Loading

摘要: 先看下代码 public class JVMDemo { public static void main(String[] args) { String s1 = "ab"; //new String() -> jdk1.8后永远指向常量池中的引用(没有就在常量池中创建,不会把s2复制到常量池(区别 阅读全文
posted @ 2022-05-17 17:57 yisk 阅读(73) 评论(0) 推荐(0)
摘要: 查看PostgreSQL锁表信息 一、查询PG_STAT_ACTIVITY的信息 SELECT * FROM pg_stat_activity where datname='bms' and wait_event_type='Lock' 二、通过pid解锁死锁信息 select pg_cancel_ 阅读全文
posted @ 2022-05-17 11:03 yisk 阅读(1126) 评论(0) 推荐(0)