aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-01-29 11:49:40 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-01-29 12:05:55 +0200
commit89d00cbe01447fd36edbc3bed659f869b18172d1 (patch)
tree20f41b9396103089c7ddf019de3226d9ae791901 /src/backend/access
parentc9d7dbacd387ab3814bc6b38010a9e72a02ea4f5 (diff)
downloadpostgresql-89d00cbe01447fd36edbc3bed659f869b18172d1.tar.gz
postgresql-89d00cbe01447fd36edbc3bed659f869b18172d1.zip
Allow pgbench to use a scale larger than 21474.
Beyond 21474, the number of accounts exceed the range for int4. Change the initialization code to use bigint for account id columns when scale is large enough, and switch to using int64s for the variables in pgbench code. The threshold where we switch to bigints is set at 20000, because that's easier to remember and document than 21474, and ensures that there is some headroom when int4s are used. Greg Smith, with various changes by Euler Taveira de Oliveira, Gurjeet Singh and Satoshi Nagayasu.
Diffstat (limited to 'src/backend/access')
0 files changed, 0 insertions, 0 deletions