On Tue, Mar 17, 2015 at 11:27 AM, Fabien COELHO <coe...@cri.ensmp.fr> wrote: > The fprintf we are talking about occurs at most once per pgbench > transaction, possibly much less when aggregation is activated, and this > transaction involves networks exchanges and possibly disk writes on the > server.
random() was occurring four times per transaction rather than once, but OTOH I think fprintf() is probably a much heavier-weight operation. The way to know if there's a real problem here is to test it, but I'd be pretty surprised if there isn't. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers