pg_statsinfo: Details


Summary

instname5688733568411365690
hostnamelocalhost.localdomain
port20300
pg_version9.1.2
snap_begin2011-12-27 07:30:01
snap_end2011-12-27 17:00:01
duration09:30:00
total_dbsize125 MB
total_commits1424407
total_rollbacks0

Database Statistics

IDdatnamesizesize_incrxact_commit_tpsxact_rollback_tpsblks_hit_rateblks_hit_tpsblks_read_tpstup_fetch_tps
1postgres12410241.6500.00099.8001403.0372.808629.930

Transaction Statistics

Database Size

Recovery Conflicts

IDdatnameconfl_tablespaceconfl_lockconfl_snapshotconfl_bufferpinconfl_deadlock
1postgres00000

Instance Activity

Instance Processes ratio

IDidle (%)idle in xact (%)waiting (%)running (%)
138.874.6150.785.73

Instance Processes

OS Resource Usage

CPU usage

IDuser (%)system (%)idle (%)iowait (%)
19.046.9783.310.68

IO usage

total read/write time and I/O queue and I/O time are possibly 0 for tablespaces which is on OS partition's condition.

IDdevice_nameIncluding TabelSpacestotal read(MB)total write(MB)total read time (ms)total write time (ms)current I/O queuetotal I/O time(ms)
1dm-2{pg_default,pg_global,<pg_xlog_archive>}506280121710292326765624232847180

Disk Usage

Disk Usage per Tablespace

IDtablespacelocationdeviceused (MB)avail (MB)remain%
1<pg_xlog_archive>/home/statsinfo/var/archivelog253:2173693154264.488
2pg_default/home/statsinfo/var/pgdata253:2173693154264.488
3pg_global/home/statsinfo/var/pgdata253:2173693154264.488

Disk Usage per Table

IDDatabaseSchemaTableSize (MB)table_readsindex_readstoast_reads
1postgrespublicpgbench_history898656600
2postgresstatsrepocolumn_20111227433992130
3postgresstatsrepoindex_2011122711351390
4postgresstatsrepotable_201112271926400
5postgrespublicpgbench_branches088800
6postgrespublicpgbench_accounts1443700
7postgresstatsrepostatement0153200
8postgresstatsrepofunction0116170
9postgresstatsrepoautovacuum0112140
10postgresstatsrepoautoanalyze096140
Table Size
Disk Reads

Long Transactions

IDpidclient addresswhen to startduration (sec)query
1228782011-12-27 13:04:009.895autovacuum: ANALYZE public.pgbench_history
2324772011-12-27 15:44:168.652autovacuum: ANALYZE public.pgbench_history
331852011-12-27 16:34:228.623autovacuum: ANALYZE public.pgbench_history
4272872011-12-27 14:17:128.539autovacuum: ANALYZE public.pgbench_history
5297862011-12-27 14:59:128.282autovacuum: ANALYZE public.pgbench_history
6250112011-12-27 13:39:128.090autovacuum: ANALYZE public.pgbench_history
7194192011-12-27 12:05:545.831autovacuum: ANALYZE public.pgbench_history
8178642011-12-27 11:39:523.421autovacuum: ANALYZE public.pgbench_history
9152372011-12-27 10:55:473.136autovacuum: ANALYZE public.pgbench_history
10210272011-12-27 12:32:573.055autovacuum: ANALYZE public.pgbench_history
1171692011-12-27 08:43:081.975UPDATE pgbench_branches SET bbalance = bbalance + -1731 WHERE bid = 1;
12129392011-12-27 10:18:431.889autovacuum: ANALYZE public.pgbench_history
13107492011-12-27 09:43:081.813UPDATE pgbench_branches SET bbalance = bbalance + 1836 WHERE bid = 1;
1435952011-12-27 07:43:081.739UPDATE pgbench_branches SET bbalance = bbalance + 4360 WHERE bid = 1;

Notable Tables

Heavily Updated Tables

