云主机开年特惠28.8元/年,0元秒杀等你来抢!
查看详情

活动

天翼云最新优惠活动,涵盖免费试用,产品折扣等,助您降本增效!
热门活动
  • 安全隔离版OpenClaw NEW OpenClaw云服务器专属“龙虾“套餐低至1.5折起
  • 天翼云新春焕新季 NEW 云主机开年特惠28.8元/年,0元秒杀等你来抢!
  • 云上钜惠 爆款云主机全场特惠,2核4G只要1.8折起!
  • 中小企业服务商合作专区 国家云助力中小企业腾飞,高额上云补贴重磅上线
  • 出海产品促销专区 NEW 爆款云主机低至2折,高性价比,不限新老速来抢购!
  • 天翼云奖励推广计划 加入成为云推官,推荐新用户注册下单得现金奖励
免费活动
  • 免费试用中心 HOT 多款云产品免费试用,快来开启云上之旅
  • 天翼云用户体验官 NEW 您的洞察,重塑科技边界

息壤智算

领先开放的智算服务平台,提供算力、平台、数据、模型、应用“五位一体”智算服务体系,构建全流程的AI基础设施能力
AI Store
  • 算力市场
  • 模型市场
  • 应用市场
  • MCP市场
公共算力服务
  • 裸金属
  • 定制裸金属
训推服务
  • 模型开发
  • 训练任务
  • 服务部署
模型推理服务
  • 模型广场
  • 体验中心
  • 服务接入
应用托管
  • 应用实例
科研助手
  • 科研智能体
  • 科研服务
  • 开发机
  • 并行计算
大模型
  • DeepSeek-V3.1
  • DeepSeek-R1-0528
  • DeepSeek-V3-0324
  • Qwen3-235B-A22B
  • Qwen3-32B
智算一体机
  • 智算一体机
模型适配专家服务
  • 模型适配专家服务
算力服务商
  • 入驻算力服务商

应用商城

天翼云精选行业优秀合作伙伴及千余款商品,提供一站式云上应用服务
进入甄选商城进入云市场进入AI Store创新解决方案公有云生态专区智云上海应用生态专区
建站工具
  • 新域名服务
  • SSL证书
  • 翼建站
企业办公
  • 安全邮箱
  • WPS 365 天翼云版
  • 天翼企业云盘(标准服务版)
灾备迁移
  • 云管家2.0
  • 翼备份(SaaS版)

定价

协助您快速了解云产品计费模式、价格详情,轻松预估上云成本
价格计算器
  • 动态测算产品价格
定价策略
  • 快速了解计费模式

合作伙伴

天翼云携手合作伙伴,共创云上生态,合作共赢
天翼云生态合作中心
  • 天翼云生态合作中心
天翼云渠道合作伙伴
  • 天翼云代理渠道合作伙伴
天翼云服务合作伙伴
  • 天翼云集成商交付能力认证
天翼云应用合作伙伴
  • 天翼云云市场合作伙伴
  • 天翼云甄选商城合作伙伴
天翼云技术合作伙伴
  • 天翼云OpenAPI中心
天翼云培训认证
  • 天翼云学堂
  • 天翼云市场商学院
天翼云合作计划
  • 云汇计划
天翼信创云专区
  • 信创云专区
  • 适配互认证

开发者

开发者相关功能入口汇聚
技术社区
  • 专栏文章
  • 互动问答
  • 技术视频
资源与工具
  • OpenAPI中心
培训与认证
  • 天翼云学堂
  • 天翼云认证
开源社区
  • 魔乐社区
  • OpenTeleDB

支持与服务

为您提供全方位支持与服务,全流程技术保障,助您轻松上云,安全无忧
文档与工具
  • 文档中心
  • 新手上云
  • 自助服务
  • OpenAPI中心
定价
  • 价格计算器
  • 定价策略
基础服务
  • 售前咨询
  • 在线支持
  • 在线支持
  • 工单服务
  • 服务保障
  • 会员中心
增值服务
  • 红心服务
  • 首保服务
  • 客户支持计划
  • 专家技术服务
  • 备案管家
我要反馈
  • 建议与反馈
  • 用户体验官
信息公告
  • 客户公告

了解天翼云

天翼云秉承央企使命,致力于成为数字经济主力军,投身科技强国伟大事业,为用户提供安全、普惠云服务
品牌介绍
  • 关于天翼云
  • 智算云
  • 天翼云4.0
  • 新闻资讯
  • 天翼云APP
基础设施
  • 全球基础设施
  • 信任中心
最佳实践
  • 精选案例
  • 超级探访
  • 云杂志
  • 分析师和白皮书
  • 天翼云·创新直播间
市场活动
  • 2025智能云生态大会
  • 2024智算云生态大会
  • 2023云生态大会
  • 2022云生态大会
  • 天翼云中国行
