Improving pgbench to log index creation time etc.

Started by Tatsuo Ishiialmost 13 years ago3 messages
#1Tatsuo Ishii
ishii@postgresql.org

Hi PostgreSQL hackers,

I often need to calculate time to spend for index creation and vacuum
to analyze PostgreSQL data load performance. Index creation and vacuum
will take non trivial time for large scale data and it is important
information of data loading benchmark.

So I would like to propose to add new options to be used with pgbenh
-i (initialize) mode:

--log-index-creation-duration: log duration of index creation in seconds
--log-vacuum-duration: log duration of vacuum in seconds

What do you think?
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese: http://www.sraoss.co.jp

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#2Andres Freund
andres@2ndquadrant.com
In reply to: Tatsuo Ishii (#1)
Re: Improving pgbench to log index creation time etc.

On 2013-02-11 12:40:31 +0900, Tatsuo Ishii wrote:

So I would like to propose to add new options to be used with pgbenh
-i (initialize) mode:

--log-index-creation-duration: log duration of index creation in seconds
--log-vacuum-duration: log duration of vacuum in seconds

What do you think?

I propose doing this unconditionally. Adding an option seems too
complicated.

Greetings,

Andres Freund

--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Tatsuo Ishii (#1)
Re: Improving pgbench to log index creation time etc.

Tatsuo Ishii <ishii@postgresql.org> writes:

Hi PostgreSQL hackers,
I often need to calculate time to spend for index creation and vacuum
to analyze PostgreSQL data load performance. Index creation and vacuum
will take non trivial time for large scale data and it is important
information of data loading benchmark.

So I would like to propose to add new options to be used with pgbenh
-i (initialize) mode:

--log-index-creation-duration: log duration of index creation in seconds
--log-vacuum-duration: log duration of vacuum in seconds

What do you think?

I would think if you wanted that, you could set up a custom script that
does CREATE INDEX and/or VACUUM. The built-in scenario isn't all that
interesting...

regards, tom lane

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers