随笔分类 -  DB优化

摘要:背景:开发从聚石塔拉数据到我司服务器,如果相关状态有变化,会删除原先保留在我司数据库上的数据,再insert数据。 DELETE FROM trade WHERE tid IN (1700364470286966980, 2947548566741856246, 294877072863932676 阅读全文
posted @ 2022-10-14 09:06 青空如璃 阅读(32) 评论(0) 推荐(0) 编辑
摘要:PostgreSQL支持在线创建索引(CREATE INDEX CONCURRENTLY),不堵塞其他会话对被创建索引表的DML(INSERT,UPDATE,DELETE)操作。 PostgreSQL 提供了一个创建索引的高效特性,即“并发索引”。此功能允许我们在关系上创建索引,而不会阻塞读写设施。 阅读全文
posted @ 2022-10-12 10:24 青空如璃 阅读(1601) 评论(0) 推荐(0) 编辑
摘要:postgres=# select * from pg_control_system(); pg_control_version | catalog_version_no | system_identifier | pg_control_last_modified + + + 1300 | 2021 阅读全文
posted @ 2022-09-20 16:50 青空如璃 阅读(365) 评论(0) 推荐(0) 编辑
摘要:1.下载 https://github.com/Luckyness/passwordcheck.git 2.使用方式 [root@harbor contrib]# cat /data/tools/passwordcheck/README.md # 1.使用方式* 替换目录 ../postgresql 阅读全文
posted @ 2022-09-17 15:35 青空如璃 阅读(737) 评论(0) 推荐(0) 编辑
摘要:psql (14.3)Type "help" for help. postgres=# \df+ pg_export_snapshot List of functions Schema | Name | Result data type | Argument data types | Type | 阅读全文
posted @ 2022-09-12 11:37 青空如璃 阅读(117) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示