IDDatabaseSchemaTableINSERTUPDATEDELETEtotalHOT%
1postgrespublicpgbench_history14018830014018830.000
2postgrespublicpgbench_tellers0140188301401883100.000
3postgrespublicpgbench_accounts014018830140188399.700
4postgrespublicpgbench_branches014018830140188399.600
5postgresstatsrepocolumn_201112273453000345300.000
6postgrespg_catalogpg_statistic15158780602995.600
7postgresstatsrepoindex_2011122759920059920.000
8postgresstatsrepotable_2011122747000047000.000
9postgresstatsrepoautoanalyze14050014050.000
10postgresstatsrepostatement11400011400.000
11postgresstatsrepoautovacuum11310011310.000
12postgresstatsreposetting950009500.000
13postgresstatsrepofunction773007730.000
14postgresstatsreposchema304003040.000
15postgrespg_catalogpg_attribute134001340.000
16postgresstatsrepotablespace114001140.000
17postgresstatsrepocheckpoint114001140.000
18postgresstatsrepoinherits108001080.000
19postgrespg_catalogpg_depend102001020.000
20postgrespg_toastpg_toast_261942039810.000
Heavily Updated Tables

Heavily Accessed Tables

IDDatabaseSchemaTableseq_scanseq_tup_readtup_per_seqblks_hit_rate
1postgresstatsrepostatement1360360.00097.100
2postgresstatsreposetting2600300.00097.700
3postgresstatsrepoautovacuum2366183.00097.200
4postgresstatsreposchema2989380332127.24499.800
5postgresstatsrepofunction988097.77896.600
6postgresstatsreposnapshot2995895726931.954100.000
7postgresstatsrepodatabase9728.000100.000
8postgrespublicpgbench_tellers113641472567106.386100.000
9postgresstatsreporeplication166.00071.800
10postgresstatsrepoinstance376248331.28599.900
11postgrespublicpgbench_branches223486911183720.500100.000

Low Density Tables

IDDatabaseSchemaTabletupleslogical_pagesphysical_pagestratio
1postgrespublicpgbench_history140852389721143678
2postgrespublicpgbench_accounts1000001640191885

Fragmented Tables

IDDatabaseSchemaTableColumncorrelation

Checkpoint Activity

total checkpoints114
checkpoints by time114
checkpoints by xlog0
avg written buffers2068.877
max written buffers2869.000
avg duration (sec)150.014
max duration (sec)150.346

Autovacuum Activity

IDDatabaseSchemaTablecountavg index scansavg removed rowsavg remain rowsavg duration (sec)max duration (sec)
1postgrespg_toastpg_toast_261911.0004.00011.0000.0000.000
2postgrespublicpgbench_branches5571.000142.75654.7970.5778.170
3postgrespg_catalogpg_statistic31.00098.667529.3330.0330.050
4postgrespublicpgbench_tellers5690.077627.44612.6380.0544.370

Query Activity

Functions

IDDatabaseSchemaFunctioncallstotal time (ms)self time (ms)time/call (ms)
1postgresstatsrepopartition_insert4522214057140570.311
2postgresstatsrepoget_snap_date45222673667360.149
3postgresstatsrepopartition_create3866614317.526
4postgresstatsrepopartition_new1145235224.588
5postgresstatsinfosample684049490.007
6postgresstatsrepoget_disk_usage_table1393939.000
7postgresstatsrepoget_snapshot_list1212121.000
8postgresstatsrepoget_low_density_tables1151415.000
9postgrespublicpg_stat_statements1914140.737
10postgresstatsrepoget_heavily_updated_tables21296.000
11postgresstatsrepoget_dbstats1101010.000
12postgresstatsrepoget_schema_info_indexes1101010.000
13postgresstatsinfodevicestats201090.500
14postgresstatsinfocpustats20770.350
15postgresstatsrepoget_checkpoint_activity1777.000
16postgresstatsrepoget_schema_info_tables1555.000
17postgresstatsrepodiv329330.009
18postgresstatsrepoget_query_activity_statements1333.000
19postgresstatsrepoget_flagmented_tables1333.000
20postgresstatsinfotablespaces40220.050

