[repository1]
dbserver01:5432
begin:
2015-03-10 00:00
end:
2015-03-11 00:00



repository1

dbserver01:5432

repository2

dbserver02:5432


Report Overview

Database system identifier6124488995257552289
Host namedbserver01
Port ID5432
PostgreSQL version9.4.1
Begins at2015-03-10 16:13:00
Ends at2015-03-10 17:13:00
Period01:00:00
Database size1055 MiB
Number of commits16532
Number of rollbacks64

Alerts

Time
Message
2015-03-10 16:44:00load average 1min exceeds threshold in snapshot '2015-03-10 16:44:00' --- 7.19 (threshold = 7)
2015-03-10 17:08:00load average 1min exceeds threshold in snapshot '2015-03-10 17:08:00' --- 8.09 (threshold = 7)

Statistics

Databases Statistics

Database
MiB
+MiB
Commit/s
Rollback/s
Hit%
Gets/s
Reads/s
Rows/s
dbt21054334.5920.01895.1828.51940.425772.807

Transactions

Transactions
Time
Transactions per second
0
1
2
3
4
5
6
16:30
17:00
dbt2 commit_tps

dbt2 rollback_tps

Database Size

Database Size
Time
Database Size (Bytes)
1G
1.01G
1.02G
1.02G
1.03G
16:30
17:00
dbt2 size

Recovery Conflicts

Database
On tablespaces
On locks
On snapshots
On bufferpins
On deadlocks
dbt200000

Instance Statistics

Write Ahead Logs

Total size (MiB)1353.734
Average output rate (MiB/s)0.376
Number of archived files84
Number of archiving errors0
Latest WAL file0000000100000000000000CF
Last archived file0000000100000000000000CD
WAL Write Rate
Time
Bytes per snapshot
Write rate (Bytes/s)
16M
20M
24M
28M
191.22k
424.05k
656.88k
889.71k
16:30
17:00
Bytes/snapshot (Bytes)

Write rate (Bytes/s)

Backend States Overview

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

Backend States

Backend States
Time
Percent
0
20
40
60
80
100
16:30
17:00
idle

idle in xact

waiting

running

OS Resources

CPU and Memory

CPU Usage

CPU Usage
Time
Percent
0
20
40
60
80
100
16:30
17:00
idle

iowait

system

user

Load Average

Load Average
Time
Load Average
0
2
4
6
8
16:30
17:00
1min

5min

15min

Memory Usage

Memory Usage (Linear Scale)
Time
Bytes
0
128M
256M
384M
512M
640M
768M
16:30
17:00
memfree

buffers

cached

swap

dirty

Disks

Disk Usage per Tablespace

Tablespace
Location
Device
Used (MiB)
Avail (MiB)
Remain (%)
<pg_xlog_archive>/home/statsinfo/var/archivelog8:211726729438.3
pg_default/home/statsinfo/var/pgdata8:211726729438.3
pg_global/home/statsinfo/var/pgdata8:211726729438.3

Disk Usage per Table

Database
Schema
Table
Size (MiB)
Table reads
Index reads
Toast reads
dbt2publicstock34747888101530
dbt2publicorder_line282308926840
dbt2publiccustomer18354125151600
dbt2publichistory257000
dbt2publicorders1971959430
dbt2publicitem1045242290
dbt2publicnew_order4515580
dbt2publicwarehouse0670
dbt2publicdistrict0200
Table Size
dbt2.public.stock
dbt2.public.order_line
dbt2.public.customer
other
40%
32%
21%
7%
Disk Read
dbt2.public.customer
dbt2.public.stock
other
48%
40%
12%

I/O Usage

Device name
Containing table spaces
Read
Write
Average I/O queue
Total I/O time (ms)
Total bytes (MiB)
Peak rate (KiB/s)
Total time (ms)
Total bytes (MiB)
Peak rate (KiB/s)
Total time (ms)
sda2{<pg_xlog_archive>,pg_default,pg_global}32142766.401010285271927156.0016725652055.500177375832

Toggle I/O Rate Graph
I/O Rate
Time
I/O Rate (Bytes/s)
512k
1M
1.5M
2M
2.5M
16:30
17:00
sda2 read

sda2 write

Toggle I/O Peak Rate Graph
I/O Peak Rate per Snapshot Interval
Time
I/O Peak Rate (Bytes/s)
1M
2M
3M
4M
5M
6M
7M
16:30
17:00
sda2 read

sda2 write

Toggle I/O Time Graph
I/O Time
Time
I/O Time (%)
0
2000
4000
6000
8000
10000
12000
16:30
17:00
sda2 avg read time

sda2 avg write time

Activities

Notable Tables

Heavily Updated Tables

Database
Schema
Table
INSERT
UPDATE
DELETE
Total
HOT (%)
dbt2publicorder_line7159661831013342775.2
dbt2publicstock0715960715960.0
dbt2publicdistrict01348201348299.8
dbt2publicorders6801650001330180.5
dbt2publicnew_order680206410132120.0
dbt2publiccustomer01317801317822.0
dbt2publichistory66780066780.0
dbt2publicwarehouse0667806678100.0
dbt2publicitem00000.0

Heavily Accessed Tables

Database
Schema
Table
Seq scan
Seq tup read
Tup per seq
Hit ratio (%)
dbt2publicwarehouse206992016209.741100.0

Low Density Tables

Database
Schema
Table
Tuples
Logical pages
Physical pages
L/P ratio (%)
dbt2publicorder_line2920012360503612199.8
dbt2publicstock999995416674449293.7
dbt2publicorders30683325572481103.1
dbt2publichistory3067923163329596.0
dbt2publiccustomer300000230772342498.5
dbt2publicitem1000001235128196.4

Table Fragmentations

Database
Schema
Table
Column
Correlation
dbt2publicnew_orderno_w_id0.914
dbt2publicdistrictd_w_id0.368
dbt2publicorder_lineol_d_id0.212
dbt2publiccustomerc_d_id0.199
dbt2publiccustomerc_d_id0.199
dbt2publicorderso_d_id0.195
dbt2publicorderso_d_id0.195
dbt2publicnew_orderno_d_id0.188
dbt2publicnew_orderno_o_id0.156
dbt2publicdistrictd_id0.125

Query Activity

Functions

Database
Schema
Function
Calls
Total time (ms)
Self time (ms)
Time/call (ms)
dbt2publicdelivery650540961.861540961.861832.249
dbt2publicnew_order67954373175.3674373175.367643.587
dbt2publicorder_status597282199.495282199.495472.696
dbt2publicstock_level613284760.145284760.145464.535
dbt2publicpayment66772409754.6912409754.691360.904
dbt2publicmake_new_order_info1019254285.8064285.8060.042

Statements