天翼云
  • 活动
  • 息壤智算
  • 产品
  • 解决方案
  • 应用商城
  • 定价
  • 合作伙伴
  • 开发者
  • 支持与服务
  • 了解天翼云
      • 文档
      • 控制中心
      • 备案
      • 管理中心
      天翼云云网融合解决方案_相关内容
      • 返回两个结果的交集
        id nickname + 3 pg
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V4.0.0版本产品文档
        开发手册
        数据库基础开发
        DML操作
        SELECT语法
        返回两个结果的交集
      • copy使用
        COPY 用于表和标准文件系统文件之间数据互相复制。 COPY 用于 TeleDB表和标准文件系统文件之间数据互相复制。COPY TO 可以把一个表的内容复制到一个文件,COPY FROM 可以从一个文件复制数据到一个表(数据以追加形式入库),COPY TO 也能复制一个SELECT查询的结果到一个文件。如果指定了一个列清单,COPY将只把指定列的数据复制到文件或者从文件复制数据到指定列。如果表中有列不在列清单中,COPY FROM将会为那些列插入默认值。 使用COPY 时,TeleDB服务器直接从本地 一个文件读取或者写入到一个文件。该文件必须是TeleDB用户(运行服务器的用户ID)可访问的并且应该以服务器的视角来指定其名称。 实验表结构及数据 plaintext teledb select from t; id name birth city +++ 1 张三 20001201 00:00:00 北京 2 李四 19970324 00:00:00 上海 3 王五 20040901 00:00:00 广州 (3 rows) teledb d+ t Table "public.t" Column Type Collation Nullable Default Storage S tats target Description ++++++ + id integer not null nextval('tintseq'::regclass) plain name character varying extended birth timestamp(0) without time zone plain city character varying extended Indexes: "tpkey" PRIMARY KEY, btree ("id") Distribute By: SHARD(id) Location Nodes: ALL DATANODES
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V5.0.0版本产品文档
        开发手册
        数据库基础开发
        copy使用
      • gin索引
        explain select from ginmul where f12 and f3'20190218 16:59:52.872523'; QUERY PLAN Remote Fast Query Execution (cost0.00..0.00 rows0 width0) Node/s: dn01 > Bitmap Heap Scan on ginmul (cost36.00..40.02 rows1 width90) Recheck Cond: ((f1 2) AND (f3 '20190218 16:59:52.872523'::timestamp without time zone)) > Bitmap Index Scan on ginmulginidx (cost0.00..36.00 rows1 width0) Index Cond: ((f1 2) AND (f3 '20190218 16:59:52.872523'::timestamp without time zone)) (6 rows) 三字段组合索引 plaintext teledb explain select from ginmul where f12 and f3'20190218 16:59:52.872523' and f6'fa627dc16c2bd026150afa0453a0991d'; QUERY PLAN Remote Fast Query Execution (cost0.00..0.00 rows0 width0) Node/s: dn01 > Bitmap Heap Scan on ginmul (cost52.00..56.02 rows1 width90) Recheck Cond: ((f1 2) AND (f3 '20190218 16:59:52.872523'::timestamp without time zone) AND (f6 'fa627dc16c2bd026150afa0453a0991d'::text)) > Bitmap Index Scan on ginmulginidx (cost0.00..52.00 rows1 width0) Index Cond: ((f1 2) AND (f3 '20190218 16:59:52.872523'::timestamp without time zone) AND (f6 'fa627dc16c2bd026150afa0453a0991d'::text)) (6 rows)
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V5.0.0版本产品文档
        开发手册
        数据库基础开发
        DML操作
        索引管理
        gin索引
      • 视图管理
        f1 f2 f3 ++ 1 20230822 11:06:16.9783 1 2 20230822 11:06:16.9783 50 2 20230822 11:06:16.9783 110 3 20230822 11:06:16.9783 100
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V4.0.0版本产品文档
        开发手册
        数据库基础开发
        DDL操作
        视图管理
      • TRUNCATE操作
        truncate ttimerange partition for ('20170901' ::timestamp without time zone); TRUNCATE TABLE teledb select from ttimerange; f1 f2 f3 ++ 1 20171001 00:00:00 100 1 20171101 00:00:00 100 (2 rows) truncate 一个数字分区表。 plaintext teledb select from trange; f1 f2 f3 ++ 1 20230823 10:29:46.263768 1 2 20230823 10:29:46.263768 50 2 20230823 10:29:46.263768 110 3 20230823 10:29:46.263768 100 (4 rows) teledb d+ trange Table "public.trange" Column Type Collation Nullable Default Storage Stats target Description +++++++ f1 bigint plain f2 timestamp without time zone now() plain f3 integer plain Distribute By: SHARD(f1) Location Nodes: ALL DATANODES Partition By: RANGE(f3) Of Partitions: 3 Start With: 1 Interval Of Partition: 50 teledb truncate trange partition for (1); TRUNCATE TABLE teledb truncate trange partition for (2); TRUNCATE TABLE teledb select from trange; f1 f2 f3 ++ 2 20230823 10:29:46.263768 110 3 20230823 10:29:46.263768 100 (2 rows)
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V4.0.0版本产品文档
        开发手册
        数据库基础开发
        DDL操作
        TRUNCATE操作
      • gin索引
        本文为您介绍如何使用gin索引。 pgtrgm索引(此功能需加载插件 pgtrgm) plaintext teledb drop index ttrgmtrgmidx; DROP INDEX teledb create index ttrgmtrgmidx on ttrgm using gin(trgm gintrgmops); CREATE INDEX jsonb索引 plaintext teledb create table tjsonb(id int,fjsonb jsonb); CREATE TABLE teledb create index tjsonbfjsonbidx on tjsonb using gin(fjsonb); CREATE INDEX 数组索引 plaintext teledb create table tarray(id int, mc text[]); CREATE TABLE teledb insert into tarray select t,('{'md5(t::text)'}')::text[] from generateseries(1,1000000) as t; INSERT 0 1000000 teledb analyze; ANALYZE teledb timing Timing is on. teledb explain select from tarray where mc @> ('{'md5('1')'}')::text[]; QUERY PLAN Remote Fast Query Execution (cost0.00..0.00 rows0 width0) Node/s: dn01, dn02 > Gather (cost1000.00..13094.09 rows2503 width61) Workers Planned: 2 > Parallel Seq Scan on tarray (cost0.00..11843.79 rows1043 width61) Filter: (mc @> ((('{'::text 'c4ca4238a0b923820dcc509a6f75849b'::text) '}'::text))::text[]) (6 rows) Time: 21.368 ms teledb select from tarray where mc @> ('{'md5('1')'}')::text[]; id mc + 1 {c4ca4238a0b923820dcc509a6f75849b} (1 row) Time: 431.788 ms teledb
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V4.0.0版本产品文档
        开发手册
        数据库基础开发
        DDL操作
        索引管理
        gin索引
      • 添加分区子表
        Column Type Collation Nullable Default Storage Stats target Description +++++++ f1 bigint plain f2 timestamp without time zone now() plain f3 integer plain
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V4.0.0版本产品文档
        开发手册
        数据库基础开发
        DDL操作
        数据表管理
        添加分区子表
      • 删除数据表
        本文为您介绍如何删除数据表。 删除当前模式下的数据表。 plaintext teledb drop table t; DROP TABLE 删除某个模式下数据表。 plaintext teledb d+ t Table "public.t" Column Type Collation Nullable Default Storage Stats target Description +++++++ id integer plain mc text extended Distribute By: SHARD(id) Location Nodes: ALL DATANODES teledb d+ tas Table "public.tas" Column Type Collation Nullable Default Storage Stats target Description +++++++ id integer plain mc text extended Distribute By: SHARD(id) Location Nodes: ALL DATANODES teledb drop table public.test; DROP TABLE 删除数据表,不存在时不执行,不报错。 plaintext teledb drop table IF EXISTS t; NOTICE: table "t" does not exist, skipping DROP TABLE 使用CASCADE无条件删除数据表。 plaintext teledb create view shardview as select from testshard; CREATE VIEW teledb drop table testshard; ERROR: cannot drop table testshard because other objects depend on it DETAIL: view shardview depends on table testshard HINT: Use DROP ... CASCADE to drop the dependent objects too. teledb drop table testshard cascade; NOTICE: drop cascades to view shardview DROP TABLE
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V5.0.0版本产品文档
        开发手册
        数据库基础开发
        DML操作
        数据表管理
        删除数据表
      • 指定模式创建表
        本文为您介绍如何指定模式创建表。 plaintext teledb create table public.t1(id int,mc text); CREATE TABLE
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V4.0.0版本产品文档
        开发手册
        数据库基础开发
        DDL操作
        数据表管理
        指定模式创建表
      • 使用 IF NOT EXISTS
        本页为您介绍如何使用使用 IF NOT EXISTS关键字。 带IF NOT EXISTS 关键字作用表示表不存在时才创建。 plaintext teledb create table t(id int,mc text); CREATE TABLE teledb create table t(id int,mc text); ERROR: relation "t" already exists teledb create table IF NOT EXISTS t(id int,mc text); NOTICE: relation "t" already exists, skipping CREATE TABLE
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V4.0.0版本产品文档
        开发手册
        数据库基础开发
        DDL操作
        数据表管理
        使用 IF NOT EXISTS
      • 逻辑分区表
        CREATE TABLE tnativerangedefault PARTITION OF tnativerange DEFAULT; CREATE TABLE teledb insert into tnativerange values(1,'20160901',1); INSERT 0 1 list分区表 创建主分区 plaintext teledb create table tnativelist(f1 bigserial not null,f2 text, f3 integer,f4 date) partition by list( f2 ) distribute by shard(f1); CREATE TABLE 建立两个子表,分别存入“广东”和“北京” plaintext teledb create table tlistgd partition of tnativelist(f1 ,f2 , f3,f4) for values in ('广东'); CREATE TABLE teledb create table tlistbj partition of tnativelist(f1 ,f2 , f3,f4) for values in ('北京'); CREATE TABLE 看表结构 plaintext teledb d+ tnativelist Table "public.tnativelist" Column Type Collation Nullable Default Storage Stats target Description ++++++ + f1 bigint not null nextval('tnativelistf1seq'::regclass) plain f2 text extended f3 integer plain f4 timestamp(0) without time zone plain Partition key: LIST (f2) Partitions: tlistbj FOR VALUES IN ('北京'), tlistgd FOR VALUES IN ('广东') Distribute By: SHARD(f1) Location Nodes: ALL DATANODES 创建default 分区 没有default 分区情况下会出错,插入会出错。 plaintext teledb insert into tnativelist values(1,'上海',1,currentdate); ERROR: node:dn01, backendpid:40092, nodename:dn01,backendpid:40092,message:no partition of relation "tnativelist" found for row DETAIL: Partition key of the failing row contains (f2) (上海). 创建后就能正常插入。 plaintext teledb
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V4.0.0版本产品文档
        开发手册
        数据库基础开发
        DDL操作
        数据表管理
        逻辑分区表
      • 存储组管理
        oid groupname defaultgroup groupmembers +++ 57353 group2 0 16386 57352 group1 1 16385
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V4.0.0版本产品文档
        开发手册
        数据库基础开发
        DDL操作
        存储组管理
      • TeleDB管控服务安装部署
        安装后验证 1. 打开浏览器访问dcp地址: 2. 能访问,并登录表示安装成功。 卸载服务 执行forceclean.sh脚本,可卸载服务。
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V5.0.0版本产品文档
        安装部署手册
        安装过程
        TeleDB管控服务安装部署
      • all 用法
        本文介绍如何在使用SELECT语法时添加all条件。 需要大于所有值才为真。 plaintext teledb select from teledbpg where id > all (select 1 union select 3); id nickname + 4 (1 row)
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V5.0.0版本产品文档
        开发手册
        数据库基础开发
        DDL操作
        SELECT语法
        all 用法
      • any 用法
        本文介绍如何在使用SELECT语法时添加any条件。 只需要大于其中一个值即为真。 plaintext teledb select from teledbpg where id > any (select 1 union select 3); id nickname + 3 pg 4 2 TELEDB (3 rows)
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V5.0.0版本产品文档
        开发手册
        数据库基础开发
        DDL操作
        SELECT语法
        any 用法
      • json 应用
        本文为您介绍json应用的相关操作。 创建json 类型字段表 plaintext teledb create table tjson(id int,fjson json); CREATE TABLE 插入数据 plaintext teledb insert into tjson values(1,'{"col1":1,"col2":"teledb"}'); INSERT 0 1 teledb insert into tjson values(2,'{"col1":1,"col2":"teledb","col3":"pgxz"}'); INSERT 0 1 teledb select from tjson; id fjson + 1 {"col1":1,"col2":"teledb"} 2 {"col1":1,"col2":"teledb","col3":"pgxz"} (2 rows) 通过键获得json对象域 plaintext teledb select fjson >'col2' as col2 ,fjson > 'col3' as col3 from tjson; col2 col3 + "teledb" "teledb" "pgxz" (2 rows) 以文本形式获取对象值 plaintext teledb select fjson >>'col2' as col2 ,fjson >> 'col3' as col3 from tjson; col2 col3 + teledb teledb pgxz (2 rows) teledb select fjson >>'col2' as col2 ,fjson >> 'col3' as col3 from tjson where fjson >> 'col3' is not null; col2 col3 + teledb pgxz (1 row)
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V5.0.0版本产品文档
        开发手册
        数据库基础开发
        json和jsonb使用
        json 应用
      • 视图管理
        本文为您介绍如何管理视图,包括创建视图、删除视图和物化视图使用。 创建视图 plaintext teledb create view trangeview as select from trange; CREATE VIEW teledb select from trangeview; f1 f2 f3 ++ 1 20230822 11:06:16.9783 1 2 20230822 11:06:16.9783 50 2 20230822 11:06:16.9783 110 3 20230822 11:06:16.9783 100 (4 rows) 数据类型重定义。 plaintext teledb drop view trangeview; DROP VIEW teledb create view trangeview as select f1,f2::date from trange; CREATE VIEW teledb select from trangeview; f1 f2 + 1 20230822 3 20230822 2 20230822 2 20230822 (4 rows) 数据类型重定义,以及取别名。 plaintext teledb drop view trangeview; DROP VIEW teledb create view trangeview as select f1,f2::date as mydate from trange; CREATE VIEW teledb select from trangeview; f1 mydate + 1 20230822 2 20230822 2 20230822 3 20230822 (4 rows) TeleDB支持视图引用表或字段改名联动,不受影响。 plaintext teledb d+ trangeview View "teledb.trangeview" Column Type Collation Nullable Default Storage Description ++++++ f1 bigint plain mydate date plain View definition: SELECT trange.f1, trange.f2::date AS mydate FROM trange; teledb
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V5.0.0版本产品文档
        开发手册
        数据库基础开发
        DML操作
        视图管理
      • 只查某个DN的数据
        本文介绍只查询某个DN数据的操作。 plaintext teledb execute direct on (dn01) 'select from teledbpg'; id nickname + 1 teledb 1 hello,pgxc 2 TELEDB (3 rows) teledb execute direct on (dn02) 'select from teledbpg'; id nickname + 3 pg 4 (2 rows)
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V5.0.0版本产品文档
        开发手册
        数据库基础开发
        DDL操作
        SELECT语法
        只查某个DN的数据
      • 聚合函数并发计算
        本文介绍如何在使用SELECT语法时进行聚合函数并发计算。 plaintext teledb set maxparallelworkerspergather to 0; SET Time: 0.214 ms teledb select count(1) from tcount; count 20000000 (1 row) Time: 2700.569 ms (00:02.701) teledb set maxparallelworkerspergather to 2; SET Time: 0.269 ms teledb select count(1) from tcount; count 20000000 (1 row) Time: 1867.719 ms (00:01.868)
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V5.0.0版本产品文档
        开发手册
        数据库基础开发
        DDL操作
        SELECT语法
        聚合函数并发计算
      • 实例服务器初始化及实例开通
        该任务用于指导用户完成实例服务器初始化及实例开通。 前提条件 每台主机均已进行环境初始化。 操作步骤 1. 以用户名和密码登录TeleDB控制台。 2. 创建实例开通租户用户 1. 将鼠标置于分布式数据库TeleDB控制台右上角头像图标,在出现的下拉框,选择系统管理,进入租户列表页面。 2. 在租户列表页面,单击创建租户 ,出现新增租户对话框。 3. 在新增租户 对话框,填写租户名称 、租户编码 和租户描述 ,单击确定完成创建租户。 租户名称:必选,可自定义,根据业务需求填写。 租户编码:必选,可自定义,根据业务需求填写。 租户描述:可选,根据业务需求填写。 4. 您可单击目标租户所在行操作列编辑,修改租户信息。 5. 您可单击目标租户所在行操作列删除,删除租户。 3. 添加服务器 1. 切换至实例管理页面,在左侧导航树选择资源管理 > 服务器管理,进入服务器管理页面。 2. 在服务器管理页面,单击添加服务器 ,出现新增服务器对话框。 3. 在新增服务器对话框,根据下表填写基本信息,单击测试连通及硬件检测 ,若出现绿色标识,单击确定,完成服务器添加。 参数名称 说明 服务器IP地址 根据部署规划填写。 SSH账号 根据实际情况填写。 SSH密码 根据实际情况填写。 SSH端口 根据部署规划填写,确保端口不被占用。 是否创建teledb用户 根据业务需求勾选是或否。 用户home目录 根据部署规划填写。 是否安装Agent 根据业务需求勾选是或否。 服务器管理进程端口 根据部署规划填写,确保端口不被占用。 操作系统 根据实际情况选择。 CPU架构 根据实际情况选择。 磁盘数据目录 根基业务需求填写。 4. 新建资源模板 1. 在左侧导航树选择资源管理> 资源模板,进入资源模板页面。 2. 在资源模板页面,单击新建模板,出现新建模板对话框。 3. 在新建模板对话框,填写如下信息,单击确定,完成新建模板创建。 模板名称:必填,可自定义。 CPU核数(核):必填,可根据业务需求填写。 内存容量(GB):必填,可根据业务需求填写。 磁盘容量(GB):必填,可根据业务需求填写。 模板描述:选填,可根据实际情况填写。 4. 你可单击目标资源模板所在行的编辑,修改资源模板。 5. 你可单击目标资源模板所在行的删除,删除资源模板。 5. 添加VIP 1. 在左侧导航树上选择资源管理 > VIP管理 ,出现添加VIP对话框。 2. 在VIP对话框,填写VIP地址 和子网掩码 ,单击确定完成VIP添加。 6. 导入软件包 1. 在左侧导航树选择资源管理> 软件包管理 ,进入软件包管理页面。 2. 在软件包管理页面,单击添加软件包 ,出现添加软件包对话框。 3. 在添加软件包 对话框,单击点击上传 ,选择已准备好的软件包上传。输入软件包MD5值 ,单击确定 ,完成软件包添加。 说明 上传文件的文件名请遵循teledbx{版本号}{数据块大小}.{cpu架构}.tar.gz格式,其中数据块大小:8k,16k,32k;cpu架构:x8664x86架构,aarcharm架构。 您可执行md5sum 软件包名命令查找MD5。 7. 实例开通 1. 在左侧导航树选择实例列表 ,进入实例列表页面,单击创建实例,进入基本信息页面。 2. 参考下表,您可根据业务需求填写基本信息。 参数名称 说明 实例名称 自定义,可根据业务需求填写。 实例系列 您可根据业务需求选择如下两种版本。 企业版:全局事务管理器、协调节点一主一备,主备自动切换,企业业务生产首选。 灾备版:全局事务管理器、协调节点一主两备,支持两地三中心部署模式,达到金融级高可用。 协调节点数 可根据业务需求填写。 数据节点系列 您可根据业务需求选择如下三种方式: 一主一备 一主两备 一主三备 数据节点数 您可根据业务需求选择如下两种规格: test(1C2G) common(1C1G) GTM节点规格 您可根据业务需求选择如下两种规格: test(1C2G) common(1C1G) 软件包 根据业务实际需求选择软件包。 主备复制模式 您可根据业务需求选择如下几种模式: 全异步 全同步 Any1 Any2 First1 First2 字符集 您可根据业务需求选择如下几种字符集: UTF8 LATIN1 EUCCN SQLASCII 坏盘检测 可根据业务需求检测是或否。 3. 单击下一步 ,进入主机选择页面。 4. 在主机选择页面,根据业务需求,选择GTM节点的主节点和备节点、协调节点的主节点或备节点或VIP、数据节点的主节点和备节点,单击提交 ,跳转到实例列表页面,查看任务状态。 5. 当状态显示为运行中,则实例成功开通。
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V4.0.0版本产品文档
        安装部署手册
        安装过程
        实例服务器初始化及实例开通
      • 修改数据库配置
        本文为您介绍如何修改数据库配置。 修改数据库名称 plaintext teledb alter database teledbdb rename to teledbdbnew; ALTER DATABASE 修改连接数 plaintext teledb alter database teledbdbnew connection limit 50; ALTER DATABASE 修改数据库所有者 plaintext teledb alter database teledbdbnew owner to teledb; ALTER DATABASE 配置数据默认searchpath plaintext teledb alter database teledbdbnew set searchpath to public, pgcatalog; ALTER DATABASE alter database不支持修改的项目 项目 备注 encoding 编码 lccollate 排序规则 lcctype 分组规则
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V5.0.0版本产品文档
        开发手册
        数据库基础开发
        DML操作
        数据库管理
        修改数据库配置
      • 条件索引
        drop index tsexsexidx; DROP INDEX teledb create index tsexsexidx on tsex (sex) where sex '女'; CREATE INDEX teledb analyze tsex; ANALYZE teledb explain select from tsex where sex '男'; QUERY PLAN Remote Fast Query Execution (cost0.00..0.00 rows0 width0) Node/s: dn01, dn02 > Seq Scan on tsex (cost0.00..9966.58 rows500539 width8) Filter: (sex '男'::text) (4 rows) teledb explain select from tsex where sex '女'; QUERY PLAN Remote Fast Query Execution (cost0.00..0.00 rows0 width0) Node/s: dn01, dn02 > Index Scan using tsexsexidx on tsex (cost0.14..13.15 rows67 width8) (3 rows) teledb q [teledb@localhost bin]$ ./telesql p 22222 U teledb d teledb Password for user teledb: telesql (TeleDB V6) Type "help" for help. teledb di+ tsexsexidx List of relations Schema Name Type Owner Table Size Allocated Size Description +++++++ public tsexsexidx index teledb tsex 16 kB 16 kB (1 row)
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V5.0.0版本产品文档
        开发手册
        数据库基础开发
        DML操作
        索引管理
        条件索引
      • 访问函数
        本文为您介绍如何通过SELECT语法访问函数。 plaintext teledb select md5(random()::text); md5 ed5b356234979a63efc6c4f6537c4853 (1 row)
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V5.0.0版本产品文档
        开发手册
        数据库基础开发
        DDL操作
        SELECT语法
        访问函数
      • jsonb 应用
        本文为您介绍jsonb应用的相关操作。 创建jsonb类型字段表 plaintext teledb create table tjsonb(id int,fjsonb jsonb); CREATE TABLE 插入数据 plaintext teledb insert into tjsonb values(1,'{"col1":1,"col2":"teledb"}'); INSERT 0 1 teledb insert into tjsonb values(2,'{"col1":1,"col2":"teledb","col3":"pgxz"}'); INSERT 0 1 teledb select from tjsonb; id fjsonb + 1 {"col1": 1, "col2": "teledb"} 2 {"col1": 1, "col2": "teledb", "col3": "pgxz"} (2 rows jsonb插入时会移除重复的键,如下所示。 plaintext teledb insert into tjsonb values(3,'{"col1":1,"col2":"teledb","col2":"pgxz"}'); INSERT 0 1 teledb select from tjsonb; id fjsonb + 1 {"col1": 1, "col2": "teledb"} 2 {"col1": 1, "col2": "teledb", "col3": "pgxz"} 3 {"col1": 1, "col2": "pgxz"} (3 rows) 更新数据 增加元素。 plaintext teledb update tjsonb set fjsonb fjsonb '{"col3":"pgxz"}'::jsonb where id1; UPDATE 1 teledb select from tjsonb; id fjsonb + 2 {"col1": 1, "col2": "teledb", "col3": "pgxz"} 1 {"col1": 1, "col2": "teledb", "col3": "pgxz"} 3 {"col1": 1, "col2": "pgxz"} (3 rows) 更新原来的元素。 plaintext teledb
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V5.0.0版本产品文档
        开发手册
        数据库基础开发
        json和jsonb使用
        jsonb 应用
      • 删除索引
        本文为您介绍如何删除索引。 plaintext teledb drop index tmulidxidx; DROP INDEX
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V5.0.0版本产品文档
        开发手册
        数据库基础开发
        DML操作
        索引管理
        删除索引
      • 修改表结构
        alter table t owner to user1; ALTER TABLE teledb dt t List of relations Schema Name Type Owner +++ teledb t table user1 (1 row) 修改字段名 plaintext teledb d+ t Table "teledb.t" Column Type Collation Nullable Default Storage Stats target Description +++++++ id integer not null plain mc text extended Indexes: "tpkey" PRIMARY KEY, btree (id) Distribute By: SHARD(id) Location Nodes: ALL DATANODES teledb alter table t rename mc to nickname; ALTER TABLE teledb d+ t Table "teledb.t" Column Type Collation Nullable Default Storage Stats target Description +++++++ id integer not null plain nickname text extended Indexes: "tpkey" PRIMARY KEY, btree (id) Distribute By: SHARD(id) Location Nodes: ALL DATANODES
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V5.0.0版本产品文档
        开发手册
        数据库基础开发
        DML操作
        修改表结构
      • 多字段索引
        本文为您介绍如何使用多字段索引。 plaintext teledb create table tmulidx (f1 int,f2 int,f3 int,f4 int); CREATE TABLE teledb create index tmulidxidx on tmulidx(f1,f2,f3); CREATE INDEX 多字段使用注意事项: or 查询条件 bitmap scan 最多支持两个不同字段条件。 plaintext teledb insert into tmulidx select t,t,t,t from generateseries(1,1000000) as t; INSERT 0 1000000 teledb analyze ; ANALYZE teledb explain select from tmulidx where f11 or f22 ; QUERY PLAN Remote Fast Query Execution (cost0.00..0.00 rows0 width0) Node/s: dn001, dn002 > Bitmap Heap Scan on tmulidx (cost7617.08..7621.07 rows2 width16) Recheck Cond: ((f1 1) OR (f2 2)) > BitmapOr (cost7617.08..7617.08 rows2 width0) > Bitmap Index Scan on tmulidxidx (cost0.00..2.43 rows1 width0) Index Cond: (f1 1) > Bitmap Index Scan on tmulidxidx (cost0.00..7614.65 rows1 width0) Index Cond: (f2 2) (9 rows) Time: 5.134 ms teledb explain select from tmulidx where f11 or f22 or f13 ; QUERY PLAN Remote Fast Query Execution (cost0.00..0.00 rows0 width0) Node/s: dn001, dn002 > Bitmap Heap Scan on tmulidx (cost7619.51..7625.49 rows3 width16) Recheck Cond: ((f1 1) OR (f2 2) OR (f1 3)) > BitmapOr (cost7619.51..7619.51 rows3 width0) > Bitmap Index Scan on tmulidxidx (cost0.00..2.43 rows1 width0) Index Cond: (f1 1) > Bitmap Index Scan on tmulidxidx (cost0.00..7614.65 rows1 width0) Index Cond: (f2 2) > Bitmap Index Scan on tmulidxidx (cost0.00..2.43 rows1 width0) Index Cond: (f1 3) (11 rows) Time: 5.048 ms teledb
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V5.0.0版本产品文档
        开发手册
        数据库基础开发
        DML操作
        索引管理
        多字段索引
      • 表达式索引
        本文为您介绍如何管理表达式索引。 plaintext teledb create table tupper(id int,mc text); CREATE TABLE teledb create index tuppermc on tupper(mc); CREATE INDEX teledb insert into tupper select t,md5(t::text) from generateseries(1,10000) as t; INSERT 0 10000 teledb analyze tupper; ANALYZE teledb explain select from tupper where upper(mc)md5('1'); QUERY PLAN Remote Fast Query Execution (cost0.00..0.00 rows0 width0) Node/s: dn01, dn02 > Seq Scan on tupper (cost0.00..133.58 rows25 width37) Filter: (upper(mc) 'c4ca4238a0b923820dcc509a6f75849b'::text) (4 rows) teledb create index tuppermc on tupper(upper(mc)); ERROR: relation "tuppermc" already exists teledb create index tuppermc1 on tupper(upper(mc)); CREATE INDEX teledb explain select from tupper where upper(mc)md5('1'); QUERY PLAN Remote Fast Query Execution (cost0.00..0.00 rows0 width0) Node/s: dn01, dn02 > Bitmap Heap Scan on tupper (cost4.48..50.94 rows25 width37) Recheck Cond: (upper(mc) 'c4ca4238a0b923820dcc509a6f75849b'::text) > Bitmap Index Scan on tuppermc1 (cost0.00..4.47 rows25 width0) Index Cond: (upper(mc) 'c4ca4238a0b923820dcc509a6f75849b'::text) (6 rows)
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V5.0.0版本产品文档
        开发手册
        数据库基础开发
        DML操作
        索引管理
        表达式索引
      • 使用将查询结果创建数据表
        本文为您介绍如何使用查询结果创建数据表。 plaintext teledb insert into t values(1,'teledb'); INSERT 0 1 teledb create table tas as select from t; INSERT 0 1 teledb select from tas; id mc + 1 teledb (1 row)
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V5.0.0版本产品文档
        开发手册
        数据库基础开发
        DML操作
        数据表管理
        使用将查询结果创建数据表
      • 普通索引
        本文为您介绍如何管理普通索引。 plaintext teledb create index tididx on t1 using btree(id); CREATE INDEX
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V5.0.0版本产品文档
        开发手册
        数据库基础开发
        DML操作
        索引管理
        普通索引
      • 添加分区子表
        本文为您介绍如何添加分区子表。 plaintext teledb d+ trange Table "public.trange" Column Type Collation Nullable Default Storage Stats target Description +++++++ f1 bigint plain f2 timestamp without time zone now() plain f3 integer plain Distribute By: SHARD(f1) Location Nodes: ALL DATANODES Partition By: RANGE(f3) Of Partitions: 3 Start With: 1 Interval Of Partition: 50 teledb alter table trange add partitions 2; ALTER TABLE teledb d+ trange Table "public.trange" Column Type Collation Nullable Default Storage Stats target Description +++++++ f1 bigint plain f2 timestamp without time zone now() plain f3 integer plain Distribute By: SHARD(f1) Location Nodes: ALL DATANODES Partition By: RANGE(f3) Of Partitions: 5 Start With: 1 Interval Of Partition: 50
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V5.0.0版本产品文档
        开发手册
        数据库基础开发
        DML操作
        数据表管理
        添加分区子表
      • 指定模式创建表
        本文为您介绍如何指定模式创建表。 plaintext teledb create table public.t1(id int,mc text); CREATE TABLE
        来自:
        帮助文档
        分布式融合数据库HTAP
        私有云产品历史版本
        V5.0.0版本产品文档
        开发手册
        数据库基础开发
        DML操作
        数据表管理
        指定模式创建表
      • 1
      • ...
      • 287
      • 288
      • 289
      • 290
      • 291
      • ...
      • 312
      跳转至
      推荐热词
      天翼云运维管理审计系统天翼云云服务平台云服务备份云日志服务应用运维管理云手机云电脑天翼云云hbase数据库电信云大数据saas服务电信云大数据paas服务轻量型云主机天翼云客户服务电话应用编排服务天翼云云安全解决方案云服务总线CSB天翼云服务器配置天翼云联邦学习产品天翼云云安全天翼云企业上云解决方案天翼云产品天翼云视频云存储

      天翼云最新活动

      安全隔离版OpenClaw

      OpenClaw云服务器专属“龙虾“套餐低至1.5折起

      天翼云新春焕新季

      云主机开年特惠28.8元/年,0元秒杀等你来抢!

      云上钜惠

      爆款云主机全场特惠,2核4G只要1.8折起!

      中小企业服务商合作专区

      国家云助力中小企业腾飞,高额上云补贴重磅上线

      出海产品促销专区

      爆款云主机低至2折,高性价比,不限新老速来抢购!

      天翼云奖励推广计划

      加入成为云推官,推荐新用户注册下单得现金奖励

      产品推荐

      弹性云主机 ECS

      多活容灾服务

      GPU云主机

      镜像服务 IMS

      弹性高性能计算 E-HPC

      训推服务

      AI Store

      公共算力服务

      模型推理服务

      推荐文档

      如何退换发票?

      重启实例

      安全防护告警

      消费重置

      系统

      应用数据管理

      • 7*24小时售后
      • 无忧退款
      • 免费备案
      • 专家服务
      售前咨询热线
      400-810-9889转1
      关注天翼云
      • 旗舰店
      • 天翼云APP
      • 天翼云微信公众号
      服务与支持
      • 备案中心
      • 售前咨询
      • 智能客服
      • 自助服务
      • 工单管理
      • 客户公告
      • 涉诈举报
      账户管理
      • 管理中心
      • 订单管理
      • 余额管理
      • 发票管理
      • 充值汇款
      • 续费管理
      快速入口
      • 天翼云旗舰店
      • 文档中心
      • 最新活动
      • 免费试用
      • 信任中心
      • 天翼云学堂
      云网生态
      • 甄选商城
      • 渠道合作
      • 云市场合作
      了解天翼云
      • 关于天翼云
      • 天翼云APP
      • 服务案例
      • 新闻资讯
      • 联系我们
      热门产品
      • 云电脑
      • 弹性云主机
      • 云电脑政企版
      • 天翼云手机
      • 云数据库
      • 对象存储
      • 云硬盘
      • Web应用防火墙
      • 服务器安全卫士
      • CDN加速
      热门推荐
      • 云服务备份
      • 边缘安全加速平台
      • 全站加速
      • 安全加速
      • 云服务器
      • 云主机
      • 智能边缘云
      • 应用编排服务
      • 微服务引擎
      • 共享流量包
      更多推荐
      • web应用防火墙
      • 密钥管理
      • 等保咨询
      • 安全专区
      • 应用运维管理
      • 云日志服务
      • 文档数据库服务
      • 云搜索服务
      • 数据湖探索
      • 数据仓库服务
      友情链接
      • 中国电信集团
      • 天翼云国际站
      • 189邮箱
      • 天翼企业云盘
      • 天翼云盘
      ©2026 天翼云科技有限公司版权所有 增值电信业务经营许可证A2.B1.B2-20090001
      公司地址:北京市东城区青龙胡同甲1号、3号2幢2层205-32室
      • 用户协议
      • 隐私政策
      • 个人信息保护
      • 法律声明
      备案 京公网安备11010802043424号 京ICP备 2021034386号