Statements

IDuserdatabasequerycallstotal time (sec)time/call (sec)
1postgrespostgresBEGIN;14021172.2860.000
2postgrespostgresEND;14021171.9390.000
3postgrespostgresUPDATE pgbench_branches SET bbalance = bbalance + 1542 WHERE bid = 1;20.0590.029
4postgrespostgresUPDATE pgbench_tellers SET tbalance = tbalance + -2704 WHERE tid = 10;10.0580.058
5postgrespostgresUPDATE pgbench_tellers SET tbalance = tbalance + 4932 WHERE tid = 3;10.0570.057
6postgrespostgresUPDATE pgbench_branches SET bbalance = bbalance + 345 WHERE bid = 1;10.0540.054
7postgrespostgresUPDATE pgbench_tellers SET tbalance = tbalance + -4148 WHERE tid = 10;10.0540.054
8postgrespostgresUPDATE pgbench_tellers SET tbalance = tbalance + 3377 WHERE tid = 5;10.0540.054
9postgrespostgresUPDATE pgbench_tellers SET tbalance = tbalance + 4588 WHERE tid = 3;10.0520.052
10postgrespostgresUPDATE pgbench_branches SET bbalance = bbalance + -1307 WHERE bid = 1;10.0510.051
11postgrespostgresUPDATE pgbench_branches SET bbalance = bbalance + 3537 WHERE bid = 1;10.0500.050
12postgrespostgresUPDATE pgbench_tellers SET tbalance = tbalance + -2109 WHERE tid = 5;10.0500.050
13postgrespostgresUPDATE pgbench_branches SET bbalance = bbalance + 3772 WHERE bid = 1;10.0490.049
14postgrespostgresUPDATE pgbench_tellers SET tbalance = tbalance + 2457 WHERE tid = 3;10.0480.048
15postgrespostgresUPDATE pgbench_branches SET bbalance = bbalance + -1892 WHERE bid = 1;10.0470.047
16postgrespostgresUPDATE pgbench_branches SET bbalance = bbalance + 14 WHERE bid = 1;20.0460.023
17postgrespostgresUPDATE pgbench_tellers SET tbalance = tbalance + 2827 WHERE tid = 8;10.0460.046
18postgrespostgresUPDATE pgbench_branches SET bbalance = bbalance + -2425 WHERE bid = 1;20.0440.022
19postgrespostgresUPDATE pgbench_tellers SET tbalance = tbalance + -3081 WHERE tid = 5;10.0430.043
20postgrespostgresUPDATE pgbench_tellers SET tbalance = tbalance + -4254 WHERE tid = 7;10.0420.042

Lock Activity

