postgres
harveymomo
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
postgres12 时间点恢复
1.开启归档:(postgresql.conf) archive_mode = on archive_command = 'test ! -f /data/pgdata/archivedir/%f && cp %p /data/pgdata/archivedir/%f' archive_timeout = 60s 2. 首先postgres 用户下基础备份: pg_b...原创 2020-03-04 17:51:35 · 660 阅读 · 0 评论 -
PostgreSQL怎么在查询时,得到时间对应周的周一日期
用时间值减去获取的周几数值与1的差组成的日期间隔。示例: select current_timestamp - (extract (dow from current_timestamp) - 1 || ' day')::interval 其中,current_timestamp是获取当前的时间值,extract (dow from current_timestamp)是获取周几的数值(以周日为一周...转载 2019-04-30 11:41:44 · 7291 阅读 · 2 评论 -
postgresql分页查询
PostgreSQL两种分页方法查询时间比较 2015年09月24日 13:43:20归田阅读数:23150 版权声明:欢迎转载 https://blog.youkuaiyun.com/qq924862077/article/details/48710247 数据库中存了3000W条数据,两种分页查询测试时间 第一种 SELECT * FROM test_table WHERE i...转载 2019-05-15 09:07:49 · 2862 阅读 · 0 评论 -
PG插件
yum install -y postgresql10* postgis24_10* pgrouting_10* \ osm2pgrouting_10* plpgsql_check_10* pgbadger pg_top10* \ hypopg_10* citus_10* cstore_fdw_10* pg_pathman10* orafce10* \ p...转载 2019-05-30 15:48:37 · 4989 阅读 · 0 评论
分享