DATAPUNT阿姆斯特丹PASGRESS表分区模块
datapunt-pg-partitioning的Python项目详细描述
#pg_partition
用于对新的/现有的postgresql数据库表进行分区的实用程序。可以迁移数据。只支持日期范围分区类型。
stall ####
```
pip install -r requirements.txt
```
#### Usage ####
```
usage: pg_partition.py [-h] {create,add} ...
positional arguments:
{create,add}
optional arguments:
-h, --help show this help message and exit
```
#### C创建用法35;
用法:pg_partition.py create[-h][--type{day,week,month}]table column
positional arguments:
table table to be partitioned
optional arguments:
-h,--help显示此帮助消息并退出
--键入{day,week,month}
```
``````
{day,week,month}
ed table by‘column’
不迁移任何数据
python pg_partition.py create table column
将‘table’转换为按‘column’划分的范围表
数据在周分区中迁移
python pg_partition.py create table column--type week
```
添加分区离子将从20180101开始的10天分区添加到"表"中。
用于对新的/现有的postgresql数据库表进行分区的实用程序。可以迁移数据。只支持日期范围分区类型。
stall ####
```
pip install -r requirements.txt
```
#### Usage ####
```
usage: pg_partition.py [-h] {create,add} ...
positional arguments:
{create,add}
optional arguments:
-h, --help show this help message and exit
```
#### C创建用法35;
用法:pg_partition.py create[-h][--type{day,week,month}]table column
positional arguments:
table table to be partitioned
optional arguments:
-h,--help显示此帮助消息并退出
--键入{day,week,month}
```
``````
{day,week,month}
ed table by‘column’
不迁移任何数据
python pg_partition.py create table column
将‘table’转换为按‘column’划分的范围表
数据在周分区中迁移
python pg_partition.py create table column--type week
```
添加分区离子将从20180101开始的10天分区添加到"表"中。