您的位置:首页 > 数据库

pgbench在9.3中的一个改动

2014-09-23 12:55 218 查看
PostgreSQL v9.2及之前版本中:

-s scale_factor

Multiply the number of rows generated by the scale factor. For example, -s 100 will create 10,000,000 rows in the pgbench_accounts table. Default is 1.

PostgreSQL v9.3中:

-s scale_factor

Multiply the number of rows generated by the scale factor. For example, -s 100 will create 10,000,000 rows in the pgbench_accounts table. Default is 1. When the scale is 20,000 or larger, the columns used to hold account identifiers (aid columns) will switch to using larger integers (bigint), in order to be big enough to hold the range of account identifiers.

v9.3中支持初始化数据量scale>=20000,即2000000000条数据,相应的aid字段类型将会由intger被更改为bigint以支持大数据量。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