datnamepostgrespostgrespostgres
nspname
relname
duration00:00:3500:00:3200:00:32
blockee_pid234372343523436
blocker_pid234382343823438
blocker_gid
blockee_queryUPDATE pgbench_branches SET bbalance = bbalance + 899 WHERE bid = 1;UPDATE pgbench_branches SET bbalance = bbalance + -2572 WHERE bid = 1;UPDATE pgbench_branches SET bbalance = bbalance + 3099 WHERE bid = 1;
blocker_queryUPDATE pgbench_accounts SET abalance = abalance + 4649 WHERE aid = 32503;SELECT abalance FROM pgbench_accounts WHERE aid = 32503;UPDATE pgbench_tellers SET tbalance = tbalance + 4649 WHERE tid = 7;UPDATE pgbench_branches SET bbalance = bbalance + 4649 WHERE bid = 1;INSERT INTO pgbench_history (tid, bid, aid, delta, mtime) VALUES (7, 1, 32503, 4649, CURRENT_TIM...;UPDATE pgbench_accounts SET abalance = abalance + 4649 WHERE aid = 32503;SELECT abalance FROM pgbench_accounts WHERE aid = 32503;UPDATE pgbench_tellers SET tbalance = tbalance + 4649 WHERE tid = 7;UPDATE pgbench_branches SET bbalance = bbalance + 4649 WHERE bid = 1;INSERT INTO pgbench_history (tid, bid, aid, delta, mtime) VALUES (7, 1, 32503, 4649, CURRENT_TIM...;UPDATE pgbench_accounts SET abalance = abalance + 4649 WHERE aid = 32503;SELECT abalance FROM pgbench_accounts WHERE aid = 32503;UPDATE pgbench_tellers SET tbalance = tbalance + 4649 WHERE tid = 7;UPDATE pgbench_branches SET bbalance = bbalance + 4649 WHERE bid = 1;INSERT INTO pgbench_history (tid, bid, aid, delta, mtime) VALUES (7, 1, 32503, 4649, CURRENT_TIM...;

Replication Activity

usenamepostgres
application_namexxx
client_addr127.0.0.1
client_hostname
client_port44986
backend_start2011-12-27 07:25:31.759518+09
statestreaming
current_location4/B6B44C60 (0000000100000004000000B6)
sent_location4/B6B44C60 (0000000100000004000000B6)
write_location4/B6B44C60 (0000000100000004000000B6)
flush_location4/B6B44C60 (0000000100000004000000B6)
replay_location4/B6B44C20 (0000000100000004000000B6)
sync_priority1
sync_statesync

Setting Parameters

IDnamesettingsource
1archive_commandcp %p /home/statsinfo/var/archivelog/%fconfiguration file
2archive_modeonconfiguration file
3default_text_search_configpg_catalog.englishconfiguration file
4lc_messagesCconfiguration file
5listen_addresses*configuration file
6log_autovacuum_min_duration0configuration file
7log_checkpointsonconfiguration file
8log_destinationcsvlogoverride
9logging_collectoronoverride
10max_prepared_transactions10configuration file
11max_stack_depth2048environment variable
12max_wal_senders5configuration file
13pg_statsinfo.enable_maintenanceonconfiguration file
14pg_statsinfo.long_lock_threashold0configuration file
15pg_statsinfo.snapshot_interval1800configuration file
16port20300command line
17shared_buffers4096configuration file
18shared_preload_librariespg_statsinfo, pg_stat_statementsconfiguration file
19synchronous_standby_namesxxxconfiguration file
20track_functionsallconfiguration file
21transaction_isolationread committedoverride
22wal_buffers128override
23wal_keep_segments32configuration file
24wal_levelhot_standbyconfiguration file

Schema Information

Tables

IDDatabaseSchemaTablecolumnsrow widthsize (MB)incremental size (MB)table scansindex scans
1postgrespublicpgbench_accounts49714102803766
2postgrespublicpgbench_branches38002234869284081
3postgrespublicpgbench_history624898800
4postgrespublicpgbench_tellers412001136414676212

Indexes

IDDatabaseSchemaIndexTablesize (MB)incremental size (MB)scansrows/scanblks_readblks_hitkeys
1postgrespublicpgbench_accounts_pkeypgbench_accounts2028037661.00005636059aid
2postgrespublicpgbench_branches_pkeypgbench_branches002840811.0000295125bid
3postgrespublicpgbench_tellers_pkeypgbench_tellers006762120.9131680346tid

Profiles

IDprocessingexecutes
1DATA:READ0.00
2LWLOCK:LOCK-MGR-LOCK0.00
3CPU:REWRITE0.00
4CPU:EXECUTE0.00
5LWLOCK:BUFFER-MAPPING-LOCK0.00
6CPU:PARSE0.00
7CPU:PLAN0.00
8XLOG:INSERT1.00
9UNUSED_OR_IDLE2.00
10LOCK:HEAVY-LOCK2.00
11CPU4.00
12LWLOCK:LELOCK31.00