User
Database
Query
Calls
Total time (sec)
Time/call (sec)
statsinfodbt2FETCH ALL IN mycursor68374403.6860.644
statsinfodbt2SELECT payment(?, ?, ?, ?, ?, ?, ?)66952418.2820.361
statsinfodbt2SELECT delivery(9, 10)653542.3430.831
statsinfodbt2SELECT stock_level(?, ?, ?)614284.8520.464
statsinfodbt2SELECT * FROM order_status(?, ?, ?, ?)599282.5900.472
statsinfodbt2SELECT c.oid AS relid, c.relnamespace, c.reltablespace, c.relname, c.reltoastrelid, x.indexrelid AS 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_
display full query string
6030.7280.512
statsinfodbt2
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
display full query string
6024.8860.415
statsinfodbt2
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,
display full query string
6024.5270.409
statsinfodbt2
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
display full query string
6024.4340.407
statsinfodbt2CLOSE mycursor68371.7810.000

Plans

Query ID
User
Database
Plan count
Calls
Total time (sec)
Time/call (sec)
Block read time (ms)
Block write time (ms)
Query (child row)
Plan details (child row)
1909903165statsinfodbt2166952418.2820.3611734804.4570.000
Plan ID
Calls
Total time (sec)
Time/call (sec)
Block read time (ms)
Block write time (ms)
First call
Last call
Plan (child row)
2694427204statsinfodbt21653542.3430.831497424.4340.000
Plan ID
Calls
Total time (sec)
Time/call (sec)
Block read time (ms)
Block write time (ms)
First call
Last call
Plan (child row)
2617894629statsinfodbt21614284.8520.464274705.6680.000
Plan ID
Calls
Total time (sec)
Time/call (sec)
Block read time (ms)
Block write time (ms)
First call
Last call
Plan (child row)
1366601918statsinfodbt21599282.5900.472279756.6810.000
Plan ID
Calls
Total time (sec)
Time/call (sec)
Block read time (ms)
Block write time (ms)
First call
Last call
Plan (child row)
2584918680statsinfodbt216030.7280.5120.0000.000
Plan ID
Calls
Total time (sec)
Time/call (sec)
Block read time (ms)
Block write time (ms)
First call
Last call
Plan (child row)
259851661statsinfodbt216024.8860.4150.0000.000
Plan ID
Calls
Total time (sec)
Time/call (sec)
Block read time (ms)
Block write time (ms)
First call
Last call
Plan (child row)
2924031990statsinfodbt216024.5270.4090.0000.000
Plan ID
Calls
Total time (sec)
Time/call (sec)
Block read time (ms)
Block write time (ms)
First call
Last call
Plan (child row)
1150882013statsinfodbt216024.4340.4070.0000.000
Plan ID
Calls
Total time (sec)
Time/call (sec)
Block read time (ms)
Block write time (ms)
First call
Last call
Plan (child row)
1380877759statsinfodbt21600.7750.0130.0000.000
Plan ID
Calls
Total time (sec)
Time/call (sec)
Block read time (ms)
Block write time (ms)
First call
Last call
Plan (child row)
9142721statsinfodbt21600.7470.0120.0000.000
Plan ID
Calls
Total time (sec)
Time/call (sec)
Block read time (ms)
Block write time (ms)
First call
Last call
Plan (child row)

Long Transactions

