Re: pgbench - refactor init functions with buffers
David Steele <david@pgmasters.net>
From: David Steele <david@pgmasters.net>
To: Fabien COELHO <coelho@cri.ensmp.fr>
Cc: Andres Freund <andres@anarazel.de>,
Jeevan Ladhe <jeevan.ladhe@enterprisedb.com>,
Dilip Kumar <dilipbalaut@gmail.com>,
PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2020-03-27T16:23:26Z
Lists: pgsql-hackers
On 11/6/19 12:48 AM, Fabien COELHO wrote: > > Hello Andres, > >>> Attached v3 shorten some lines and adds "append_tablespace". > > A v4 which just extends the patch to newly added 'G'. > >> I'd prefer not to expand the use of pqexpbuffer in more places, and >> instead rather see this use StringInfo, now that's also available to >> frontend programs. > > Franckly, one or the other does not matter much to me. FWIW, I agree with Andres with regard to using StringInfo. Also, the changes to executeStatementExpect() and adding executeStatement() do not seem to fit in with the purpose of this patch. Regards, -- -David david@pgmasters.net
Commits
-
pgbench: Use PQExpBuffer to simplify code that constructs SQL.
- 9796f455c38e 14.0 landed
-
Make command order in test more sensible
- ad4b7aeb8443 13.0 cited