Re: pgbench client-side performance issue on large scripts

Daniel Verite <daniel@manitou-mail.org>

From: "Daniel Verite" <daniel@manitou-mail.org>
To: "Tom Lane" <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@postgresql.org
Date: 2025-02-26T19:44:56Z
Lists: pgsql-hackers
	Tom Lane wrote:

> > I got nerd-sniped by this question and spent some time looking into
> > it.

Thank you for the patch! LGTM.


Best regards,
-- 
Daniel Vérité 
https://postgresql.verite.pro/



Commits

  1. Avoid unnecessary computation of pgbench's script line number.

  2. Get rid of O(N^2) script-parsing overhead in pgbench.