![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PostgreSQL
入秋枫叶
大道至简
展开
-
PostgreSQL数据库锁查询及终止
查询出死锁的进程ID(blocking_pid),手工终止原创 2022-08-31 09:09:29 · 1359 阅读 · 1 评论 -
PostgreSQL 自动生成 UUID(Guid)
系统:Windows 10版本:PostgreSQL 10.4PostgreSQL 支持 UUID(Guid) 类型,但是却不能直接去用,因为默认安装的postgresql 是不带 UUID 函数的,那怎么生成一个 UUID 呢,以下是搜索到的针对不同系统的不同解决方案,Windows 10 已验证可行。Linux 环境下:从安装目录下 share/contrib 下找 uuid...原创 2019-03-07 15:39:37 · 43508 阅读 · 0 评论 -
PostgreSQL获取当前时间的方式
PostgreSQL 当中有四种方式获取当前时间。1. now()通过 now() 获取的时间是最完整的时间,包括时区,秒也保留到了6位小数select now();得到结果:'2014-12-24 09:28:31.545145+08'2. current_timestamp 效果是和 now() 一样的。select current_timestamp;得到结果:'...转载 2019-03-07 15:57:07 · 8736 阅读 · 0 评论