PID
Client address
Begin at
Duration (sec)
Last query
9214::12015-03-10 16:58:5019.766COMMIT
9214::12015-03-10 17:05:0618.768COMMIT
9210::12015-03-10 16:56:4218.096COMMIT
9210::12015-03-10 16:27:0217.214COMMIT
9208::12015-03-10 16:58:5016.753FETCH ALL IN mycursor
9202::12015-03-10 16:58:5016.679COMMIT
9202::12015-03-10 17:10:0916.429COMMIT
9221::12015-03-10 16:58:5016.330FETCH ALL IN mycursor
9210::12015-03-10 16:45:3415.877DECLARE mycursor CURSOR FOR SELECT new_order(9, 5, 1592, 1, 8, make_new_order_info(38400, 9, 1), make_new_order_info(57086, 9, 5), make_new_order_info(24416, 9, 10), make_new_order_info(47294, 9, 7), make_new_order_info(90868, 9, 9), make_new_order_info(97
display full query string
9210::12015-03-10 16:43:2915.581COMMIT

Lock Conflicts

Database
Schema
Relation
Duration
Blockee PID
Blocker PID
Blocker GID
Blockee query
Blocker query
dbt200:00:1492149208FETCH ALL IN mycursor
DECLARE mycursor CURSOR FOR SELECT new_order(7, 10, 1017, 1, 12, make_new_order_info(83968, 7, 2...;SELECT w_tax
FROM warehouse
WHERE w_id = $1;SELECT d_tax, d_next_o_id
FROM district 
WHERE d_w_id = $1
display full query string
dbt200:00:1292049219SELECT payment(8, 9, 1144, 8, 9, '', 4861.960000)
SELECT payment(8, 3, 0, 8, 3, 'CALLYBARABLE', 2287.110000);SELECT w_name, w_street_1, w_street_2, w_city, w_state, w_zip
FROM warehouse
WHERE w_id = $1;UPDATE warehouse
SET w_ytd = w_ytd + $1
WHERE w_id = $2;SELECT d_name, d_street_1, d_street_2, d_city, d_state, d_zip
display full query string
dbt200:00:0892109212SELECT payment(7, 5, 1008, 7, 5, '', 1451.580000)
SELECT payment(7, 4, 0, 6, 1, 'ESEOUGHTOUGHT', 3180.460000);SELECT w_name, w_street_1, w_street_2, w_city, w_state, w_zip
FROM warehouse
WHERE w_id = $1;UPDATE warehouse
SET w_ytd = w_ytd + $1
WHERE w_id = $2;SELECT d_name, d_street_1, d_street_2, d_city, d_state, d_zip
display full query string
dbt200:00:0592199221SELECT payment(1, 5, 0, 1, 5, 'ABLEESEOUGHT', 2693.210000)
SELECT payment(1, 10, 1982, 1, 10, '', 1534.610000);SELECT w_name, w_street_1, w_street_2, w_city, w_state, w_zip
FROM warehouse
WHERE w_id = $1;UPDATE warehouse
SET w_ytd = w_ytd + $1
WHERE w_id = $2;SELECT d_name, d_street_1, d_street_2, d_city, d_state, d_zip
display full query string
dbt200:00:0592049214FETCH ALL IN mycursor
DECLARE mycursor CURSOR FOR SELECT new_order(2, 3, 71, 1, 10, make_new_order_info(89856, 2, 4), ...;SELECT w_tax
FROM warehouse
WHERE w_id = $1;SELECT d_tax, d_next_o_id
FROM district 
WHERE d_w_id = $1
display full query string

Maintenances

Checkpoints

Number of checkpoints28
Caused by timeout0
Caused by xlogs28
Average written buffers6105.679
Maximum written buffers6465.000
Average checkpoint duration74.531
Maximum checkpoint duration88.732

Autovacuums

Overview

Database
Schema
Table
Count
Avg index scans
Avg removed rows
Avg remain rows
Avg remain dead
Avg duration (sec)
Max duration (sec)
Cancels
dbt2pg_catalogpg_statistic11.00061.000491.0000.0000.0600.0600
dbt2pg_toastpg_toast_261951.00056.40081.0004.4001.0304.7900
dbt2publicdistrict590.11999.356121.79720.3730.0270.7402
dbt2publicwarehouse360.02856.16721.38910.5280.0050.1300

I/O Summary

Database
Schema
Table
Avg page hit
Avg page miss
Avg page dirtied
Avg read rate
Avg write rate
dbt2pg_toastpg_toast_261964.00012.60013.4001.2331.487
dbt2pg_catalogpg_statistic119.0002.00021.0000.2342.456
dbt2publicwarehouse45.7220.2503.5281.95332.019
dbt2publicdistrict40.9660.0342.7630.14517.791

Analyze Overview

Database
Schema
Table
Count
Total duration (sec)
Avg duration (sec)
Max duration (sec)
Last analyzed
Cancels
Max modified rows
dbt2publicwarehouse602.1700.0360.0502015-03-10 17:12:40069
dbt2publicdistrict601.1800.0200.1302015-03-10 17:12:492246
dbt2publicnew_order10.6600.6600.6602015-03-10 16:51:3608963

Modified Rows

Modified Rows
Time
Modified rows (%)
0
100
200
300
400
500
600
700
16:30
17:00
dbt2.public.customer ratio

dbt2.public.district ratio

dbt2.public.history ratio

dbt2.public.item ratio

dbt2.public.new_order ratio

dbt2.public.order_line ratio

dbt2.public.orders ratio

dbt2.public.stock ratio

dbt2.public.warehouse ratio

Cancellations

Time
Database
Schema
Table
Activity
Causal query
2015-03-10 17:07:18dbt2publicdistrictVACUUM
SELECT payment(8, 3, 0, 8, 3, 'CALLYBARABLE', 2287.110000);SELECT w_name, w_street_1, w_street_2, w_city, w_state, w_zip\
FROM warehouse\
WHERE w_id = $1;UPDATE warehouse\
SET w_ytd = w_ytd + $1\
WHERE w_id = $2;SELECT d_name, d_street_1, d_street_2, d_city, d_state, d_zip\
display full query string
2015-03-10 17:01:57dbt2publicdistrictANALYZE
SELECT payment(8, 3, 0, 8, 3, 'CALLYBARABLE', 2287.110000);SELECT w_name, w_street_1, w_street_2, w_city, w_state, w_zip\
FROM warehouse\
WHERE w_id = $1;UPDATE warehouse\
SET w_ytd = w_ytd + $1\
WHERE w_id = $2;SELECT d_name, d_street_1, d_street_2, d_city, d_state, d_zip\
display full query string
2015-03-10 16:51:36dbt2publicdistrictANALYZE
SELECT payment(7, 4, 0, 6, 1, 'ESEOUGHTOUGHT', 3180.460000);SELECT w_name, w_street_1, w_street_2, w_city, w_state, w_zip\
FROM warehouse\
WHERE w_id = $1;UPDATE warehouse\
SET w_ytd = w_ytd + $1\
WHERE w_id = $2;SELECT d_name, d_street_1, d_street_2, d_city, d_state, d_zip\
display full query string
2015-03-10 16:22:36dbt2publicdistrictVACUUM
SELECT payment(7, 4, 0, 6, 1, 'ESEOUGHTOUGHT', 3180.460000);SELECT w_name, w_street_1, w_street_2, w_city, w_state, w_zip\
FROM warehouse\
WHERE w_id = $1;UPDATE warehouse\
SET w_ytd = w_ytd + $1\
WHERE w_id = $2;SELECT d_name, d_street_1, d_street_2, d_city, d_state, d_zip\
display full query string

Replication

Overview

Session userstatsinfo
Application namesby
Client address127.0.0.1
Client host
Client port40783
Started at2015-03-10 16:11:08
Statestreaming
Current location0/CF2184B0 (0000000100000000000000CF)
Sent location0/CF2184B0 (0000000100000000000000CF)
Write location0/CF2184B0 (0000000100000000000000CF)
Flush location0/CF2184B0 (0000000100000000000000CF)
Replay location0/CF2037E0 (0000000100000000000000CF)
Sync priority1
Sync statesync

Delays

Replication Delays
Time
Delay (Bytes)
0
256k
512k
768k
1M
16:30
17:00
[sync]127.0.0.1:40783 flush

[sync]127.0.0.1:40783 replay

Miscellaneous

Tables and Indexes

Tables

Database
Schema
Table
Columns
Rows
MiB
+MiB
Table scans
Index scans
dbt2publiccustomer213000001836031507
dbt2publicdistrict1110000030408
dbt2publichistory830679225000
dbt2publicitem5100000100071660
dbt2publicnew_order39030040013000
dbt2publicorder_line1029200122827014210
dbt2publicorders8306833190013598
dbt2publicstock1799999534770252179
dbt2publicwarehouse91000206990

Indexes

Database
Schema
Index
Table
MiB
+MiB
Scans
Rows/scan
Reads
Hits
Keys
dbt2publici_customercustomer170425111.684907234909c_w_id, c_d_id, c_last, c_first, c_id
dbt2publici_ordersorders905981.048563420366o_w_id, o_d_id, o_c_id
dbt2publicpk_customercustomer90272561.0006088106770c_w_id, c_d_id, c_id
dbt2publicpk_districtdistrict00304080.999030572d_w_id, d_id
dbt2publicpk_itemitem20716600.999229143417i_id
dbt2publicpk_new_ordernew_order20130000.9945860367no_w_id, no_d_id, no_o_id
dbt2publicpk_order_lineorder_line9261421016.7812684304612ol_w_id, ol_d_id, ol_o_id, ol_number
dbt2publicpk_ordersorders90130001.00030963275o_w_id, o_d_id, o_id
dbt2publicpk_stockstock3332521790.58710153963784s_w_id, s_i_id, s_quantity
dbt2publicpk_warehousewarehouse0000.000766w_id

Settings

Run-time parameters

Name
Setting
Unit
Source
TimeZoneJapanconfiguration file
archive_commandcp %p /home/statsinfo/var/archivelog/%fconfiguration file
archive_modeonconfiguration file
default_text_search_configpg_catalog.englishconfiguration file
lc_messagesCconfiguration file
listen_addresses*configuration file
log_autovacuum_min_duration0msconfiguration file
log_checkpointsonconfiguration file
log_destinationcsvlogoverride
log_timezoneJapanconfiguration file
SELECT c.oid AS relid, c.relnamespace, c.reltablespace, c.relname, c.reltoastrelid, x.indexrelid AS 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_mod_since_analyze(c.oid) AS n_mod_since_analyze, 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_blocks_hit(i.indexrelid))::bigint AS idx_blks_hit, pg_stat_get_blocks_fetched(t.oid) - pg_stat_get_blocks_hit(t.oid) AS toast_blks_read, pg_stat_get_blocks_hit(t.oid) AS toast_blks_hit, pg_stat_get_blocks_fetched(x.indexrelid) - pg_stat_get_blocks_hit(x.indexrelid) AS tidx_blks_read, pg_stat_get_blocks_hit(x.indexrelid) AS tidx_blks_hit, pg_stat_get_last_vacuum_time(c.oid) as last_vacuum, pg_stat_get_last_autovacuum_time(c.oid) as last_autovacuum, pg_stat_get_last_analyze_time(c.oid) as last_analyze, pg_stat_get_last_autoanalyze_time(c.oid) as last_autoanalyze FROM pg_class c LEFT JOIN pg_index i ON c.oid = i.indrelid LEFT JOIN pg_class t ON c.reltoastrelid = t.oid LEFT JOIN pg_index x ON c.reltoastrelid = x.indrelid LEFT JOIN pg_namespace n ON c.relnamespace = n.oid WHERE c.relkind IN (?, ?) AND n.nspname <> ALL ((? || $1 || ?)::text[]) GROUP BY c.oid, c.relnamespace, c.reltablespace, c.relname, c.reltoastrelid, c.relkind, c.relpages, c.reltuples, c.reloptions, t.oid, x.indexrelid
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
;
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
; 
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
; 
SELECT EXTRACT(? FROM TRANSACTION_TIMESTAMP()), relname, pid, mode, granted
FROM pg_locks, pg_class
WHERE relfilenode = relation
ORDER BY relname;
;
SELECT EXTRACT(? FROM TRANSACTION_TIMESTAMP()), datname, pid, usesysid,
       usename, application_name, client_addr, client_port, backend_start,
       xact_start, query_start, waiting, query
FROM pg_stat_activity
;
SELECT a.attrelid, a.attnum, a.attname, format_type(atttypid, atttypmod) AS type, a.attstattarget, a.attstorage, a.attnotnull, a.attisdropped, s.stawidth as avg_width, s.stadistinct as n_distinct, CASE WHEN s.stakind1 = ? THEN s.stanumbers1[?] WHEN s.stakind2 = ? THEN s.stanumbers2[?] WHEN s.stakind3 = ? THEN s.stanumbers3[?] WHEN s.stakind4 = ? THEN s.stanumbers4[?] ELSE ? END AS correlation FROM pg_attribute a LEFT JOIN pg_class c ON a.attrelid = c.oid LEFT JOIN pg_statistic s ON a.attnum = s.staattnum AND a.attrelid = s.starelid AND NOT s.stainherit LEFT JOIN pg_namespace n ON c.relnamespace = n.oid WHERE a.attnum > ? AND c.relkind IN (?, ?) AND n.nspname <> ALL ((? || $1 || ?)::text[])
SELECT i.oid AS indexrelid, c.oid AS relid, i.reltablespace, i.relname AS indexrelname, i.relam, i.relpages, i.reltuples, i.reloptions, x.indisunique, x.indisprimary, x.indisclustered, x.indisvalid, x.indkey, pg_get_indexdef(i.oid), pg_relation_size(i.oid), pg_stat_get_numscans(i.oid) AS idx_scan, pg_stat_get_tuples_returned(i.oid) AS idx_tup_read, pg_stat_get_tuples_fetched(i.oid) AS idx_tup_fetch, pg_stat_get_blocks_fetched(i.oid) - pg_stat_get_blocks_hit(i.oid) AS idx_blks_read, pg_stat_get_blocks_hit(i.oid) AS idx_blks_hit FROM pg_class c JOIN pg_index x ON c.oid = x.indrelid JOIN pg_class i ON i.oid = x.indexrelid JOIN pg_namespace n ON n.oid = c.relnamespace WHERE c.relkind IN (?, ?) AND n.nspname <> ALL ((? || $1 || ?)::text[])
SELECT s.funcid, n.oid AS nspid, s.funcname, pg_get_function_arguments(funcid) AS argtypes, s.calls, s.total_time, s.self_time FROM pg_stat_user_functions s JOIN pg_namespace n ON s.schemaname = n.nspname WHERE n.nspname <> ALL ((? || $1 || ?)::text[])
DECLARE mycursor CURSOR FOR SELECT new_order(8, 10, 2479, 1, 10, make_new_order_info(7934, 8, 10), make_new_order_info(69590, 8, 8), make_new_order_info(40368, 8, 6), make_new_order_info(1920, 8, 10), make_new_order_info(81844, 8, 7), make_new_order_info(49076, 8, 1), make_new_order_info(48636, 8, 8), make_new_order_info(32344, 8, 1), make_new_order_info(48557, 8, 6), make_new_order_info(15104, 8, 5), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0) )
SELECT EXTRACT(? FROM TRANSACTION_TIMESTAMP()), datname, pid, usesysid,
       usename, application_name, client_addr, client_port, backend_start,
       xact_start, query_start, waiting, query
FROM pg_stat_activity
;
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
;
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
; 
SELECT EXTRACT(? FROM TRANSACTION_TIMESTAMP()), relname, pid, mode, granted
FROM pg_locks, pg_class
WHERE relfilenode = relation
ORDER BY relname;
;
SELECT s.funcid, n.oid AS nspid, s.funcname, pg_get_function_arguments(funcid) AS argtypes, s.calls, s.total_time, s.self_time FROM pg_stat_user_functions s JOIN pg_namespace n ON s.schemaname = n.nspname WHERE n.nspname <> ALL ((? || $1 || ?)::text[])
SELECT c.oid AS relid, c.relnamespace, c.reltablespace, c.relname, c.reltoastrelid, x.indexrelid AS 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_mod_since_analyze(c.oid) AS n_mod_since_analyze, 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_blocks_hit(i.indexrelid))::bigint AS idx_blks_hit, pg_stat_get_blocks_fetched(t.oid) - pg_stat_get_blocks_hit(t.oid) AS toast_blks_read, pg_stat_get_blocks_hit(t.oid) AS toast_blks_hit, pg_stat_get_blocks_fetched(x.indexrelid) - pg_stat_get_blocks_hit(x.indexrelid) AS tidx_blks_read, pg_stat_get_blocks_hit(x.indexrelid) AS tidx_blks_hit, pg_stat_get_last_vacuum_time(c.oid) as last_vacuum, pg_stat_get_last_autovacuum_time(c.oid) as last_autovacuum, pg_stat_get_last_analyze_time(c.oid) as last_analyze, pg_stat_get_last_autoanalyze_time(c.oid) as last_autoanalyze FROM pg_class c LEFT JOIN pg_index i ON c.oid = i.indrelid LEFT JOIN pg_class t ON c.reltoastrelid = t.oid LEFT JOIN pg_index x ON c.reltoastrelid = x.indrelid LEFT JOIN pg_namespace n ON c.relnamespace = n.oid WHERE c.relkind IN (?, ?) AND n.nspname <> ALL ((? || $1 || ?)::text[]) GROUP BY c.oid, c.relnamespace, c.reltablespace, c.relname, c.reltoastrelid, c.relkind, c.relpages, c.reltuples, c.reloptions, t.oid, x.indexrelid
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
; 
SELECT i.oid AS indexrelid, c.oid AS relid, i.reltablespace, i.relname AS indexrelname, i.relam, i.relpages, i.reltuples, i.reloptions, x.indisunique, x.indisprimary, x.indisclustered, x.indisvalid, x.indkey, pg_get_indexdef(i.oid), pg_relation_size(i.oid), pg_stat_get_numscans(i.oid) AS idx_scan, pg_stat_get_tuples_returned(i.oid) AS idx_tup_read, pg_stat_get_tuples_fetched(i.oid) AS idx_tup_fetch, pg_stat_get_blocks_fetched(i.oid) - pg_stat_get_blocks_hit(i.oid) AS idx_blks_read, pg_stat_get_blocks_hit(i.oid) AS idx_blks_hit FROM pg_class c JOIN pg_index x ON c.oid = x.indrelid JOIN pg_class i ON i.oid = x.indexrelid JOIN pg_namespace n ON n.oid = c.relnamespace WHERE c.relkind IN (?, ?) AND n.nspname <> ALL ((? || $1 || ?)::text[])
DECLARE mycursor CURSOR FOR SELECT new_order(9, 5, 1592, 1, 8, make_new_order_info(38400, 9, 1), make_new_order_info(57086, 9, 5), make_new_order_info(24416, 9, 10), make_new_order_info(47294, 9, 7), make_new_order_info(90868, 9, 9), make_new_order_info(97909, 9, 4), make_new_order_info(7662, 9, 8), make_new_order_info(65533, 9, 10), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0) )
DECLARE mycursor CURSOR FOR SELECT new_order(7, 1, 1846, 0, 14, make_new_order_info(95164, 7, 4), make_new_order_info(61118, 7, 9), make_new_order_info(28605, 7, 4), make_new_order_info(6895, 7, 2), make_new_order_info(45783, 7, 10), make_new_order_info(35560, 7, 10), make_new_order_info(81653, 7, 1), make_new_order_info(40944, 7, 6), make_new_order_info(22128, 7, 3), make_new_order_info(73124, 7, 4), make_new_order_info(55287, 7, 7), make_new_order_info(24056, 7, 10), make_new_order_info(57312, 6, 8), make_new_order_info(48060, 7, 8), make_new_order_info(0, 0, 0) )
DECLARE mycursor CURSOR FOR SELECT new_order(2, 3, 990, 0, 12, make_new_order_info(12128, 4, 8), make_new_order_info(85992, 2, 3), make_new_order_info(38656, 2, 8), make_new_order_info(79870, 2, 7), make_new_order_info(98304, 2, 10), make_new_order_info(73072, 2, 4), make_new_order_info(52978, 2, 9), make_new_order_info(32512, 2, 5), make_new_order_info(71163, 2, 4), make_new_order_info(12276, 2, 3), make_new_order_info(46974, 2, 6), make_new_order_info(81790, 2, 5), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0) )
DECLARE mycursor CURSOR FOR SELECT new_order(3, 4, 2006, 1, 14, make_new_order_info(24524, 3, 9), make_new_order_info(87525, 3, 9), make_new_order_info(81903, 3, 10), make_new_order_info(73016, 3, 2), make_new_order_info(7792, 3, 10), make_new_order_info(48000, 3, 8), make_new_order_info(89695, 3, 10), make_new_order_info(78710, 3, 5), make_new_order_info(97134, 3, 7), make_new_order_info(49072, 3, 6), make_new_order_info(89719, 3, 2), make_new_order_info(98144, 3, 1), make_new_order_info(65150, 3, 6), make_new_order_info(73711, 3, 5), make_new_order_info(0, 0, 0) )
DECLARE mycursor CURSOR FOR SELECT new_order(7, 1, 352, 1, 6, make_new_order_info(57280, 7, 9), make_new_order_info(39936, 7, 3), make_new_order_info(24576, 7, 8), make_new_order_info(80892, 7, 10), make_new_order_info(83189, 7, 4), make_new_order_info(32368, 7, 9), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0) )
DECLARE mycursor CURSOR FOR SELECT new_order(10, 7, 1023, 0, 10, make_new_order_info(15836, 10, 7), make_new_order_info(81399, 10, 4), make_new_order_info(64983, 10, 10), make_new_order_info(24550, 10, 6), make_new_order_info(20976, 4, 8), make_new_order_info(63863, 10, 2), make_new_order_info(80314, 10, 6), make_new_order_info(4080, 10, 10), make_new_order_info(40936, 10, 8), make_new_order_info(8118, 10, 2), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0) )
DECLARE mycursor CURSOR FOR SELECT new_order(5, 7, 40, 1, 8, make_new_order_info(81919, 5, 8), make_new_order_info(65400, 5, 4), make_new_order_info(13822, 5, 7), make_new_order_info(24576, 5, 10), make_new_order_info(71551, 5, 1), make_new_order_info(40560, 5, 3), make_new_order_info(65272, 5, 4), make_new_order_info(48188, 5, 10), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0) )
DECLARE mycursor CURSOR FOR SELECT new_order(9, 3, 2560, 1, 13, make_new_order_info(68840, 9, 4), make_new_order_info(89790, 9, 8), make_new_order_info(73728, 9, 3), make_new_order_info(40896, 9, 8), make_new_order_info(12000, 9, 5), make_new_order_info(52524, 9, 10), make_new_order_info(20413, 9, 4), make_new_order_info(57344, 9, 7), make_new_order_info(89598, 9, 2), make_new_order_info(24550, 9, 6), make_new_order_info(12800, 9, 9), make_new_order_info(73162, 9, 10), make_new_order_info(6756, 9, 4), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0) )
DECLARE mycursor CURSOR FOR SELECT new_order(10, 3, 1776, 0, 9, make_new_order_info(90032, 10, 6), make_new_order_info(8192, 10, 9), make_new_order_info(47104, 10, 4), make_new_order_info(97792, 10, 6), make_new_order_info(48380, 10, 9), make_new_order_info(50772, 10, 2), make_new_order_info(23022, 10, 8), make_new_order_info(79808, 7, 8), make_new_order_info(31456, 10, 8), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0) )
DECLARE mycursor CURSOR FOR SELECT new_order(7, 3, 2551, 0, 9, make_new_order_info(96238, 7, 8), make_new_order_info(45823, 7, 9), make_new_order_info(56198, 7, 4), make_new_order_info(94155, 5, 1), make_new_order_info(56224, 7, 2), make_new_order_info(3872, 7, 3), make_new_order_info(65370, 7, 10), make_new_order_info(11792, 7, 5), make_new_order_info(46825, 7, 9), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0) )
DECLARE mycursor CURSOR FOR SELECT new_order(9, 4, 415, 0, 11, make_new_order_info(56926, 9, 7), make_new_order_info(6092, 10, 10), make_new_order_info(32620, 9, 4), make_new_order_info(28647, 9, 10), make_new_order_info(65184, 9, 5), make_new_order_info(23232, 9, 7), make_new_order_info(89594, 9, 1), make_new_order_info(20222, 9, 3), make_new_order_info(49022, 9, 10), make_new_order_info(32352, 9, 5), make_new_order_info(79728, 9, 2), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0) )
DECLARE mycursor CURSOR FOR SELECT new_order(2, 3, 956, 1, 8, make_new_order_info(24576, 2, 6), make_new_order_info(15224, 2, 3), make_new_order_info(79784, 2, 1), make_new_order_info(32112, 2, 10), make_new_order_info(49980, 2, 9), make_new_order_info(81888, 2, 4), make_new_order_info(37526, 2, 3), make_new_order_info(57151, 2, 4), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0) )
DECLARE mycursor CURSOR FOR SELECT new_order(8, 2, 1536, 1, 12, make_new_order_info(49146, 8, 10), make_new_order_info(65248, 8, 5), make_new_order_info(72348, 8, 1), make_new_order_info(59231, 8, 10), make_new_order_info(72679, 8, 9), make_new_order_info(89824, 8, 9), make_new_order_info(18928, 8, 3), make_new_order_info(7680, 8, 4), make_new_order_info(6101, 8, 2), make_new_order_info(89764, 8, 4), make_new_order_info(97208, 8, 10), make_new_order_info(3420, 8, 8), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0) )
DECLARE mycursor CURSOR FOR SELECT new_order(5, 3, 2944, 1, 9, make_new_order_info(92960, 5, 6), make_new_order_info(71166, 5, 1), make_new_order_info(39888, 5, 4), make_new_order_info(63484, 5, 5), make_new_order_info(15074, 5, 10), make_new_order_info(81918, 5, 8), make_new_order_info(73696, 5, 9), make_new_order_info(11775, 5, 8), make_new_order_info(89968, 5, 9), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0), make_new_order_info(0, 0, 0) )
DECLARE mycursor CURSOR FOR SELECT new_order(7, 10, 1017, 1, 12, make_new_order_info(83968, 7, 2...;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...;
SELECT payment(8, 3, 0, 8, 3, 'CALLYBARABLE', 2287.110000);SELECT w_name, w_street_1, w_street_2, w_city, w_state, w_zip
FROM warehouse
WHERE w_id = $1;UPDATE warehouse
SET w_ytd = w_ytd + $1
WHERE w_id = $2;SELECT d_name, d_street_1, d_street_2, d_city, d_state, d_zip
FROM district
WHERE d_id = $1
  AN...;UPDATE district
SET d_ytd = d_ytd + $1
WHERE d_id = $2
  AND d_w_id = $3;SELECT c_id
FROM customer
WHERE c_w_id = $1
  AND c_d_id = $2
  AND c_last = $3
ORDER BY c_first ASC;
SELECT payment(7, 4, 0, 6, 1, 'ESEOUGHTOUGHT', 3180.460000);SELECT w_name, w_street_1, w_street_2, w_city, w_state, w_zip
FROM warehouse
WHERE w_id = $1;UPDATE warehouse
SET w_ytd = w_ytd + $1
WHERE w_id = $2;SELECT d_name, d_street_1, d_street_2, d_city, d_state, d_zip
FROM district
WHERE d_id = $1
  AN...;UPDATE district
SET d_ytd = d_ytd + $1
WHERE d_id = $2
  AND d_w_id = $3;SELECT c_id
FROM customer
WHERE c_w_id = $1
  AND c_d_id = $2
  AND c_last = $3
ORDER BY c_first ASC;SELECT c_first, c_middle, c_last, c_street_1, c_street_2, c_city,
       c_state, c_zip, c_phone...;UPDATE customer
SET c_balance = c_balance - $1,
    c_ytd_payment = c_ytd_payment + 1
WHERE c_id...;
SELECT payment(1, 10, 1982, 1, 10, '', 1534.610000);SELECT w_name, w_street_1, w_street_2, w_city, w_state, w_zip
FROM warehouse
WHERE w_id = $1;UPDATE warehouse
SET w_ytd = w_ytd + $1
WHERE w_id = $2;SELECT d_name, d_street_1, d_street_2, d_city, d_state, d_zip
FROM district
WHERE d_id = $1
  AN...;UPDATE district
SET d_ytd = d_ytd + $1
WHERE d_id = $2
  AND d_w_id = $3;SELECT c_first, c_middle, c_last, c_street_1, c_street_2, c_city,
       c_state, c_zip, c_phone...;
DECLARE mycursor CURSOR FOR SELECT new_order(2, 3, 71, 1, 10, make_new_order_info(89856, 2, 4), ...;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...;
DECLARE mycursor CURSOR FOR SELECT new_order(10, 8, 2223, 1, 15, make_new_order_info(14302, 10, ...;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...;
DECLARE mycursor CURSOR FOR SELECT new_order(9, 6, 1776, 1, 15, make_new_order_info(30711, 9, 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...;
SELECT payment(5, 6, 686, 5, 6, '', 3196.450000);SELECT w_name, w_street_1, w_street_2, w_city, w_state, w_zip
FROM warehouse
WHERE w_id = $1;UPDATE warehouse
SET w_ytd = w_ytd + $1
WHERE w_id = $2;SELECT d_name, d_street_1, d_street_2, d_city, d_state, d_zip
FROM district
WHERE d_id = $1
  AN...;UPDATE district
SET d_ytd = d_ytd + $1
WHERE d_id = $2
  AND d_w_id = $3;SELECT c_first, c_middle, c_last, c_street_1, c_street_2, c_city,
       c_state, c_zip, c_phone...;UPDATE customer
SET c_balance = c_balance - $1,
    c_ytd_payment = c_ytd_payment + 1
WHERE c_id...;INSERT INTO history (h_c_id, h_c_d_id, h_c_w_id, h_d_id, h_w_id,
		     h_date, h_amount, h_data...;
SELECT payment(7, 5, 0, 7, 5, 'EINGABLEBAR', 2012.920000);SELECT w_name, w_street_1, w_street_2, w_city, w_state, w_zip
FROM warehouse
WHERE w_id = $1;UPDATE warehouse
SET w_ytd = w_ytd + $1
WHERE w_id = $2;SELECT d_name, d_street_1, d_street_2, d_city, d_state, d_zip
FROM district
WHERE d_id = $1
  AN...;UPDATE district
SET d_ytd = d_ytd + $1
WHERE d_id = $2
  AND d_w_id = $3;SELECT c_id
FROM customer
WHERE c_w_id = $1
  AND c_d_id = $2
  AND c_last = $3
ORDER BY c_first ASC;SELECT c_first, c_middle, c_last, c_street_1, c_street_2, c_city,
       c_state, c_zip, c_phone...;UPDATE customer
SET c_balance = c_balance - $1,
    c_ytd_payment = c_ytd_payment + 1
WHERE c_id...;INSERT INTO history (h_c_id, h_c_d_id, h_c_w_id, h_d_id, h_w_id,
		     h_date, h_amount, h_data...;
SELECT delivery(2, 3);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;
SELECT payment(6, 2, 0, 6, 2, 'BAROUGHTOUGHT', 2532.660000);SELECT w_name, w_street_1, w_street_2, w_city, w_state, w_zip
FROM warehouse
WHERE w_id = $1;UPDATE warehouse
SET w_ytd = w_ytd + $1
WHERE w_id = $2;SELECT d_name, d_street_1, d_street_2, d_city, d_state, d_zip
FROM district
WHERE d_id = $1
  AN...;UPDATE district
SET d_ytd = d_ytd + $1
WHERE d_id = $2
  AND d_w_id = $3;SELECT c_id
FROM customer
WHERE c_w_id = $1
  AND c_d_id = $2
  AND c_last = $3
ORDER BY c_first ASC;
SELECT payment(1, 9, 924, 1, 9, '', 690.670000);SELECT w_name, w_street_1, w_street_2, w_city, w_state, w_zip
FROM warehouse
WHERE w_id = $1;UPDATE warehouse
SET w_ytd = w_ytd + $1
WHERE w_id = $2;SELECT d_name, d_street_1, d_street_2, d_city, d_state, d_zip
FROM district
WHERE d_id = $1
  AN...;UPDATE district
SET d_ytd = d_ytd + $1
WHERE d_id = $2
  AND d_w_id = $3;SELECT c_first, c_middle, c_last, c_street_1, c_street_2, c_city,
       c_state, c_zip, c_phone...;UPDATE customer
SET c_balance = c_balance - $1,
    c_ytd_payment = c_ytd_payment + 1,
    c_dat...;INSERT INTO history (h_c_id, h_c_d_id, h_c_w_id, h_d_id, h_w_id,
		     h_date, h_amount, h_data...;
DECLARE mycursor CURSOR FOR SELECT new_order(3, 2, 736, 1, 11, make_new_order_info(49102, 3, 2),...;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...;
DECLARE mycursor CURSOR FOR SELECT new_order(3, 6, 2034, 1, 14, make_new_order_info(88702, 3, 9)...;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...;
SELECT payment(8, 10, 902, 8, 10, '', 4936.950000);SELECT w_name, w_street_1, w_street_2, w_city, w_state, w_zip
FROM warehouse
WHERE w_id = $1;UPDATE warehouse
SET w_ytd = w_ytd + $1
WHERE w_id = $2;SELECT d_name, d_street_1, d_street_2, d_city, d_state, d_zip
FROM district
WHERE d_id = $1
  AN...;UPDATE district
SET d_ytd = d_ytd + $1
WHERE d_id = $2
  AND d_w_id = $3;SELECT c_first, c_middle, c_last, c_street_1, c_street_2, c_city,
       c_state, c_zip, c_phone...;UPDATE customer
SET c_balance = c_balance - $1,
    c_ytd_payment = c_ytd_payment + 1
WHERE c_id...;INSERT INTO history (h_c_id, h_c_d_id, h_c_w_id, h_d_id, h_w_id,
		     h_date, h_amount, h_data...;
DECLARE mycursor CURSOR FOR SELECT new_order(8, 6, 8, 1, 9, make_new_order_info(8020, 8, 5), mak...;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...;
SELECT payment(7, 1, 0, 7, 1, 'ABLEOUGHTESE', 4318.190000);SELECT w_name, w_street_1, w_street_2, w_city, w_state, w_zip
FROM warehouse
WHERE w_id = $1;UPDATE warehouse
SET w_ytd = w_ytd + $1
WHERE w_id = $2;SELECT d_name, d_street_1, d_street_2, d_city, d_state, d_zip
FROM district
WHERE d_id = $1
  AN...;UPDATE district
SET d_ytd = d_ytd + $1
WHERE d_id = $2
  AND d_w_id = $3;SELECT c_id
FROM customer
WHERE c_w_id = $1
  AND c_d_id = $2
  AND c_last = $3
ORDER BY c_first ASC;
SELECT payment(3, 5, 0, 3, 5, 'BARANTIPRI', 1983.660000);SELECT w_name, w_street_1, w_street_2, w_city, w_state, w_zip
FROM warehouse
WHERE w_id = $1;UPDATE warehouse
SET w_ytd = w_ytd + $1
WHERE w_id = $2;SELECT d_name, d_street_1, d_street_2, d_city, d_state, d_zip
FROM district
WHERE d_id = $1
  AN...;UPDATE district
SET d_ytd = d_ytd + $1
WHERE d_id = $2
  AND d_w_id = $3;SELECT c_id
FROM customer
WHERE c_w_id = $1
  AND c_d_id = $2
  AND c_last = $3
ORDER BY c_first ASC;
SELECT payment(7, 4, 0, 6, 1, 'ESEOUGHTOUGHT', 3180.460000);SELECT w_name, w_street_1, w_street_2, w_city, w_state, w_zip\
FROM warehouse\
WHERE w_id = $1;UPDATE warehouse\
SET w_ytd = w_ytd + $1\
WHERE w_id = $2;SELECT d_name, d_street_1, d_street_2, d_city, d_state, d_zip\
FROM district\
WHERE d_id = $1\
  AN...;UPDATE district\
SET d_ytd = d_ytd + $1\
WHERE d_id = $2\
  AND d_w_id = $3;SELECT c_id\
FROM customer\
WHERE c_w_id = $1\
  AND c_d_id = $2\
  AND c_last = $3\
ORDER BY c_first ASC;\
SELECT payment(7, 4, 0, 6, 1, 'ESEOUGHTOUGHT', 3180.460000);SELECT w_name, w_street_1, w_street_2, w_city, w_state, w_zip\
FROM warehouse\
WHERE w_id = $1;UPDATE warehouse\
SET w_ytd = w_ytd + $1\
WHERE w_id = $2;SELECT d_name, d_street_1, d_street_2, d_city, d_state, d_zip\
FROM district\
WHERE d_id = $1\
  AN...;UPDATE district\
SET d_ytd = d_ytd + $1\
WHERE d_id = $2\
  AND d_w_id = $3;SELECT c_id\
FROM customer\
WHERE c_w_id = $1\
  AND c_d_id = $2\
  AND c_last = $3\
ORDER BY c_first ASC;SELECT c_first, c_middle, c_last, c_street_1, c_street_2, c_city,\
       c_state, c_zip, c_phone...;UPDATE customer\
SET c_balance = c_balance - $1,\
    c_ytd_payment = c_ytd_payment + 1\
WHERE c_id...;
SELECT payment(8, 3, 0, 8, 3, 'CALLYBARABLE', 2287.110000);SELECT w_name, w_street_1, w_street_2, w_city, w_state, w_zip\
FROM warehouse\
WHERE w_id = $1;UPDATE warehouse\
SET w_ytd = w_ytd + $1\
WHERE w_id = $2;SELECT d_name, d_street_1, d_street_2, d_city, d_state, d_zip\
FROM district\
WHERE d_id = $1\
  AN...;UPDATE district\
SET d_ytd = d_ytd + $1\
WHERE d_id = $2\
  AND d_w_id = $3;SELECT c_id\
FROM customer\
WHERE c_w_id = $1\
  AND c_d_id = $2\
  AND c_last = $3\
ORDER BY c_first ASC;
SELECT payment(8, 3, 0, 8, 3, 'CALLYBARABLE', 2287.110000);SELECT w_name, w_street_1, w_street_2, w_city, w_state, w_zip\
FROM warehouse\
WHERE w_id = $1;UPDATE warehouse\
SET w_ytd = w_ytd + $1\
WHERE w_id = $2;SELECT d_name, d_street_1, d_street_2, d_city, d_state, d_zip\
FROM district\
WHERE d_id = $1\
  AN...;UPDATE district\
SET d_ytd = d_ytd + $1\
WHERE d_id = $2\
  AND d_w_id = $3;SELECT c_id\
FROM customer\
WHERE c_w_id = $1\
  AND c_d_id = $2\
  AND c_last = $3\
ORDER BY c_first ASC;\

This table shows the overview of entire this report.

Each line in this table shows statistic overview of a database.

* Small values may be shown as zero by round off.

This graph shows the trend of number of transactions per seconds.

Axes

Legend

This graph shows the database size over time.

Axes

Legend

This table shows the number of canceled queries for every database due to conflict with some activities on master during this report period. This table have values only when the instance is a standby server.

This table shows the overview of Write Ahead Logs.

This graph shows the trend of the rate of WAL output. One of the lines shows amount of WAL written during every snapshot interval and the another shows the amount divided by the snapshot interval.

Axes

Legend

This table shows the average percentage of time the backends spend in different state throughout this report period.

The data in this table is collected by the interval specified with the configuration parameter pg_statsinfo.sampling_interval (5 seconds by default).

This graph shows the percentage of time the backends spend in different states over time.

Axes

Legend

This graph shows average for every snapshot interval of the percentage of states collected by the interval specified with the configuration parameter pg_statsinfo.sampling_interval (5 seconds by default).

This graph shows the trend of percentage of time the CPU spends in different states.

Legend

Legend

This graph shows average percentage for every snapshot interval.

This graph shows system load averages over time.

Axes

Legend

This graph shows itemized memory usage over time. The values are read from /proc/meminfo.

Axes

Legend

Each row in this table shows the overview of a table space.

* Small values may be shown as zero by round off.

This section consists of one overview table and two graphs.

Each row in the Disk Usage per Table shows the disk usage overview of one table.

* Small values may be shown as zero by round off.

The Table Size Chart shows the table size ratios in different tables.

The Disk Read Chart shows the ratios of the number of blocks read from a table and its belongings in different tables.

This section consists of one overview table and three trend graphs. The graphs are hidden at first and comes out by clicking the corresponding links.

The I/O Usage Table shows the overview of I/O usage throughout the report period. Each row represents one device.

* Small values may be shown as zero by round off.

The I/O Rate Graph shows the read/write rate over snapshots. The values are the average in a snapshot.

Axes

Legend

The I/O Peak Rate Graph shows the read/write peak rate over snapshots. The values are the maximum within a snapshot. Available on pg_statsinfo 3.1 or later.

Axes

Legend

The I/O Time Graph shows the time spent by reading from or writing to the device over snapshots. The values are percentage of I/O time against real time and are the sums over all processes simultaneously running so they may go above 100 % for certain load.

Axes

Legend

Each row in this table shows the update activity overview of a table. The rows are shown in descending order of the "Total" field at first.

Each row in this table shows the scan activity overview of a table. The rows are shown in descending order of the "Seq scan" field at first.

Each rows in this table shows some figures related to filling factor of one table at the time of the latest snapshot in reportin period. The rows are shown in descending order of the "Tuples" field at first.

Each row in this table shows the fragmentation (correlation between physical and logical ordering) of one column. The correlation factor closer to zero means the stronger fragmentation of column. The rows are shown in descending order of the "Correlation" field at first.

Each row in this table shows usage statistics of one function. The rows are shown in descending order of the "Time/call" field at first.

Each row in this table shows execution statistics of a query. Multiple execitions by diffent users or on different databases of a statement have their own rows. This feature requires pg_stat_statsments to be installed.

Each row in this table shows execution statistics itemized by execution plan. Clicking Query ID opens the itemized execution plan statistics. This feature requires pg_stat_statements and pg_store_plans to be installed.

This table shows the list of long lasting transactions. Every snapshot holds certain number of longest transactions at the time of creation and the entries of the same transaction over snapshots are merged on generating report then the merged transactions are shown in this table, in descending order of their duration at first. Transactions are identified by the set of "PID", "Client address" and "Began at". pg_statsinfo.long_transaction_max specifies how many long transactions every snapshot records.

This table shows lock conflicts observed druing this report period.

This table shows the summary of checkpoint activity.

This table shows the overview of autovacuum activities. Each row corresponds to one table on which logged that autovacuums are done. This shows only tables that autovacuum has been done at least once in this report period.

This feature reuiqres autovacuum logs so set log_autovacuum_min_duration to 0 to make this feature fully available. Less logging reduces the completeness this table.

This table shows the I/O statistics for autovacuums. Each row corresponds to one table reported in autovacuum logs. This feature is available on PostgreSQL 9.2 or later.

This table shows the overview of autoanalyze activities. Each row corresponds to one table reported in autoanalyze logs.

This feature requires autovanalyze logs so set log_autovacuum_min_duration to 0 to make this feature fully available. Less logging reduces the completeness this table.

This graph shows how many rows are inserted, updated or deleted since last analyze for each table in percentage to all tuples including dead tuples, which is related to the threshold of autoanalyze.

Axes

Legend

To avoid losing readability of the graph, only ten largest tables in number of tuples are shown in this graph. The values are calculated as pg_stat_get_mod_since_analyze(table) / (reltuples of the table).

This table lists the cancellation events of autovacuums and autoanalyzes occurred during this report period.

This table shows the overview of replication activities at the end of reporting period. One column is shown for one replication session.

This graph shows how far the standby servers are behind this server.

Axes

Legend

Each rows in this table shows the overview of a database table.

* Small values may be shown as zero by round off.

Each rows in this table shows the overview of a index.

* Small values may be shown as zero by round off.

This table lists all run-time parameters.

This table lists the alerts issued during this report period.

Changing alert settings.

Update the alert setting table of the repository database to change alert settings.
Please see the pg_statsinfo manual for details.

e.g. Change the threshold of Rollback per seconds to "3000" for instance 1.

UPDATE statsrepo.alert SET rollback_tps = 3000 WHERE instid = 1;

This table shows the summary for profiling using system tap.

The log viewer shows the server log lines sotred in repository. This allows you to narrow down or search logs for specific events easily on GUI.

Search Options

This section determines how to restrict log lines fetched from repository. The fetched lines are shown in the Log Table below.

The Log Table

Each row in this table shows one log line. The first row in this table is quick filter fields, which will cleared by the Filter Reset button. You can select columns to show by the "Column" button. The following is the list of all available columns.


End of report