[repository1]
pg-rex03:5432
begin:
2013-06-07 00:00
end:
2013-06-08 00:00





Summary

instname5886592150459083519
hostnamepg-rex03
port5432
pg_version9.2.4
snap_begin2013-06-07 14:34:00
snap_end2013-06-07 16:02:00
duration01:28:00
total_dbsize36 GiB
total_commits481097
total_rollbacks2122

Alert

timestamp
message
2013-06-07 14:56:00load average 1min exceeds threshold in snapshot '2013-06-07 14:56:00' --- 44.83 (threshold = 40)
2013-06-07 15:29:00load average 1min exceeds threshold in snapshot '2013-06-07 15:29:00' --- 46.71 (threshold = 40)

Statistics

Database Statistics

database
MiB
+MiB
commit/s
rollback/s
hit%
gets/s
reads/s
rows/s
dbt23722549390.7180.40287.30019156.9112428.83634584.184
postgres600.3970.00099.70042.9900.135124.872

Transaction Statistics

Transaction Statistics
Timestamp
Transaction per second (xact/s)
0
20
40
60
80
100
120
140
160
180
15:00
15:30
16:00
dbt2 commit_tps

dbt2 rollback_tps

postgres commit_tps

postgres rollback_tps

Database Size

Database Size
Timestamp
Database Size (Bytes)
0
4G
8G
12G
16G
20G
24G
28G
32G
36G
15:00
15:30
16:00
dbt2 size

postgres size

Recovery Conflicts

database
conflict tblspc
conflict lock
conflict snapshot
conflict bufferpin
conflict deadlock
postgres00000
dbt200000

Instance Activity

WAL Statistics

write_total
write_speed
46423.5428.792
WAL Statistics
Timestamp
Size (Bytes)
Speed (Bytes/s)
0
512M
1G
1.5G
2G
2.5G
3G
0
15.5M
30.99M
46.49M
61.98M
77.48M
92.98M
15:00
15:30
16:00
write_size (Bytes)

write_size_per_sec (Bytes/s)

Instance Processes Ratio

idle (%)
idle in xact (%)
waiting (%)
running (%)
29.300.831.6068.27

Instance Processes

Instance Processes
Timestamp
Percent (%)
0
20
40
60
80
100
15:00
15:30
16:00
idle

idle in xact

waiting

running

OS

OS Resource Usage

CPU Usage

CPU Usage
Timestamp
Percent (%)
0
20
40
60
80
100
15:00
15:30
16:00
idle

iowait

system

user

Load Average

Load Average
Timestamp
Load Average
0
10
20
30
40
50
15:00
15:30
16:00
1min

5min

15min

I/O Usage

device_name
including TableSpaces
total read (MiB)
total write (MiB)
total read time (ms)
total write time (ms)
current I/O queue
total I/O time (ms)
sda2{pg_default,pg_global,<pg_xlog>,<pg_xlog_archive>}11915416623815175260523551725969.483387266975
I/O Size
Timestamp
Data Size (Bytes/s)
0
32M
64M
96M
128M
160M
192M
224M
15:00
15:30
16:00
sda2 read

sda2 write
I/O Time
Timestamp
Average Time (sec)
0
20
40
60
80
100
120
140
15:00
15:30
16:00
sda2 avg read time

sda2 avg write time

Memory Usage

Memory Usage (Linear Scale)
Timestamp
Size (Bytes)
0
2G
4G
6G
8G
10G
12G
14G
16G
18G
15:00
15:30
16:00
memfree

buffers

cached

swap

dirty

Disk Usage

Disk Usage per Tablespace

tablespace
location
device
used (MiB)
avail (MiB)
remain (%)
<pg_xlog>/pgdata/pgxlog_dbt2/pg_xlog8:2703979430657.258
<pg_xlog_archive>/pgdata/pgarch/arc_dbt28:2703979430657.258
pg_default/pgdata/data_dbt28:2703979430657.258
pg_global/pgdata/data_dbt28:2703979430657.258

