Idea to enhance pgbench by more modes to generate data (multi-TXNs, UNNEST, COPY BINARY)

Поиск
Список
Период
Сортировка
От Boris Mironov
Тема Idea to enhance pgbench by more modes to generate data (multi-TXNs, UNNEST, COPY BINARY)
Дата
Msg-id DS0PR08MB9565D91414C65B3AC363825488CFA@DS0PR08MB9565.namprd08.prod.outlook.com
обсуждение исходный текст
Ответы Re: Idea to enhance pgbench by more modes to generate data (multi-TXNs, UNNEST, COPY BINARY)
Список pgsql-hackers
Hello hackers,

For some of my specific hardware tests I needed to generate big databases well beyond RAM size. Hence I turned to pgbench tool and its default 2 modes for client- and server-side generation for TPC-B tests. When I use "scale" factor in range of few thousands (eg, 3000 - 5000) data generation phase takes quite some time. I looked at it as opportunity to prove/disprove 2 hypothesises:
As a result of my experiments I produced significant patch for pgbench utility and though that it might be of interest not just for me. Therefore I'm sending draft version of it in diff format for current development tree on GitHub. As of November 11, 2025 I can merge with main branch of the project on GitHub.

Spoiler alert: "COPY FROM BINARY" is significantly faster than current "COPY FROM TEXT"

Would be happy to polish it if there is interest to such change.

Cheers
Вложения

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