Re: WIP: Fast GiST index build - Mailing list pgsql-hackers

From Alexander Korotkov
Subject Re: WIP: Fast GiST index build
Date
Msg-id BANLkTinN6C8q61Fb8ASZVOPbYq7VoqoHOw@mail.gmail.com
Whole thread Raw
In response to Re: WIP: Fast GiST index build  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Responses Re: WIP: Fast GiST index build
List pgsql-hackers
Oh, actually it's so easy. Thanks.

------
With best regards,
Alexander Korotkov.  

On Thu, Jun 16, 2011 at 10:26 PM, Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> wrote:
On 16.06.2011 21:13, Alexander Korotkov wrote:
My current idea is to measure number of IO accesses by pg_stat_statements
and measure CPU usage by /proc/PID/stat. Any thoughts?

Actually, you get both of those very easily with:

set log_statement_stats=on

LOG:  QUERY STATISTICS
DETAIL:  ! system usage stats:
       !       0.000990 elapsed 0.000000 user 0.000000 system sec
       !       [0.000000 user 0.008000 sys total]
       !       0/0 [32/0] filesystem blocks in/out
       !       0/0 [0/959] page faults/reclaims, 0 [0] swaps
       !       0 [0] signals rcvd, 0/0 [0/0] messages rcvd/sent
       !       0/0 [10/1] voluntary/involuntary context switches
STATEMENT:  SELECT generate_series(1,100);



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

pgsql-hackers by date:

Previous
From: Bernd Helmle
Date:
Subject: Re: Re: starting to review the Extend NOT NULL representation to pg_constraint patch
Next
From: Robert Haas
Date:
Subject: Re: Boolean operators without commutators vs. ALL/ANY