Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vx40W-00DKuW-2l for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Mar 2026 14:12:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vx40V-001B3N-0y for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Mar 2026 14:12:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vx40V-001B39-03 for pgsql-hackers@lists.postgresql.org; Mon, 02 Mar 2026 14:12:23 +0000 Received: from email.dnscdc.tech ([194.226.250.15]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vx40R-000000001mI-1av7 for pgsql-hackers@postgresql.org; Mon, 02 Mar 2026 14:12:21 +0000 Received: with id 211D528094B; Mon, 2 Mar 2026 21:12:14 +0700 (+07) Received: with id CD669280032; Mon, 2 Mar 2026 21:12:11 +0700 (+07) From: Madyshev Egor To: Boris Mironov , "pgsql-hackers@postgresql.org" Subject: RE: Idea to enhance pgbench by more modes to generate data (multi-TXNs, UNNEST, COPY BINARY) Thread-Topic: Idea to enhance pgbench by more modes to generate data (multi-TXNs, UNNEST, COPY BINARY) Thread-Index: AQHcUwuRPlzLCtdZw06GAdoL15fmHbTwZ0aAgAGpzjGAACRkgIAAEcrGgAQQLgCAAG6d+YAGXmPMgAFzjL6AAV1tS4BpseD8gAEgG5GAAGN+EIAAFWg0gArDj2mAAAeBfoAE2r6AgBXReIKACYuvB4ABsvMg Date: Mon, 2 Mar 2026 14:12:09 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: ru-RU X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-KLMS-Rule-ID: 1 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Lua-Profiles: 200978 [Mar 02 2026] X-KLMS-AntiSpam-Version: 6.1.1.20 X-KLMS-AntiSpam-Envelope-From: E.Madyshev@ftdata.ru X-KLMS-AntiSpam-Rate: 0 X-KLMS-AntiSpam-Status: not_detected X-KLMS-AntiSpam-Method: none X-KLMS-AntiSpam-Auth: dkim=none X-MS-Exchange-Organization-SCL: -1 X-KLMS-AntiSpam-Interceptor-Info: scan successful X-KLMS-AntiPhishing: Clean, bases: 2026/03/02 12:41:00 X-KLMS-AntiVirus: Kaspersky Security for Linux Mail Server, version 8.0.3.30, bases: 2026/03/02 13:13:00 #28239305 X-KLMS-AntiVirus-Status: Clean, skipped List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Boris, I have reviewed the new patch. Overall, it looks correct, but I have a few minor questions. 1. What do you think about moving characters in 'detail: Allowed step=20 characters are: "dtgMScGUvpf"' so that generation modes and=20 transactions count modes are not mixed? For example "dtMSgcGUvpf". 2. In the initCreateTables function, default values are set as empty=20 strings '' in the pgbench_history and pgbench_accounts tables. Was=20 this done intentionally, and if so, what is the reason? In the=20 pgbench_tellers and pgbench_branches tables, the implicit default=20 would be NULL - why was this logic changed? 3. In showPopulateTableCopyProgress, I think it would be better to=20 calculate elapsed_sec and remaining_sec inside the condition blocks,=20 as is done in the original code. 4. Do the changes and bug fixes in the patch affect performance? Are=20 the existing performance measurements still valid? Best regards, Egor