Re: Too frequent message of pgbench -i?

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Tatsuo Ishii <ishii(at)postgresql(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Too frequent message of pgbench -i?
Date: 2012-06-20 08:55:09
Message-ID: 4FE18FED.70308@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 20.06.2012 11:04, Tatsuo Ishii wrote:
> Currently pgbench -i prints following message every 10k tuples created.
>
> fprintf(stderr, "%d tuples done.\n", j);
>
> I think it's long time ago when the frequency of message seemed to be
> appropriate because computer is getting so fast these days and every
> 10k message seems to be too often for me. Can we change the frequency
> from 10k to 100k? Or should we make the frequency be adjustable from a
> command line? Or even better, the frequency should be changed
> automatically according to scale factor?

Or print the message every n seconds, instead of every n lines. I think
a new command-line option would be overkill. I would be fine with just
bumping it to every 100k lines.

So +1 on doing something about it, not sure what.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2012-06-20 09:15:50 Re: [PATCH 10/16] Introduce the concept that wal has a 'origin' node
Previous Message Heikki Linnakangas 2012-06-20 08:44:54 Re: [PATCH 10/16] Introduce the concept that wal has a 'origin' node