TimescaleDB
文章平均质量分 87
yang_z_1
这个作者很懒,什么都没留下…
展开
-
postgresql 数据库 timescaledb 函数time_bucket_gapfill()报错解决及更换 license
最近在工作中使用postgresql 和 timescaledb 的time_bucket_gapfill()函数 报错,让更换license,在网上找了一大圈,没有找到,最后解决了这个问题,这篇文章记录我的解决办法查看timescaledb.license参数命令:show timescaledb.license;修改命令:结果不行,报错如下:lter system set timescaledb.license=‘timescale’;那只能换包了如果出现上面那种情况,那我们只能先从官网上下载带 '原创 2022-07-06 10:56:01 · 2537 阅读 · 4 评论 -
Centos7 安装 PostgreSql 14 数据库 和 timescaledb 时序库
Centos7 安装 PostgreSql 14 数据库 和 timescaledb 时序库文章目录Centos7 安装 PostgreSql 14 数据库 和 timescaledb 时序库一 准备工作二 开始部署 PostgreSql 14 数据库2.1 下载postgres 14 rpm 安装2.2 直接安装2.3 初始化数据库2.4 修改服务启动脚本2.5 修改数据库配置2.6 开启防火墙端口2.7 启动数据库服务2.8 修改数据库postgres用户密码2.9 验证数据库三 开始原创 2022-02-24 08:00:00 · 4310 阅读 · 18 评论 -
timescaledb 时序库备份还原 遇到的问题与解决
timescaledb 时序库备份还原时 , 我对时序库采用以下命令进行全库备份/usr/pgsql-11/bin/pg_dump --file "/u01/pgsql.backup" --host "10.10.2.116" --port "5432" --username "postgres" --dbname "hrmwv2-yjb" --verbose --role "postgres" --format=c --blobs --encoding "UTF8"还原命令如下cs=# SEL原创 2021-07-20 10:38:31 · 2376 阅读 · 10 评论 -
postgresql数据库 timescaledb 时序库 超级表 块的压缩(compress_chunk()的应用)
postgresql数据库 timescaledb 时序库 超级表 块的压缩(compress_chunk()的应用)文章目录postgresql数据库 timescaledb 时序库 超级表 块的压缩(compress_chunk()的应用)前言compress_chunk()参数使用步骤1.改为超表2.把超表改为可压缩状态3.压缩解压缩查看压缩后状态压缩前压缩后查询压缩后空间状态压缩后存放的位置前言在工作中,使用postgresql数据库 尤其是timescaledb 时序库往往会遇到一些问题:原创 2021-04-12 11:59:07 · 3398 阅读 · 17 评论 -
postgresql 数据库 timescaledb数据库 创建超表 遇见的的问题 报错
postgresql 数据库 timescaledb数据库 创建超表 遇见的的问题 报错文章目录postgresql 数据库 timescaledb数据库 创建超表 遇见的的问题 报错一 cannot create a unique index without the column "create_time" (used in partitioning)二 DETAIL: It is not possible to turn temporary or unlogged tables into hy原创 2021-03-03 10:51:19 · 4546 阅读 · 15 评论 -
postgresql数据库 timescaledb 时序库 把大数据量表转换为超表
postgresql数据库 timescaledb 时序库 把大数据量表转换为超表文章目录postgresql数据库 timescaledb 时序库 把大数据量表转换为超表一 创建新表二 把新表改为超表三 插入数据1.数据量不大的情况可以直接插入2.如果数据量比较大 可以采取 一天一天 插入 或者一个月 或者几个月一起插入3.运用函数(储存过程)四 查看效果前言这几天工作的时候发现在 timescaledb 时序库 中有部分大数据量的表不是超表,估计是当时建库的时候没有改 影响插入,查询效率 ,因此需原创 2021-02-03 10:02:27 · 4922 阅读 · 10 评论 -
安装 部署 postgresql数据库 搭建timescaledb数据库 (时序库)
安装 部署 postgresql数据库 搭建主从节点 (时序库)文章目录安装 部署 postgresql数据库 搭建主从节点 (时序库)一 pg数据库搭建1. 安装 yum源(服务器可访问互联网时用)2. 安装客户端3. 安装服务端4. 初始化数据库5. 修改服务启动脚本6. 修改数据库配置7. 开启防火墙端口8. 启动数据库服务9. 修改数据库postgres用户密码二 安装插件三 把postgres 改成 timescaledb时序库1 安装 timescaledb-postgresql-原创 2021-02-02 15:51:08 · 2645 阅读 · 4 评论 -
postgresql数据库 TimescaleDB 时序库 API 函数介绍
postgresql数据库 TimescaleDB 时序库 API 函数介绍文章目录postgresql数据库 TimescaleDB 时序库 API 函数介绍一 show_chunks() 查看分区块二 drop_chunks() 删除分区块三 create_hypertable() 创建超表四 add_dimension() 添加额外的分区一 show_chunks() 查看分区块查看分区块获取与超表关联的块列表。可选参数NameDescriptionhypertabl原创 2021-01-19 14:13:59 · 2280 阅读 · 1 评论 -
postgresql 数据库 TimescaleDB 修改分区时间(范围)
postgresql 数据库 TimescaleDB 修改分区时间(范围)文章目录postgresql 数据库 TimescaleDB 修改分区时间(范围)创建超表 create_hypertable()修改分区 set_chunk_time_interval()一.查看分区情况二.修改分区时间 set_chunk_time_interval()三.查看 修改结果今天遇到一个问题 之前用TimescaleDB创建的超表 是已7天为单位的 由于7天的数据量过大 影响查询效率 需要把7天的分区改为一天原创 2021-01-18 12:02:03 · 4387 阅读 · 14 评论 -
postgresql 数据库 与TimescaleDB 时序库 join 在一起
postgresql 数据库 与TimescaleDB 时序库 join 在一起之前在CSDN阅读资料时,发现有人问怎么把 postgresql数据库 的表 跟TimescaleDB 时序库的表 join在一起,正好我在查询数据的时候遇到过这个问题 ,我说一下我的解决方案我选择的是postgresql数据库的fdw功能(postgres_fdw插件)**一 安装postgres_fdw插件1.1安装postgres_fdw插件**su – postgres-bash-4.2$ psqlpo原创 2020-12-26 17:01:23 · 522 阅读 · 3 评论 -
postgresql数据库 timescaledb数据库 还原数据库
postgrs timescaledb数据库 还原数据库最近碰到一个问题 timescaledb数据库 所在的服务器内存满了 新加一个盘 考虑如何迁移过去因为 timescaledb数据库 是不断上传数据的 考虑到尽可能的减少数据丢失 考虑用新建表空间的方式来迁移数据,方法如下一 .建立表空间首先建立表空间 tbs_cs1 指定路径在新盘上1. 创建目录mkdir -p /u01/cs/pgdata2.分配权限[root@localhost ~]# chown postgres:pos原创 2020-12-17 11:30:40 · 2352 阅读 · 6 评论 -
postgresql数据库 TimescaleDB 定时压缩超表 删除超表(块)
**postgresql数据库 TimescaleDB 定时压缩超表 删除超表(块)**在工作中 使用postgresql数据库 TimescaleDB 时序库进行存储实时数据,采集的数据量过大,提供的内存不足,因此考虑如何保存数据TimescaleDB数据库中的超级表TimescaleDB数据库自身带着函数就可以实现**TimescaleDB数据库所携带函数一 .压缩 SELECT compress_chunk()**为了尽量不丢失数据,避免删除数据 我首先考虑把数据压缩,用他自原创 2020-12-23 10:47:28 · 6908 阅读 · 16 评论