diff --git a/docs/pg_test_timing.md b/docs/pg_test_timing.md new file mode 100644 index 00000000000..d6884b3060b --- /dev/null +++ b/docs/pg_test_timing.md @@ -0,0 +1,26 @@ + + + + +# pg_test_timing Documentation + +## Overview + +`pg_test_timing` is a utility tool provided by Cloudberry for testing the timing behavior of PostgreSQL database operations. It helps in identifying performance bottlenecks and optimizing database operations. + +## Features + +- Measures execution time of SQL queries +- Supports multiple query execution modes +- Provides detailed timing reports + +## Usage + +To use `pg_test_timing`, follow these steps: + +1. Install `pg_test_timing` if not already installed. +2. Run the tool with the necessary parameters. + +Example command: +```bash +pg_test_timing -d your_database -c "SELECT * FROM your_table" \ No newline at end of file diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/pg_test_timing.md b/i18n/zh/docusaurus-plugin-content-docs/current/pg_test_timing.md new file mode 100644 index 00000000000..f31cd942ee2 --- /dev/null +++ b/i18n/zh/docusaurus-plugin-content-docs/current/pg_test_timing.md @@ -0,0 +1,30 @@ + + + + + +## 中文技术文档:pg_test_timing 文档 + +```markdown +# pg_test_timing 文档 + +## 概述 + +`pg_test_timing` 是 Cloudberry 提供的一个实用工具,用于测试 PostgreSQL 数据库操作的时间行为。它有助于识别性能瓶颈并优化数据库操作。 + +## 功能 + +- 测量 SQL 查询的执行时间 +- 支持多种查询执行模式 +- 提供详细的时间报告 + +## 使用方法 + +要使用 `pg_test_timing`,请按照以下步骤操作: + +1. 如果尚未安装,请安装 `pg_test_timing`。 +2. 使用必要的参数运行工具。 + +示例命令: +```bash +pg_test_timing -d your_database -c "SELECT * FROM your_table" \ No newline at end of file