测量工具hg

_相关内容

Table Group与Shard Count操作指南

获取Table Group元数据 查看默认Table Group SELECT*FROM hologres.hg_table_group_properties WHERE tablegroup_name IN(SELECT tablegroup_name FROM hologres.hg_table_group_properties WHERE property_key='is_default_tg' AND ...

Use Serverless Computing for concurrent compaction

thus protecting the performance of other operations.How to use-Enable at the session level SET hg_serverless_computing_run_compaction_before_commit_bulk_load=on;Enable at the user level ALTER USER"role_name"IN DATABASE db_...

导出至OSS

命令介绍 COPY命令:COPY 命令是PostgreSQL表和标准文件系统之间移动数据的工具,Hologres支持 COPY 命令。COPY TO 语句将SELECT查询的结果内容复制到一个文件或者其他输出介质中。COPY FROM 语句用于从一个文件复制数据到一个表。hg_dump_...

表存储函数

SELECT table_schema|'.'|table_name AS table_full_name,pg_size_pretty(hologres.hg_relation_size(quote_ident(table_schema)|'.'|quote_ident(table_name),'data'))AS data_size,hologres.hg_relation_size(quote_ident(table_schema)|...

Common statements for health checks

Query all tables for which the distribution key is not specified.SELECT DISTINCT table_namespace AS schema,table_name AS tables FROM hologres.hg_table_properties a WHERE property_key='storage_format' AND NOT EXISTS(SELECT ...

表回收站

返回结果如下:table_id|schema_name|table_name|table_owner|dropby|drop_time-+-+-+-+-+-14|public|tbl1|xx_developer|1365xxxxxxxx|2025-04-17 19:23:10+08(1 row)查看表的存储:SELECT(hologres.hg_recyclebin_relation_size('tbl1')/...

Data lake table mirroring

mirroring_guc_hg_computing_resource='[serverless|local]',][data_mirroring_guc_hg_experimental_serverless_computing_required_cores=' num ',]-Set indexes[data_mirroring_clustering_key='[columnName{:asc]}[,.]]',][data_...

用量与计费

hologres.hg_query_log 和 hologres.hg_serverless_computing_query_log 均保留近30天的数据。仅执行成功的SQL作业计费,执行失败不计费。查询资源消耗量 自 Hologres V2.1.18 版本起,可以通过查询 hologres.hg_serverless_computing_...

数据分层存储

分区表 查询所有分区:SELECT parent_table_name,count(*)AS partition_cnt,sum(hot_storage_size)/1024/1024/1024 AS hot_size_gb FROM hologres.hg_table_info WHERE type='PARTITION' AND collect_time:DATE=CURRENT_DATE-interval '1 ...

物理分区表迁移为逻辑分区表

原物理分区表回刷任务(通过hg_insert_overwrite命令)CALL hg_insert_overwrite('user_profile','202505',$SELECT a,b,mm FROM source_table WHERE ds='202505'$);新逻辑分区表回刷任务(通过原生Insert Overwrite语法)INSERT OVERWRITE ...

对接MaxCompute常见问题与诊断

降低导入并发度,也会有效减少导入过程中的内存开销,并发度通过参数 hg_foreign_table_executor_max_dop 控制,默认为实例的Core数,可以在导入时设置更小的参数,降低导入的内存使用。set hg_foreign_table_executor_max_dop=8;insert ...

逻辑分区表数据导入实践

使用存储过程hg_insert_overwrite将数据导入逻辑分区表 CALL hg_insert_overwrite('public.tableA_lp','{20201215,20201216,20201217}':text[],$SELECT*FROM public.tableB$);如果无法使用存储过程hg_insert_overwrite导入,则建议手动按...

单实例资源组隔离(即将下线)

使用示例 CALL hg_unbind_resource_group('resource_1','p4_29xxxxxxxxxxxxx9');注意,阿里云账户需要添加双引号 CALL hg_unbind_resource_group('resource_1','"RAM$xxxx@xxx:xxx"');常见问题 Q:为什么资源组配额设置为0.5,CPU和内存...

Default behavior changes

regardless of the hg_cte_strategy setting.When optimizer_cte_inlining=on,CTEs are no longer forcibly inlined.The CTE policy is determined by hg_cte_strategy:If hg_cte_strategy=auto(default),the query optimizer(QO)...

Query encrypted MaxCompute data

Database level-Enable at the database level.ALTER DATABASE database name SET hg_experimental_external_catalog_routing='odps:common_table,dlf:hqe';Instance level-Enable at the instance level.ALTER ROLE ALL SET hg_...

SQL事务能力

重要 需要注意的是,不仅是写入的表会锁表,查询的也会锁表,例如:用户A执行如下SQL:set hg_experimental_enable_transaction=on;BEGIN;delete from dml_test;insert into dml_test SELECT*FROM base_tbl;COMMIT;用户B执行如下SQL:set ...

Query Cache

开启query cache功能,需要superuser执行,开启后新建连接生效 ALTER DATABASE database_name SET hg_experimental_enable_query_cache=on;Query Cache的结果是弱一致,如果缓存期间数据有写入,不保证结果正确。含 RANDOM 函数的Query结果...

存储过程(Beta)

存储过程(PROCEDURE)是由一组预编译的SQL语句组成的集合,可以在数据库中进行...EXCEPTION-如果遇到HG_PLPGSQL_NEED_RETRY报错,则打印日志,并自动重试 WHEN HG_PLPGSQL_NEED_RETRY THEN RAISE NOTICE 'DDL need retry';END;END LOOP;END;

函数功能发布记录

HQE Extract函数 V3.2版本 版本 函数类型 函数 类别 描述 执行引擎 相关文档 3.2.1 数组函数 hg_array_map hg_array_fill hg_array_filter hg_array_sort hg_array_first_index 新增函数 支持Lambda表达式,支持若干含Lambda表达式的高阶数...

COPY

only one record is generated for a COPY operation in the hologres.hg_query_log table of the metadata warehouse.In Hologres V3.0 and later,two records are generated for a COPY operation in the metadata warehouse.One record ...

Automatic throttling(beta)

Configure automatic throttling for a query queue.-Enable automatic throttling for a query queue.(Enabled by default)CALL hg_set_query_queue_property(' warehouse_name ',' query_queue_name ','enable_adaptive_concurrency_...

HBO

session级别关闭 set hg_adaptive_execution_enable_history_based_optimization=off;DB级别关闭,新建链接生效 alter database db_name set hg_adaptive_execution_enable_history_based_optimization=off;HBO命中前提条件 命中HBO需要...

Maintain refresh tasks for dynamic tables

Use the hg_stat_activity system view You can query running refresh tasks from the hg_stat_activity system view.The content that can be displayed varies based on the refresh mode that you configured.Full data refresh:INSERT...

OOM常见问题排查指南

SELECT hg_shard_id,count(1)FROM t1 GROUP BY hg_shard_id;从执行计划查看Shard Pruning,例如执行计划中 Shard Selector 为 l0[1],说明只选中了一个Shard数据进行查询。这里distribution_key为x,基于x=1过滤条件,可以快速定位所在Shard ...

Hologres元仓运维通知

同时,会造成慢查询日志服务和表统计信息查询服务闪断(hologres.hg_query_log,hologres.hg_table_info短暂无法查询)。抱歉给您带来不便,如您在维护期后遇到问题,欢迎在Hologres交流群反馈,加入Hologres交流群请参见 如何获取更多的...

库表管理函数

函数 功能 HG_UPDATE_DATABASE_PROPERTY 用于设置数据库的Table Group和Shard Count属性。SET_TABLE_PROPERTY 用于设置表的属性,包括索引、分布列、行存储、列存储以及生命周期等属性。HG_UPDATE_DATABASE_PROPERTY 描述:用于设置数据库...
< 1 2 3 4 ... 200 >
共有200页 跳转至: GO
新人特惠 爆款特惠 最新活动 免费试用