Disk Usage per Table

database
schema
table
size (MiB)
table reads
index reads
toast reads
dbt2publicstock1265649327376172520
dbt2publicorder_line1063128514784624180
dbt2publiccustomer674525205386149090
dbt2publichistory87122587000
dbt2publicorders7262140783121020
dbt2publicnew_order13948208178690
dbt2publicitem1044735510
dbt2publicdistrict1358330
dbt2publicwarehouse038680
Table Size
dbt2.public.stock
dbt2.public.order_line
dbt2.public.customer
other
40%
33%
21%
5%
Disk Read
dbt2.public.stock
dbt2.public.order_line
dbt2.public.customer
other
43%
26%
24%
6%

SQL

Notable Tables

Heavily Updated Tables

database
schema
table
INSERT
UPDATE
DELETE
total
HOT (%)
dbt2publicorder_line222426918043240402859388.400
dbt2publicstock022242690222426999.900
dbt2publicorders212147189860040200799.900
dbt2publicnew_order21214701896744018210.000
dbt2publiccustomer0391546039154699.900
dbt2publicdistrict0218071021807198.400
dbt2publichistory201685002016850.000
dbt2publicwarehouse0201685020168599.400
dbt2publicitem00000.000

Heavily Accessed Tables

database
schema
table
seq_scan
seq_tup_read
tup_per_seq
hit (%)
dbt2publicorder_line19931556299315562.00085.600
dbt2publicorders11041714310417143.00086.000
dbt2publichistory11040173910401739.00065.400
dbt2publiccustomer11037573710375737.00063.400
dbt2publicnew_order131914013191401.00097.700
dbt2publicitem1100000100000.00099.900
dbt2publicdistrict134003400.000100.000

Low Density Tables

database
schema
table
tuples
logical_pages
physical_pages
tratio
dbt2publicorder_line991045241357597136080699
dbt2publicstock339999961619048162000399
dbt2publicorders104094479638493001103
dbt2publichistory1040165110723411154796
dbt2publiccustomer1019998484999986339298
dbt2publicnew_order3207611173391780497
dbt2publicitem1000001235128196

Fragmented Tables

database
schema
table
column
correlation
dbt2publicnew_orderno_w_id0.904
dbt2publicnew_orderno_o_id0.147
dbt2publiccustomerc_d_id0.103
dbt2publiccustomerc_d_id0.103
dbt2publicorderso_d_id0.101
dbt2publicorderso_d_id0.101
dbt2publicorder_lineol_number0.099
dbt2publicnew_orderno_d_id0.092
dbt2publicdistrictd_id0.071
dbt2publicorder_lineol_d_id0.055

Query Activity

Functions

database
schema
function
calls
total time (ms)
self time (ms)
time/call (ms)
dbt2publicpgstattuple7170988.685170988.68524426.955
postgresstatsinfodevicestats885436.7675418.84861.781
postgresstatsinfocpustats8827.72227.7220.315
postgresstatsinfotablespaces17620.87720.8770.119
postgresstatsinfomemory883.2793.2790.037
postgresstatsinfosample105130.90330.9030.029
postgresstatsinfoloadavg882.5192.5190.029
postgresstatsinfoactivity880.9070.9070.010
postgresstatsinfoprofile880.8170.8170.009

Statements

