Fixing pgbench init overflow

Поиск
Список
Период
Сортировка
От Chen Hao Hsu
Тема Fixing pgbench init overflow
Дата
Msg-id CA+-JvFvHsOafjHcuFPfkyouHNZvbOXhBNhwZxKm3WNgYz9bwzA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Fixing pgbench init overflow  (Japin Li <japinli@hotmail.com>)
Список pgsql-hackers
Hello,

pgbench mixes int and int64 to initialize the tables.
When a large enough scale factor is passed, initPopulateTable
overflows leading to it never completing, ie.

2147400000 of 2200000000 tuples (97%) of
pgbench_accounts done (elapsed 4038.83 s, remaining 98.93 s)
-2147400000 of 2200000000 tuples (-97%) of
pgbench_accounts done (elapsed 4038.97 s, remaining -8176.86 s)


Attached is a patch that fixes this, pgbench -i -s 22000 works now.

-- 
John Hsu - Amazon Web Services

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Przemysław Sztoch
Дата:
Сообщение: Re: date_trunc function in interval version
Следующее
От: Japin Li
Дата:
Сообщение: Re: Transaction timeout