aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistxlog.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2025-03-29 15:24:42 +0100
committerPeter Eisentraut <peter@eisentraut.org>2025-03-29 15:24:42 +0100
commit53a2a1564ae450a46a7c565756ab536b84150e36 (patch)
treebd05e75b15c1f6cd11718457f09760fee7dff7f5 /src/backend/access/gist/gistxlog.c
parentd70b17636ddf1ea2c71d1c7bc477372b36ccb66b (diff)
downloadpostgresql-53a2a1564ae450a46a7c565756ab536b84150e36.tar.gz
postgresql-53a2a1564ae450a46a7c565756ab536b84150e36.zip
pgbench: Make set_random_seed() 64-bit everywhere.
Delete an intermediate variable, a redundant cast, a use of long and a use of long long. scanf() the seed directly into a uint64, now that we can do that with SCNu64 from <inttypes.h>. The previous coding was from pre-C99 times when %lld might not have been there, so it read into an unsigned long. Therefore behavior varied by OS, and --random-seed would accept either 32 or 64 bit seeds. Now it's the same everywhere. Author: Thomas Munro <thomas.munro@gmail.com> Discussion: https://postgr.es/m/b936d2fb-590d-49c3-a615-92c3a88c6c19%40eisentraut.org
Diffstat (limited to 'src/backend/access/gist/gistxlog.c')
0 files changed, 0 insertions, 0 deletions