user
database
query
calls
total time (sec)
time/call (sec)
postgresdbt2FETCH ALL IN mycursor107154457.8190.416
postgresdbt2SELECT payment(?, ?, ?, ?, ?, ?, ?)99401494.0990.150
postgresdbt2SELECT * FROM order_status(?, ?, ?, ?)9211439.5371.563
postgresdbt2SELECT delivery(?, ?)938933.2910.995
postgresdbt2SELECT stock_level(?, ?, ?)946669.4610.708
postgrespostgresSELECT d.oid AS dbid, d.datname, pg_database_size(d.oid), CASE WHEN pg_is_in_recovery() THEN 0 ELSE age(d.datfrozenxid) END, pg_stat_get_db_xact_commit(d.oid) AS xact_commit, pg_stat_get_db_xact_rollback(d.oid) AS xact_rollback, pg_stat_get_db_blocks_fetched(d.oid) - pg_stat_get_db_blocks_hit(d.oid) AS blks_read, pg_stat_get_db_blocks_hit(d.oid) AS blks_hit, pg_stat_get_db_tuples_returned(d.oid) AS tup_returned, pg_stat_get_db_tuples_fetched(d.oid) AS tup_fetched, pg_stat_get_db_tuples_inserted(d.oid) AS tup_inserted, pg_stat_get_db_tuples_updated(d.oid) AS tup_updated, pg_stat_get_db_tuples_deleted(d.oid) AS tup_deleted, pg_stat_get_db_conflict_tablespace(d.oid) AS confl_tablespace, pg_stat_get_db_conflict_lock(d.oid) AS confl_lock, pg_stat_get_db_conflict_snapshot(d.oid) AS confl_snapshot, pg_stat_get_db_conflict_bufferpin(d.oid) AS confl_bufferpin, pg_stat_get_db_conflict_startup_deadlock(d.oid) AS confl_deadlock, pg_stat_get_db_temp_files(d.oid) AS temp_files, pg_stat_get_db_temp_byte88282.2643.208
postgresdbt2SELECT c.oid AS relid, c.relnamespace, c.reltablespace, c.relname, c.reltoastrelid, c.reltoastidxid, c.relkind, c.relpages, c.reltuples, c.reloptions, pg_relation_size(c.oid), pg_stat_get_numscans(c.oid) AS seq_scan, pg_stat_get_tuples_returned(c.oid) AS seq_tup_read, sum(pg_stat_get_numscans(i.indexrelid))::bigint AS idx_scan, sum(pg_stat_get_tuples_fetched(i.indexrelid))::bigint + pg_stat_get_tuples_fetched(c.oid) AS idx_tup_fetch, pg_stat_get_tuples_inserted(c.oid) AS n_tup_ins, pg_stat_get_tuples_updated(c.oid) AS n_tup_upd, pg_stat_get_tuples_deleted(c.oid) AS n_tup_del, pg_stat_get_tuples_hot_updated(c.oid) AS n_tup_hot_upd, pg_stat_get_live_tuples(c.oid) AS n_live_tup, pg_stat_get_dead_tuples(c.oid) AS n_dead_tup, pg_stat_get_blocks_fetched(c.oid) - pg_stat_get_blocks_hit(c.oid) AS heap_blks_read, pg_stat_get_blocks_hit(c.oid) AS heap_blks_hit, sum(pg_stat_get_blocks_fetched(i.indexrelid) - pg_stat_get_blocks_hit(i.indexrelid))::bigint AS idx_blks_read, sum(pg_stat_get_bl88198.9912.261
postgresdbt2 SELECT EXTRACT(? FROM TRANSACTION_TIMESTAMP()), a.schemaname, a.relname, seq_scan, seq_tup_read, idx_scan, idx_tup_fetch, n_tup_ins, n_tup_upd, n_tup_del, n_tup_hot_upd, n_live_tup, n_dead_tup, heap_blks_read, heap_blks_hit, idx_blks_read, idx_blks_hit, toast_blks_read, toast_blks_hit, tidx_blks_read, tidx_blks_hit FROM pg_statio_all_tables a, pg_stat_all_tables b WHERE a.relid = b.relid ; 87175.8552.021
postgresdbt2 SELECT EXTRACT(? FROM TRANSACTION_TIMESTAMP()), datname, numbackends, xact_commit, xact_rollback, blks_read, blks_hit, tup_returned, tup_fetched, tup_inserted, tup_updated, tup_deleted FROM pg_stat_database ;87174.3472.004
postgresdbt2 SELECT EXTRACT(? FROM TRANSACTION_TIMESTAMP()), a.schemaname, a.relname, a.indexrelname, idx_scan, idx_tup_read, idx_tup_fetch, idx_blks_read, idx_blks_hit FROM pg_stat_all_indexes a, pg_statio_all_indexes b WHERE a.indexrelid = b.indexrelid ; 87172.7211.985

Long Transactions

pid
client address
when to start
duration (sec)
query
15200172.20.144.582013-06-07 14:38:38621.675VACUUM FREEZE VERBOSE ANALYZE;
4562172.20.144.582013-06-07 15:57:43106.851SELECT now(),* FROM pgstattuple('customer');
323422013-06-07 15:38:2693.753autovacuum: ANALYZE public.new_order
4643172.20.144.582013-06-07 16:00:3485.920SELECT now(),* FROM pgstattuple('stock');
4619172.20.144.582013-06-07 15:59:3654.508SELECT now(),* FROM pgstattuple('order_line');
19966172.20.144.582013-06-07 15:03:3410.968SELECT count(distinct s_i_id) FROM order_line, stock, district WHERE d_id = 4 AND d_w_id = 28 AND d_id = ol_d_id AND d_w_id = ol_w_id AND ol_i_id = s_i_id AND ol_w_id = s_w_id AND s_quantity < 10 AND ol_o_id BETWEEN 2987 AND 3006
19879172.20.144.582013-06-07 15:01:5010.091COMMIT
20256172.20.144.582013-06-07 15:09:3010.024SELECT count(distinct s_i_id) FROM order_line, stock, district WHERE d_id = 1 AND d_w_id = 225 AND d_id = ol_d_id AND d_w_id = ol_w_id AND ol_i_id = s_i_id AND ol_w_id = s_w_id AND s_quantity < 16 AND ol_o_id BETWEEN 2992 AND 3011
19877172.20.144.582013-06-07 15:05:419.457COMMIT
20251172.20.144.582013-06-07 15:10:019.176SELECT count(distinct s_i_id) FROM order_line, stock, district WHERE d_id = 9 AND d_w_id = 299 AND d_id = ol_d_id AND d_w_id = ol_w_id AND ol_i_id = s_i_id AND ol_w_id = s_w_id AND s_quantity < 11 AND ol_o_id BETWEEN 2995 AND 3014

Lock Conflicts

database
schema
relation
duration
blockee pid
blocker pid
blocker gid
blockee query
blocker query
dbt200:00:021553715527SELECT delivery(5, 1)SELECT delivery(5, 7);SELECT no_o_id FROM new_order WHERE no_w_id = $1 AND no_d_id = $2ORDER BY no_o_id LIMIT 1;DELETE FROM new_order WHERE no_o_id = $1 AND no_w_id = $2 AND no_d_id = $3;SELECT o_c_id FROM orders WHERE o_id = $1 AND o_w_id = $2 AND o_d_id = $3;UPDATE orders SET o_carrier_id = $1 WHERE o_id = $2 AND o_w_id = $3 AND o_d_id = $4;UPDATE order_line SET ol_delivery_d = current_timestamp WHERE ol_o_id = $1 AND ol_w_id = $2 ...;SELECT SUM(ol_amount * ol_quantity) FROM order_line WHERE ol_o_id = $1 AND ol_w_id = $2 AND ...;UPDATE customer SET c_delivery_cnt = c_delivery_cnt + 1, c_balance = c_balance + $1 WHERE c_...;SELECT no_o_id FROM new_order WHERE no_w_id = $1 AND no_d_id = $2ORDER BY no_o_id LIMIT 1;DELETE FROM new_order WHERE no_o_id = $1 AND no_w_id = $2 AND no_d_id = $3;SELECT o_c_id FROM orders WHERE o_id = $1 AND o_w_id = $2 AND o_d_id = $3;UPDATE orders SET o_carrier_id = $1 WHERE o_id = $2 AND o_w_id = $3 AND o_d_id = $4;
dbt200:00:001553715539FETCH ALL IN mycursorDECLARE mycursor CURSOR FOR SELECT new_order(8, 6, 2930, 1, 6, make_new_order_info(81406, 8, 5),...;SELECT w_tax FROM warehouse WHERE w_id = $1;SELECT d_tax, d_next_o_id FROM district WHERE d_w_id = $1 AND d_id = $2 FOR UPDATE;UPDATE district SET d_next_o_id = d_next_o_id + 1 WHERE d_w_id = $1 AND d_id = $2;SELECT c_discount, c_last, c_credit FROM customer WHERE c_w_id = $1 AND c_d_id = $2 AND c_id...;INSERT INTO new_order (no_o_id, no_w_id, no_d_id) VALUES ($1, $2, $3);INSERT INTO orders (o_id, o_d_id, o_w_id, o_c_id, o_entry_d, o_carrier_id, o_ol_cnt, o_all...;
dbt200:00:001552715535FETCH ALL IN mycursorDECLARE mycursor CURSOR FOR SELECT new_order(2, 3, 511, 1, 8, make_new_order_info(77820, 2, 8), ...;SELECT w_tax FROM warehouse WHERE w_id = $1;SELECT d_tax, d_next_o_id FROM district WHERE d_w_id = $1 AND d_id = $2 FOR UPDATE;UPDATE district SET d_next_o_id = d_next_o_id + 1 WHERE d_w_id = $1 AND d_id = $2;SELECT c_discount, c_last, c_credit FROM customer WHERE c_w_id = $1 AND c_d_id = $2 AND c_id...;INSERT INTO new_order (no_o_id, no_w_id, no_d_id) VALUES ($1, $2, $3);INSERT INTO orders (o_id, o_d_id, o_w_id, o_c_id, o_entry_d, o_carrier_id, o_ol_cnt, o_all...;SELECT i_price, i_name, i_data FROM item WHERE i_id = $1;SELECT s_quantity, $1, s_data FROM stock WHERE s_i_id = $2 AND s_w_id = $3;UPDATE stock SET s_quantity = s_quantity - $1 WHERE s_i_id = $2 AND s_w_id = $3;INSERT INTO order_line (ol_o_id, ol_d_id, ol_w_id, ol_number, ol_i_id, ol_supply_w_id, ol_del...;SELECT i_price, i_name, i_data FROM item WHERE i_id = $1;SELECT s_quantity, $1, s_data FROM sto...;

Activities

Checkpoint Activity

total checkpoints10
checkpoints by time4
checkpoints by xlog6
avg written buffers40824.700
max written buffers135646.000
avg duration (sec)228.980
max duration (sec)551.813

Autovacuum Activity

Basic Statistics (Average)

database
schema
table
count
avg index scans
avg removed rows
avg remain rows
avg duration (sec)
max duration (sec)
cancels
dbt2pg_catalogpg_statistic11.000120.000475.0000.0200.0200
dbt2pg_toastpg_toast_261911.00069.0003.0000.0000.0000
dbt2publicdistrict610.2301090.9843580.7212.59423.4201
dbt2publicwarehouse610.0661346.459518.7540.5604.1101

Vacuum Cancels

timestamp
database
schema
table
cause query
2013-06-07 15:37:13dbt2publicdistrictANALYZE
2013-06-07 15:32:20dbt2publicwarehouseANALYZE

I/O Statistics (Average)

database
schema
table
avg page hit
avg page miss
avg page dirty
avg read rate
avg write rate
dbt2publicwarehouse188.6073.1480.7382.5490.802
dbt2publicdistrict368.3280.0980.7380.2020.347
dbt2pg_catalogpg_statistic110.0000.00029.0000.00010.786
dbt2pg_toastpg_toast_261979.0000.00013.0000.000336.300

Analyze Statistics

database
schema
table
count
total duration (sec)
avg duration (sec)
max duration (sec)
last analyze time
dbt2publicstock264.9604.05348.1602013-06-07 15:21:38
dbt2publicorder_line126.9003.87836.9702013-06-07 15:21:36
dbt2publiccustomer117.2202.74716.3802013-06-07 15:03:38
dbt2publicwarehouse1302.9500.0210.0502013-06-07 15:29:39
dbt2publicorders12.6500.9610.2342013-06-07 15:46:38
dbt2publichistory11.9200.2730.3162013-06-07 15:43:32
dbt2publicnew_order31.3000.0360.0432013-06-07 15:16:39
dbt2publicdistrict1390.8000.0030.0052013-06-07 15:29:39

Replication Activity

Current Replication Status

userpostgrespostgres
appnamesbysby
client addr172.20.144.30172.20.144.31
client_host
client_port3920934691
backend start2013-06-07 14:34:002013-06-07 14:34:00
statestreamingstreaming
current location110/27BBE000 (000000010000011000000027)110/27BBE000 (000000010000011000000027)
sent location110/27BBE000 (000000010000011000000027)110/27BBE000 (000000010000011000000027)
write location110/27BBE000 (000000010000011000000027)110/27BBE000 (000000010000011000000027)
flush location110/27BBE000 (000000010000011000000027)110/27BBE000 (000000010000011000000027)
replay location110/27BAD7E0 (000000010000011000000027)110/27BAD7E0 (000000010000011000000027)
sync priority11
sync statesyncpotential

Replication Delays

Replication Delays
Timestamp
Delaying amount (Bytes)
0
128k
256k
384k
512k
640k
768k
896k
15:00
15:30
16:00
172.20.144.31:34691 flush_delay_size

172.20.144.31:34691 replay_delay_size

[sync]172.20.144.30:39209 flush_delay_size

[sync]172.20.144.30:39209 replay_delay_size

Information

Schema Information

Table

database
schema
table
columns
rows
MiB
+MiB
table scans
index scans
dbt2publiccustomer2168000674501956265
dbt2publicdistrict1110111980850
dbt2publichistory890008711710
dbt2publicitem510010012226383
dbt2publicnew_order3150013991379720
dbt2publicorder_line10102000106312601417266
dbt2publicorders88000726141398550
dbt2publicstock1713000012656008310679
dbt2publicwarehouse90000615521

Index

database
schema
index
table
MiB
+MiB
scans
rows/scan
reads
hits
keys
dbt2publici_customercustomer59101320552.418213787403871c_w_id, c_d_id, c_last, c_first, c_id
dbt2publici_ordersorders3060188301.043229885503202o_w_id, o_d_id, o_c_id
dbt2publicpk_customercustomer30608242101.0004011222117999c_w_id, c_d_id, c_id
dbt2publicpk_districtdistrict009808500.792331978580d_w_id, d_id
dbt2publicpk_itemitem2022263830.9995514463141i_id
dbt2publicpk_new_ordernew_order9643797200.988178691797056no_w_id, no_d_id, no_o_id
dbt2publicpk_order_lineorder_line306214741726618.33646241811402110ol_w_id, ol_d_id, ol_o_id, ol_number
dbt2publicpk_ordersorders333263797201.000822171746547o_w_id, o_d_id, o_id
dbt2publicpk_stockstock728083106791.00061725232768906s_w_id, s_i_id
dbt2publicpk_warehousewarehouse006155211.00081241160w_id

Setting Parameters

Parameter

name
setting
unit
source
TimeZoneJapanconfiguration file
archive_command/bin/cp %p /pgdata/pgarch/arc_dbt2/%fconfiguration file
archive_modeonconfiguration file
autovacuum_freeze_max_age2000000000configuration file
autovacuum_max_workers4configuration file
autovacuum_vacuum_cost_limit400configuration file
checkpoint_completion_target0.7configuration file
checkpoint_segments300configuration file
checkpoint_timeout900sconfiguration file
default_statistics_target10configuration file

End of report