Postgres profile report (StartID: 361, EndID: 384)

pg_profile version 0.3.6

Server name: local

Report interval: 2026-07-14 04:00:02+02 - 2026-07-15 03:00:02+02

Warning!Report includes 23 sample(s) with setting pg_stat_statements.track = all.Value of %Total columns may be incorrect.

Report sections

Server statistics

Database statistics

DatabaseTransactionsBlock statisticsTuplesTemp filesSizeGrowth
CommitsRollbacksDeadlocksHit(%)ReadHitRetFetInsUpdDelSizeFiles
etendo607461096.0899490524402513108529188238632041381529261191335153123 MB-1376 kB
postgres1186799.8113137030751985005365335201286617726463 kB
Total726131096.1899621825105588110514193242285391383541269851352873129 MB-1376 kB

Statement statistics by database

DatabaseCallsTime (s)Fetched (blk)Dirtied (blk)Temp (blk)Local (blk)Statements
ExecReadWriteTrgSharedLocalSharedLocalReadWriteReadWrite
etendo358126414.737.35363106253753638879
postgres561910.70127633233349
template163508.1647848234278
Total370095433.587.35364861063758309506

Cluster statistics

MetricValue
Scheduled checkpoints275
Requested checkpoints1
Checkpoint write time (s)2430.66
Checkpoint sync time (s)0.62
Checkpoints buffers written162230
Background buffers written2925
Backend buffers written514188
Backend fsync count
Bgwriter interrupts (too many buffers)1
Number of buffers allocated996054
WAL generated3363 MB
WAL segments archived
WAL segments archive failed

Tablespace statistics

TablespacePathSizeGrowth
pg_default3143 MB-1424 kB
pg_global542 kB

SQL query statistics

Top SQL by execution time

Query IDDatabaseExec (s)%TotalRowsExecution times (ms)Executions
MeanMinMaxStdErr

95572914af

[cd9c0fd2]

etendo191.6544.20903191650.426191650.426191650.4261

9fab4770a7

[948be82f]

etendo80.2618.5180256.31980256.31980256.3191

e72111fc0b

[165cfe9e]

etendo23.845.50231036.410920.9831771.302180.34723

8b95a6d8be

[5bf034e8]

etendo23.835.501036.219920.8521771.115180.34823

63598c4dc1

[32078409]

etendo9.502.19243.66442.341832.028192.27139

82e3327dfb

[11efae27]

etendo6.331.4639216.15515.08045.9252.249392

078231c619

[fb4a8a01]

etendo6.171.4237516.44715.26455.6142.690375

fb78e2110c

[3f26be12]

etendo5.731.3235116.33715.29726.8351.776351

5205357fc7

[9829805d]

etendo5.531.2754326120.15023.618540.793112.11046

7bbf8dc24b

[ec3901fa]

etendo5.091.1731671110.64825.430313.90984.87946

ab75f0d002

[ea3ffc6b]

etendo4.941.145315993.3802.56914.0680.6921461

ffbe6ea696

[6ff0b59f]

etendo3.630.8418819.33117.54643.6102.911188

579c04f6a4

[22217272]

etendo3.570.8251244155.367114.380485.23981.34823

780c1676b8

[58bd0761]

etendo3.510.8113892.5281.29814.0891.0601389

a5e40a232d

[6d193752]

etendo3.360.7729647145.941133.388192.30012.11523

6e1c6d0949

[dccac99b]

template12.690.6226410.1950.10310.5930.885264

09dd3ceb9c

[ac17e023]

postgres2.650.6126410.0540.11510.9081.517264

8ce5c7c2fd

[a8855ea7]

template12.580.5925210.2200.11410.4760.641252

94981812f5

[d6e97f55]

postgres2.560.5950410.1390.11111.0601.273252

189e1713fc

[6bb4764a]

etendo2.470.5714517.02516.00327.3931.421145

Top SQL by executions

Query IDDatabaseExecutions%TotalRowsMean(ms)Min(ms)Max(ms)StdErr(ms)Elapsed(s)

09a13047d0

[e0488e43]

etendo9752726.35975270.0040.00212.3660.0400.4

47521f7ce5

[4ef2b412]

etendo354069.57354060.0040.00218.5680.1010.2

6c3324a757

[30e34f7a]

etendo226996.130.0040.0030.0530.0010.1

b5ae6f04c1

[bb90fd8a]

etendo188805.10188800.0150.0080.3610.0080.3

7531c1665f

[8aff38a8]

etendo117383.1791140.0020.0020.1910.0020.0

fe26995756

[a0abb6c3]

etendo84482.2884480.0130.0080.0640.0040.1

0773a44802

[141ca58a]

etendo59141.6059140.0040.0022.0070.0260.0

4fcdb10468

[6f9b1a85]

etendo55171.490.0020.0000.0620.0020.0

ae36bf3fd6

[2049516b]

etendo55071.490.0010.0000.0410.0010.0

c33f21cc29

[a38abef0]

etendo52971.4352970.0040.0020.0820.0030.0

23c054b2cf

[cdfab523]

etendo42241.14211200.0170.0110.0740.0050.1

52730573e2

[708934a0]

etendo42241.1442240.0090.0060.0760.0030.0

e30a458893

[f8bb1c8e]

etendo42241.1442240.0070.0040.0410.0020.0

74c239e6b0

[31bc0d20]

etendo36050.9735960.0060.0020.0940.0080.0

0395cd7d8f

[90d234b8]

template126400.710.0110.0090.2980.0060.0

18dfa40a69

[13286d05]

etendo24040.6524040.0030.0010.0420.0010.0

adfb201448

[f4beae22]

etendo23500.630.0030.0020.0390.0020.0

abcc32ea62

[d553b28a]

etendo22800.6222800.1010.0570.2670.0260.2

1794fad412

[2dd25169]

etendo22800.6222800.0260.0150.4110.0130.1

1b91850b4b

[2ee0a16b]

etendo18240.4918240.5120.2982.1530.1910.9

Top SQL by shared blocks fetched

Query IDDatabaseblks fetched%TotalHits(%)Elapsed(s)RowsExecutions

9fab4770a7

[948be82f]

etendo659988818.0988.7680.31

e72111fc0b

[165cfe9e]

etendo465319612.7599.9923.82323

8b95a6d8be

[5bf034e8]

etendo465305812.7599.9923.823

ab75f0d002

[ea3ffc6b]

etendo26493317.26100.004.95315991461

53f041022a

[1c089a92]

etendo23411946.42100.002.1258523

579c04f6a4

[22217272]

etendo16298954.47100.003.65124423

82e3327dfb

[11efae27]

etendo15040754.1299.746.3392392

078231c619

[fb4a8a01]

etendo14479043.9799.736.2375375

fb78e2110c

[3f26be12]

etendo13557673.7299.995.7351351

63598c4dc1

[32078409]

etendo11503873.1599.949.539

ffbe6ea696

[6ff0b59f]

etendo8005952.1999.883.6188188

a5e40a232d

[6d193752]

etendo7955482.18100.003.42964723

189e1713fc

[6bb4764a]

etendo5779541.5899.972.5145145

5205357fc7

[9829805d]

etendo3396040.9399.995.55432646

95572914af

[cd9c0fd2]

etendo3191080.8732.58191.79031

efb10843fa

[3c3a10c1]

etendo3139860.86100.000.426422

7bbf8dc24b

[ec3901fa]

etendo2950130.8199.985.13167146

823682fddf

[505cb7c7]

etendo2316090.6399.990.9499

09a13047d0

[e0488e43]

etendo1950540.53100.000.49752797527

5b7953819f

[a0d7ccb9]

etendo1912960.5299.980.2588196

Top SQL by shared blocks read

Query IDDatabaseReads%TotalHits(%)Elapsed(s)RowsExecutions

9fab4770a7

[948be82f]

etendo74193373.5088.7680.31

95572914af

[cd9c0fd2]

etendo21514621.3132.58191.79031

819231741d

[ee6bcd7b]

etendo89320.880.260.81161851

8653e9fcc7

[63a051b4]

etendo42410.420.210.41251521

078231c619

[fb4a8a01]

etendo39770.3999.736.2375375

82e3327dfb

[11efae27]

etendo39000.3999.746.3392392

565618e880

[e026ac6e]

etendo38970.3958.610.122

8b427a054d

[b523722f]

etendo38750.3880.580.155

cb65787e2e

[34618be5]

etendo32750.320.300.4868101

5d2713997e

[9874a2f8]

etendo12140.120.0369301

0c247acdf0

[948be82f]

template110560.1097.402.11

2e0b729b87

[948be82f]

postgres10560.1097.412.11

ffbe6ea696

[6ff0b59f]

etendo9900.1099.883.6188188

dd164d7c5b

[51d43ddf]

etendo8370.080.710.0256401

421633828b

[5015950f]

etendo7050.070.140.0245131

fb03d4bd20

[14a0b57d]

etendo7040.070.420.0245211

63598c4dc1

[32078409]

etendo6390.0699.949.539

e72111fc0b

[165cfe9e]

etendo6270.0699.9923.82323

8b95a6d8be

[5bf034e8]

etendo6270.0699.9923.823

efbdf5f84a

[c2b69e40]

etendo5960.0697.230.1201201

Top SQL by shared blocks dirtied

Query IDDatabaseDirtied%TotalHits(%)Elapsed(s)RowsExecutions

9fab4770a7

[948be82f]

etendo31926684.9588.7680.31

e72111fc0b

[165cfe9e]

etendo154354.1199.9923.82323

8b95a6d8be

[5bf034e8]

etendo154354.1199.9923.823

5205357fc7

[9829805d]

etendo41771.1199.995.55432646

7bbf8dc24b

[ec3901fa]

etendo30870.8299.985.13167146

860971ea70

[a2b1d8b5]

etendo17780.4799.681.02323

bbb5ea7d4a

[dbbb08c5]

etendo16250.4399.530.1285285

bfac77ea29

[d422fd3a]

etendo11150.3099.941.046

ffbe6ea696

[6ff0b59f]

etendo8830.2399.883.6188188

9b785e47a4

[2a7c06f1]

etendo5770.1597.920.1201201

efbdf5f84a

[c2b69e40]

etendo5770.1597.230.1201201

627abb38ab

[b8b908b]

etendo5450.1599.880.3359022

ab52f02a40

[7de5e657]

etendo5340.14100.000.14724020

9a7a52ef63

[bdc71c7e]

etendo4620.1299.110.1497497

3cf9d838f3

[7e502be6]

etendo4420.1299.900.844

fae50d9c18

[b746d230]

etendo3930.1099.920.22316

5695e7218b

[2c3218e3]

etendo3730.1099.990.5516642

74c239e6b0

[31bc0d20]

etendo3370.09100.000.035963605

53f041022a

[1c089a92]

etendo2770.07100.002.1258523

0c247acdf0

[948be82f]

template12340.0697.402.11

Top SQL by shared blocks written

Query IDDatabaseWritten%Total%BackendWHits(%)Elapsed(s)RowsExecutions

9fab4770a7

[948be82f]

etendo17516325.7834.0788.7680.31

0c247acdf0

[948be82f]

template1550.010.0197.402.11

2e0b729b87

[948be82f]

postgres550.010.0197.412.11

Top SQL by temp usage

No data in this section

Complete list of SQL texts

QueryIDQuery Text
627abb38abINSERT INTO sample_stat_tables ( server_id, sample_id, datid, relid, tablespaceid, 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, n_mod_since_analyze, n_ins_since_vacuum, last_vacuum, last_autovacuum, last_analyze, last_autoanalyze, vacuum_count, autovacuum_count, analyze_count, autoanalyze_count, heap_blks_read, heap_blks_hit, idx_blks_read, idx_blks_hit, toast_blks_read, toast_blks_hit, tidx_blks_read, tidx_blks_hit, relsize, relsize_diff, relpages_bytes, relpages_bytes_diff ) SELECT cur.server_id AS server_id, cur.sample_id AS sample_id, cur.datid AS datid, cur.relid AS relid, cur.tablespaceid AS tablespaceid, cur.seq_scan - COALESCE(lst.seq_scan,$4) AS seq_scan, cur.seq_tup_read - COALESCE(lst.seq_tup_read,$5) AS seq_tup_read, cur.idx_scan - COALESCE(lst.idx_scan,$6) AS idx_scan, cur.idx_tup_fetch - COALESCE(lst.idx_tup_fetch,$7) AS idx_tup_fetch, cur.n_tup_ins - COALESCE(lst.n_tup_ins,$8) AS n_tup_ins, cur.n_tup_upd - COALESCE(lst.n_tup_upd,$9) AS n_tup_upd, cur.n_tup_del - COALESCE(lst.n_tup_del,$10) AS n_tup_del, cur.n_tup_hot_upd - COALESCE(lst.n_tup_hot_upd,$11) AS n_tup_hot_upd, cur.n_live_tup AS n_live_tup, cur.n_dead_tup AS n_dead_tup, cur.n_mod_since_analyze AS n_mod_since_analyze, cur.n_ins_since_vacuum AS n_ins_since_vacuum, cur.last_vacuum AS last_vacuum, cur.last_autovacuum AS last_autovacuum, cur.last_analyze AS last_analyze, cur.last_autoanalyze AS last_autoanalyze, cur.vacuum_count - COALESCE(lst.vacuum_count,$12) AS vacuum_count, cur.autovacuum_count - COALESCE(lst.autovacuum_count,$13) AS autovacuum_count, cur.analyze_count - COALESCE(lst.analyze_count,$14) AS analyze_count, cur.autoanalyze_count - COALESCE(lst.autoanalyze_count,$15) AS autoanalyze_count, cur.heap_blks_read - COALESCE(lst.heap_blks_read,$16) AS heap_blks_read, cur.heap_blks_hit - COALESCE(lst.heap_blks_hit,$17) AS heap_blks_hit, cur.idx_blks_read - COALESCE(lst.idx_blks_read,$18) AS idx_blks_read, cur.idx_blks_hit - COALESCE(lst.idx_blks_hit,$19) AS idx_blks_hit, cur.toast_blks_read - COALESCE(lst.toast_blks_read,$20) AS toast_blks_read, cur.toast_blks_hit - COALESCE(lst.toast_blks_hit,$21) AS toast_blks_hit, cur.tidx_blks_read - COALESCE(lst.tidx_blks_read,$22) AS tidx_blks_read, cur.tidx_blks_hit - COALESCE(lst.tidx_blks_hit,$23) AS tidx_blks_hit, cur.relsize AS relsize, cur.relsize - COALESCE(lst.relsize,$24) AS relsize_diff, cur.relpages_bytes AS relpages_bytes, cur.relpages_bytes - COALESCE(lst.relpages_bytes,$25) AS relpages_bytes_diff FROM last_stat_tables cur JOIN last_stat_database dbcur USING (server_id, sample_id, datid) LEFT JOIN last_stat_database dblst ON (dblst.server_id, dblst.sample_id, dblst.datid, dblst.stats_reset) = (dbcur.server_id, dbcur.sample_id - $26, dbcur.datid, dbcur.stats_reset) LEFT OUTER JOIN last_stat_tables lst ON (lst.server_id, lst.sample_id, lst.datid, lst.relid) = (dblst.server_id, dblst.sample_id, dblst.datid, cur.relid) WHERE (cur.server_id, cur.sample_id, cur.in_sample) = (sserver_id, s_id, $27)
82e3327dfbSELECT coalesce(sum(mpl.movementqty * coalesce(m_get_cost(mpl.m_product_id, TO_DATE(p_date), $3, $4, $5, $6, $7, $8),$9)),$10) FROM M_ProductionLine mpl LEFT JOIN M_Productionplan mpp on mpp.m_productionplan_id = mpl.m_productionplan_id LEFT JOIN ma_wrphase mwrph on mwrph.ma_wrphase_id = mpp.ma_wrphase_id where mwrph.ma_workrequirement_id = p_workrequirement_id
18dfa40a69SELECT $1 FROM DUAL
0773a44802SELECT $4 FROM ONLY "profile"."sample_stat_database" x WHERE "server_id" OPERATOR(pg_catalog.=) $1 AND "sample_id" OPERATOR(pg_catalog.=) $2 AND "datid" OPERATOR(pg_catalog.=) $3 FOR KEY SHARE OF x
fb03d4bd20COPY public.m_production (m_production_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, name, description, movementdate, iscreated, posted, processed, processing, ad_orgtrx_id, c_project_id, c_campaign_id, c_activity_id, user1_id, user2_id, documentno, endtime, issotrx, starttime, validating, c_costcenter_id, a_asset_id) TO stdout
e72111fc0bSELECT profile.take_sample()
53f041022aUPDATE last_stat_tables ulst SET in_sample = $5 FROM ( SELECT cur.server_id AS server_id, cur.sample_id AS sample_id, cur.datid AS datid, cur.relid AS relid, tcur.relid AS toastrelid, -- Seq. scanned blocks rank row_number() OVER (ORDER BY (cur.seq_scan - COALESCE(lst.seq_scan,$6)) * cur.relsize + (tcur.seq_scan - COALESCE(tlst.seq_scan,$7)) * tcur.relsize DESC) scan_rank, row_number() OVER (ORDER BY cur.n_tup_ins + cur.n_tup_upd + cur.n_tup_del - COALESCE(lst.n_tup_ins + lst.n_tup_upd + lst.n_tup_del, $8) + COALESCE(tcur.n_tup_ins + tcur.n_tup_upd + tcur.n_tup_del, $9) - COALESCE(tlst.n_tup_ins + tlst.n_tup_upd + tlst.n_tup_del, $10) DESC) dml_rank, row_number() OVER (ORDER BY cur.n_tup_upd+cur.n_tup_del - COALESCE(lst.n_tup_upd + lst.n_tup_del, $11) + COALESCE(tcur.n_tup_upd + tcur.n_tup_del, $12) - COALESCE(tlst.n_tup_upd + tlst.n_tup_del, $13) DESC) vacuum_dml_rank, row_number() OVER (ORDER BY cur.n_dead_tup / NULLIF(cur.n_live_tup+cur.n_dead_tup, $14) DESC NULLS LAST) dead_pct_rank, row_number() OVER (ORDER BY cur.n_mod_since_analyze / NULLIF(cur.n_live_tup, $15) DESC NULLS LAST) mod_pct_rank, -- Read rank row_number() OVER (ORDER BY cur.heap_blks_read - COALESCE(lst.heap_blks_read,$16) + cur.idx_blks_read - COALESCE(lst.idx_blks_read,$17) + cur.toast_blks_read - COALESCE(lst.toast_blks_read,$18) + cur.tidx_blks_read - COALESCE(lst.tidx_blks_read,$19) DESC) read_rank, -- Page processing rank row_number() OVER (ORDER BY cur.heap_blks_read+cur.heap_blks_hit+cur.idx_blks_read+cur.idx_blks_hit+ cur.toast_blks_read+cur.toast_blks_hit+cur.tidx_blks_read+cur.tidx_blks_hit- COALESCE(lst.heap_blks_read+lst.heap_blks_hit+lst.idx_blks_read+lst.idx_blks_hit+ lst.toast_blks_read+lst.toast_blks_hit+lst.tidx_blks_read+lst.tidx_blks_hit, $20) DESC) gets_rank, -- Vacuum rank row_number() OVER (ORDER BY cur.vacuum_count - COALESCE(lst.vacuum_count, $21) + cur.autovacuum_count - COALESCE(lst.autovacuum_count, $22) DESC) vacuum_rank, row_number() OVER (ORDER BY cur.analyze_count - COALESCE(lst.analyze_count,$23) + cur.autoanalyze_count - COALESCE(lst.autoanalyze_count,$24) DESC) analyze_rank FROM -- main relations diff last_stat_tables cur JOIN last_stat_database dbcur USING (server_id, sample_id, datid) LEFT OUTER JOIN last_stat_database dblst ON (dblst.server_id, dblst.datid, dblst.sample_id, dblst.stats_reset) = (dbcur.server_id, dbcur.datid, dbcur.sample_id - $25, dbcur.stats_reset) LEFT OUTER JOIN last_stat_tables lst ON (lst.server_id, lst.sample_id, lst.datid, lst.relid) = (dblst.server_id, dblst.sample_id, dblst.datid, cur.relid) -- toast relations diff LEFT OUTER JOIN last_stat_tables tcur ON (tcur.server_id, tcur.sample_id, tcur.datid, tcur.relid) = (dbcur.server_id, dbcur.sample_id, dbcur.datid, cur.reltoastrelid) LEFT OUTER JOIN last_stat_tables tlst ON (tlst.server_id, tlst.sample_id, tlst.datid, tlst.relid) = (dblst.server_id, dblst.sample_id, dblst.datid, lst.reltoastrelid) WHERE (cur.server_id, cur.sample_id, cur.in_sample) = (sserver_id, s_id, $26) AND cur.relkind IN ($27,$28)) diff WHERE least( scan_rank, dml_rank, dead_pct_rank, mod_pct_rank, vacuum_dml_rank, read_rank, gets_rank, vacuum_rank, analyze_rank ) <= topn AND (ulst.server_id, ulst.sample_id, ulst.datid, ulst.in_sample) = (diff.server_id, diff.sample_id, diff.datid, $29) AND (ulst.relid = diff.relid OR ulst.relid = diff.toastrelid)
ae36bf3fd6COMMIT
579c04f6a4SELECT st.*,stio.idx_blks_read,stio.idx_blks_hit,CASE l.relation WHEN st.indexrelid THEN $1 ELSE pg_relation_size(st.indexrelid) END relsize,$2,pg_class.reltablespace as tablespaceid,(ix.indisunique OR con.conindid IS NOT NULL) AS indisunique,pg_class.relpages::bigint * current_setting($3)::bigint AS relpages_bytes,$4 AS relpages_bytes_diff FROM pg_catalog.pg_stat_all_indexes st JOIN pg_catalog.pg_statio_all_indexes stio USING (relid, indexrelid, schemaname, relname, indexrelname) JOIN pg_catalog.pg_index ix ON (ix.indexrelid = st.indexrelid) JOIN pg_catalog.pg_class ON (pg_class.oid = st.indexrelid) LEFT OUTER JOIN pg_catalog.pg_constraint con ON (con.conindid = ix.indexrelid AND con.contype in ($5,$6)) LEFT OUTER JOIN LATERAL (SELECT relation FROM pg_catalog.pg_locks WHERE (relation = st.indexrelid AND granted AND locktype = $7 AND mode=$8)) l ON (l.relation = st.indexrelid)
9b785e47a4INSERT INTO C_ORDERLINETAX ( C_OrderLineTax_ID, C_OrderLine_ID, C_Order_ID, C_Tax_ID, AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, TaxBaseAmt, TaxAmt, Line) VALUES ( GET_UUID(), p_orderline_id, p_order_id, p_tax_id, v_Client_ID, p_org_id, $20, TO_DATE(NOW()), p_user_id, TO_DATE(NOW()), p_user_id, v_TaxBaseAmount, ROUND(ROUND(v_TaxBaseAmount, p_StdPrecision) * v_Rate/$21, p_StdPrecision), v_LineNo)
5695e7218bINSERT INTO last_stat_user_functions( server_id, sample_id, datid, funcid, schemaname, funcname, funcargs, calls, total_time, self_time, trg_fn ) SELECT sserver_id, s_id, qres.datid, funcid, schemaname, funcname, funcargs, dbl.calls AS calls, dbl.total_time AS total_time, dbl.self_time AS self_time, dbl.trg_fn FROM dblink($18, t_query) AS dbl ( funcid oid, schemaname name, funcname name, funcargs text, calls bigint, total_time double precision, self_time double precision, trg_fn boolean )
1794fad412SELECT coalesce ((SELECT COALESCE(TO_CHAR(MAX(TT.Name)), TO_CHAR(T.Name)) FROM AD_Window_Trl TT WHERE TT.AD_Window_ID=T.AD_Window_ID AND TT.AD_LANGUAGE=L.AD_LANGUAGE), $1) AS COLUMN_IDENTIFIER FROM (SELECT AD_LANGUAGE FROM AD_LANGUAGE WHERE AD_LANGUAGE=$2) L, AD_Window T WHERE AD_Window_ID=$3
1b91850b4bSELECT (case when ad_table.po_window_id is null then '' else ad_column_identifier('AD_Window',TO_CHAR(ad_table.po_window_id),$1) end)|| (case when ad_table.po_window_id is null then '' else ' - ' end)|| ad_column_identifier('AD_Window',TO_CHAR(ad_table.ad_window_id),$2) FROM AD_TABLE WHERE AD_TABLE_ID = $3
6c3324a757select this_.AD_Sequence_Config_ID as AD_Seque1_112_0_, this_.AD_Client_ID as AD_Clien2_112_0_, this_.AD_Org_ID as AD_Org_I3_112_0_, this_.Isactive as Isactive4_112_0_, this_.Created as Created5_112_0_, this_.Createdby as Createdb6_112_0_, this_.Updated as Updated7_112_0_, this_.Updatedby as Updatedb8_112_0_, this_.Generator as Generato9_112_0_, this_.AD_Reference_ID as AD_Refe10_112_0_, this_.DB_Sequence_Name as DB_Sequ11_112_0_, this_.DB_Sequence_Initial as DB_Sequ12_112_0_, this_.DB_Sequence_Increment as DB_Sequ13_112_0_ from ad_sequence_config this_ where this_.AD_Reference_ID=$1 and this_.AD_Org_ID in ($2, $3, $4) and this_.AD_Client_ID in ($5, $6) and this_.Isactive=$7
74c239e6b0SELECT $4 FROM ONLY "profile"."tables_list" x WHERE "server_id" OPERATOR(pg_catalog.=) $1 AND "datid" OPERATOR(pg_catalog.=) $2 AND "relid" OPERATOR(pg_catalog.=) $3 FOR KEY SHARE OF x
63598c4dc1select workrequir0_.MA_Workrequirement_ID as MA_Workr1_572_0_, workrequir0_.AD_Client_ID as AD_Clien2_572_0_, workrequir0_.AD_Org_ID as AD_Org_I3_572_0_, (select workrequir0_.closed from dual) as formula23_0_, (select mi.movementdate from m_inoutline minl LEFT JOIN m_inout mi on minl.m_inout_id = mi.m_inout_id where mi.issotrx = $51 and minl.em_man_repairnumber = workrequir0_.documentno and minl.m_product_id = workrequir0_.em_man_product_id) as formula24_0_, (select mi.documentno from m_inoutline minl LEFT JOIN m_inout mi on minl.m_inout_id = mi.m_inout_id where mi.issotrx = $52 and minl.em_man_repairnumber = workrequir0_.documentno and minl.m_product_id = workrequir0_.em_man_product_id) as formula25_0_, (select mi.documentno from m_inout mi left join m_inoutline on mi.m_inout_id=m_inoutline.m_inout_id where m_inoutline.EM_Man_M_Workrequeriment_ID = workrequir0_.ma_workrequirement_id and mi.issotrx = $53 and mi.docstatus != $54) as formula26_0_, (select mi.dateacct from m_inout mi left join m_inoutline on mi.m_inout_id=m_inoutline.m_inout_id where m_inoutline.EM_Man_M_Workrequeriment_ID = workrequir0_.ma_workrequirement_id and mi.issotrx = $55 and mi.docstatus != $56) as formula27_0_ from MA_WorkRequirement workrequir0_ where workrequir0_.MA_Workrequirement_ID in ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40, $41, $42, $43, $44, $45, $46, $47, $48, $49, $50)
cb65787e2eCOPY public.ma_wrphase (ma_wrphase_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, ma_workrequirement_id, ma_process_id, quantity, donequantity, costcenteruse, preptime, closed, seqno, noqty, groupuse, ma_sequence_id, name, description, outsourced, startdate, enddate, estimatedtime, runtime, usedmaterial, em_man_modification_id, em_man_control_quality) TO stdout
efb10843faUPDATE last_stat_tables ulst SET in_sample = $5 FROM ( SELECT cur.server_id AS server_id, cur.sample_id AS sample_id, cur.datid AS datid, cur.relid AS relid, tcur.relid AS toastrelid, cur.relsize IS NOT NULL AS relsize_avail, cur.relpages_bytes IS NOT NULL AS relpages_avail, row_number() OVER (ORDER BY cur.relsize - COALESCE(lst.relsize, $6) + COALESCE(tcur.relsize,$7) - COALESCE(tlst.relsize, $8) DESC NULLS LAST) growth_rank, row_number() OVER (ORDER BY cur.relpages_bytes - COALESCE(lst.relpages_bytes, $9) + COALESCE(tcur.relpages_bytes,$10) - COALESCE(tlst.relpages_bytes, $11) DESC NULLS LAST) pagegrowth_rank FROM -- main relations diff last_stat_tables cur LEFT OUTER JOIN last_stat_tables lst ON (lst.server_id, lst.sample_id, lst.datid, lst.relid) = (cur.server_id, cur.sample_id - $12, cur.datid, cur.relid) -- toast relations diff LEFT OUTER JOIN last_stat_tables tcur ON (tcur.server_id, tcur.sample_id, tcur.datid, tcur.relid) = (cur.server_id, cur.sample_id, cur.datid, cur.reltoastrelid) LEFT OUTER JOIN last_stat_tables tlst ON (tlst.server_id, tlst.sample_id, tlst.datid, tlst.relid) = (lst.server_id, lst.sample_id, lst.datid, lst.reltoastrelid) WHERE cur.sample_id=s_id AND cur.server_id=sserver_id AND cur.relkind IN ($13,$14)) diff WHERE ((relsize_avail AND growth_rank <= topn) OR ((NOT relsize_avail) AND relpages_avail AND pagegrowth_rank <= topn)) AND (ulst.server_id, ulst.sample_id, ulst.datid, in_sample) = (diff.server_id, diff.sample_id, diff.datid, $15) AND (ulst.relid = diff.relid OR ulst.relid = diff.toastrelid)
fb78e2110cselect man_get_benefit_wk(new.ma_workrequirement_id)
47521f7ce5SELECT $4 FROM ONLY "profile"."last_stat_tablespaces" x WHERE "server_id" OPERATOR(pg_catalog.=) $1 AND "sample_id" OPERATOR(pg_catalog.=) $2 AND "tablespaceid" OPERATOR(pg_catalog.=) $3 FOR KEY SHARE OF x
421633828bCOPY public.ma_weemployee (ma_weemployee_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, m_production_id, c_bpartner_id) TO stdout
823682fddfSELECT distinct ma_workrequirement.ma_workrequirement_id, m_product.m_product_id AS lisonId, m_product.value AS lison, m_product.NAME AS lisonName, m_product_category.NAME AS categoryname, m_attributevalue.value AS lisonNo, COALESCE(modWk.documentno, $1) AS nameMod, ma_process.NAME AS procName, ma_process.ma_process_id AS procId, ma_wrphase.ma_wrphase_id AS procWrPhaseId, COALESCE(modWk.man_product_modifications_id, $2) AS idMod, COALESCE( (SELECT String_agg(ad_user.NAME, $3) FROM m_productionplan LEFT JOIN ad_user ON m_productionplan.createdby = ad_user.ad_user_id WHERE m_productionplan.ma_wrphase_id = ma_wrphase.ma_wrphase_id), $4) AS users, COALESCE(modProc.documentno, $5) AS nameModProc, COALESCE(modProc.man_product_modifications_id, $6) AS idModProc, ma_wrphase.em_man_control_quality AS controlQuality, string_agg(COALESCE(M_ProductionPlan.M_ProductionPlan_ID, $7),$8) AS idProductionPlan, COALESCE(M_ProductionPlan.rejectedquantity, $9) AS qtyRealizada, ma_process.em_man_invoice_method as invoicemethod, coalesce(ma_process.em_man_qtyprocess,$10) as qtyprocess, coalesce(ma_workrequirement.em_man_description,$11) as description, CASE WHEN man_modification_processes.description = $12 then $13 ELSE COALESCE(man_modification_processes.description, $14) end AS descriptionModWk, CASE WHEN (select count(*) from man_wr_times where man_wr_times.ma_workrequirement_id = ma_workrequirement.ma_workrequirement_id and time_end is not null) > $15 then $16 ELSE $17 end AS haveTimeWk FROM ma_workrequirement LEFT JOIN m_product ON m_product.m_product_id = ma_workrequirement.em_man_product_id LEFT JOIN m_product_category ON m_product.m_product_category_id = m_product_category.m_product_category_id LEFT JOIN m_attributevalue ON m_attributevalue.m_attributevalue_id = ma_workrequirement.em_man_attributevalue_id LEFT JOIN man_product_modifications modWk ON modWk.man_product_modifications_id = ma_workrequirement.em_man_product_modif_id LEFT JOIN ma_wrphase ON ma_workrequirement.ma_workrequirement_id = ma_wrphase.ma_workrequirement_id LEFT JOIN M_ProductionPlan ON M_ProductionPlan.ma_wrphase_id = ma_wrphase.ma_wrphase_id LEFT JOIN ma_process ON ma_process.ma_process_id = ma_wrphase.ma_process_id LEFT JOIN man_product_modifications modProc ON ma_wrphase.em_man_modification_id = modProc.man_product_modifications_id left join man_modification_processes ON man_modification_processes.ma_process_id = ma_process.ma_process_id and man_modification_processes.man_product_modifications_id = modProc.man_product_modifications_id where ma_workrequirement.documentno = $18group by ma_workrequirement.ma_workrequirement_id, m_product.m_product_id , m_product.value, m_product.NAME, m_product_category.NAME , m_attributevalue.value , COALESCE(modWk.documentno, '') , ma_process.NAME, ma_process.ma_process_id, ma_wrphase.ma_wrphase_id, COALESCE(modWk.man_product_modifications_id, ''), COALESCE(modProc.documentno, ''), ma_wrphase.em_man_control_quality, COALESCE(modProc.man_product_modifications_id, ''), COALESCE(M_ProductionPlan.rejectedquantity, 0), ma_process.em_man_invoice_method, coalesce(ma_process.em_man_qtyprocess,1), man_modification_processes.description
dd164d7c5bCOPY public.man_wr_times (man_wr_times_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, ma_workrequirement_id, ad_user_id, time_start, time_end, time_pause, time_total_pause) TO stdout
780c1676b8select adsystem0_.AD_System_ID as AD_Syste1_115_0_, adsystem0_.AD_Client_ID as AD_Clien2_115_0_, adsystem0_.AD_Org_ID as AD_Org_I3_115_0_, adsystem0_.IsActive as IsActive4_115_0_, adsystem0_.Created as Created5_115_0_, adsystem0_.CreatedBy as CreatedB6_115_0_, adsystem0_.Updated as Updated7_115_0_, adsystem0_.UpdatedBy as UpdatedB8_115_0_, adsystem0_.Name as Name9_115_0_, adsystem0_.Info as Info10_115_0_, adsystem0_.Version as Version11_115_0_, adsystem0_.ReleaseNo as Release12_115_0_, adsystem0_.TAD_Recordrange as TAD_Rec13_115_0_, adsystem0_.TAD_Recordrange_Info as TAD_Rec14_115_0_, adsystem0_.TAD_Transactionalrange as TAD_Tra15_115_0_, adsystem0_.TAD_Theme as TAD_The16_115_0_, adsystem0_.Instance_Key as Instanc17_115_0_, adsystem0_.Activation_Key as Activat18_115_0_ from AD_System adsystem0_ where adsystem0_.AD_System_ID=$1
8b95a6d8beSELECT * FROM take_sample_subset(1,0)
8653e9fcc7COPY public.man_wr_voces (man_wr_voces_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, ma_workrequirement_id, m_product_id, man_product_modifications_id, qty_fact_voz) TO stdout
189e1713fcinsert into man_wr_voces (AD_Client_ID, AD_Org_ID, Isactive, Created, Createdby, Updated, Updatedby, MA_Workrequirement_ID, M_Product_ID, QTY_Fact_Voz, MAN_Wr_Voces_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11)
a5e40a232dSELECT st.relid,st.schemaname,st.relname,st.seq_scan,st.seq_tup_read,st.idx_scan,st.idx_tup_fetch,st.n_tup_ins,st.n_tup_upd,st.n_tup_del,st.n_tup_hot_upd,st.n_live_tup,st.n_dead_tup,st.n_mod_since_analyze,$1 as n_ins_since_vacuum,st.last_vacuum,st.last_autovacuum,st.last_analyze,st.last_autoanalyze,st.vacuum_count,st.autovacuum_count,st.analyze_count,st.autoanalyze_count,stio.heap_blks_read,stio.heap_blks_hit,stio.idx_blks_read,stio.idx_blks_hit,stio.toast_blks_read,stio.toast_blks_hit,stio.tidx_blks_read,stio.tidx_blks_hit,CASE locked.objid WHEN st.relid THEN $2 ELSE pg_catalog.pg_table_size(st.relid) - coalesce(pg_catalog.pg_relation_size(class.reltoastrelid),$3) END relsize,$4 relsize_diff,class.reltablespace AS tablespaceid,class.reltoastrelid,class.relkind,class.relpages::bigint * current_setting($5)::bigint AS relpages_bytes,$6 AS relpages_bytes_diff FROM pg_catalog.pg_stat_all_tables st JOIN pg_catalog.pg_statio_all_tables stio USING (relid, schemaname, relname) JOIN pg_catalog.pg_class class ON (st.relid = class.oid) LEFT OUTER JOIN LATERAL (WITH RECURSIVE deps (objid) AS (SELECT relation FROM pg_catalog.pg_locks WHERE granted AND locktype = $7 AND mode=$8 UNION SELECT refobjid FROM pg_catalog.pg_depend d JOIN deps dd ON (d.objid = dd.objid)) SELECT objid FROM deps) AS locked ON (st.relid = locked.objid)
4fcdb10468BEGIN
ffbe6ea696insert into C_OrderLine (AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, C_Order_ID, Line, C_BPartner_ID, C_BPartner_Location_ID, DateOrdered, M_Product_ID, M_Warehouse_ID, DirectShip, C_UOM_ID, QtyOrdered, QtyDelivered, QtyInvoiced, C_Currency_ID, PriceList, PriceActual, Discount, ChargeAmt, C_Tax_ID, IsDescription, PriceStd, CANCELPRICEAD, Iseditlinenetamt, Gross_Unit_Price, Line_Gross_Amount, grosspricestd, Manage_Reservation, Manage_Prereservation, Explode, Print_Description, Relate_Orderline, EM_Man_Inoutline_ID, EM_Man_Ma_Workrequirement_ID, C_OrderLine_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40)
52730573e2SELECT Name,GAAP,IsAccrual,CostingMethod,C_Currency_ID,HasAlias, IsTradeDiscountPosted, IsDiscountCorrectsTax, AD_Client_ID, '' as UseSuspenseBalancing, '' as SuspenseBalancing_Acct, '' as UseSuspenseError, '' as SuspenseError_Acct, '' as UseCurrencyBalancing, '' as CurrencyBalancing_Acct, '' as RetainedEarning_Acct, '' as IncomeSummary_Acct, '' as InterCompanyDueTo_Acct, '' as InterCompanyDueFrom_Acct, '' as C_AcctSchema_ID FROM C_AcctSchema WHERE C_AcctSchema_ID=$1
ab52f02a40DELETE FROM last_stat_indexes WHERE server_id=sserver_id AND sample_id != s_id
3cf9d838f3ANALYZE last_stat_indexes
7531c1665fSELECT LEVELNO FROM AD_ORG_TREE WHERE AD_ORG_ID = p_orgid AND AD_PARENT_ORG_ID = p_parentorgid AND AD_CLIENT_ID = p_clientid
0395cd7d8fSHOW server_version
db39064583SHOW server_version
0c247acdf0VACUUM (FULL, VERBOSE, ANALYZE)
2e0b729b87VACUUM (FULL, VERBOSE, ANALYZE)
9fab4770a7VACUUM (FULL, VERBOSE, ANALYZE)
5205357fc7INSERT INTO last_stat_indexes( server_id, sample_id, datid, relid, indexrelid, schemaname, relname, indexrelname, idx_scan, idx_tup_read, idx_tup_fetch, idx_blks_read, idx_blks_hit, relsize, relsize_diff, tablespaceid, indisunique, in_sample, relpages_bytes, relpages_bytes_diff ) SELECT sserver_id, s_id, qres.datid, relid, indexrelid, schemaname, relname, indexrelname, dbl.idx_scan AS idx_scan, dbl.idx_tup_read AS idx_tup_read, dbl.idx_tup_fetch AS idx_tup_fetch, dbl.idx_blks_read AS idx_blks_read, dbl.idx_blks_hit AS idx_blks_hit, dbl.relsize AS relsize, dbl.relsize_diff AS relsize_diff, CASE WHEN tablespaceid=$19 THEN qres.tablespaceid ELSE tablespaceid END tablespaceid, indisunique, $20, dbl.relpages_bytes, dbl.relpages_bytes_diff FROM dblink($21, t_query) AS dbl ( relid oid, indexrelid oid, schemaname name, relname name, indexrelname name, idx_scan bigint, idx_tup_read bigint, idx_tup_fetch bigint, idx_blks_read bigint, idx_blks_hit bigint, relsize bigint, relsize_diff bigint, tablespaceid oid, indisunique bool, relpages_bytes bigint, relpages_bytes_diff bigint )
5d2713997eCOPY public.ad_ref_data_loaded (ad_ref_data_loaded_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, ad_module_id, generic_id, specific_id, ad_table_id) TO stdout
fe26995756SELECT AD_CLIENT_ID,AD_ORG_ID, ISACTIVE, UPDATED,UPDATEDBY,ALIAS, COMBINATION, DESCRIPTION, ISFULLYQUALIFIED, C_ACCTSCHEMA_ID, ACCOUNT_ID, M_PRODUCT_ID, C_BPARTNER_ID,AD_ORGTRX_ID, C_LOCFROM_ID, C_LOCTO_ID, C_SALESREGION_ID, C_PROJECT_ID, C_CAMPAIGN_ID, C_ACTIVITY_ID, USER1_ID,USER2_ID, '' as UseSuspenseBalancing, '' as SuspenseBalancing_Acct, '' as UseSuspenseError, '' as SuspenseError_Acct, '' as UseCurrencyBalancing, '' as CurrencyBalancing_Acct, '' as RetainedEarning_Acct, '' as IncomeSummary_Acct, '' as InterCompanyDueTo_Acct, '' as InterCompanyDueFrom_Acct FROM C_ValidCombination WHERE C_ValidCombination_ID=$1
5b7953819f(SELECT t.C_Tax_ID, $23 AS billToC_Location_ID, $24 AS IsTaxExempt FROM (SELECT C_Tax_ID, C_Country_ID, C_Region_ID, To_Country_Id, To_Region_ID, ValidFrom, C_TaxCategory_ID, Parent_Tax_ID, C_BP_TaxCategory_ID, SoPoType, c_Tax.ad_org_id,c_Tax.ad_client_id,IsDefault, isCashVAT, isWithholdingTax, rate FROM c_Tax WHERE c_Tax.isActive = $25 UNION SELECT tz.C_Tax_ID, tz.From_Country_ID, tz.From_Region_ID, tz.To_Country_ID, tz.To_Region_ID, ValidFrom, C_TaxCategory_ID, Parent_Tax_Id, C_BP_TaxCategory_ID, ct.SoPoType, ct.ad_org_id,ct.ad_client_id,ct.IsDefault, ct.isCashVAT, ct.isWithholdingTax, ct.rate FROM c_Tax_Zone tz, c_Tax ct WHERE tz.C_Tax_ID = ct.C_Tax_ID AND ct.isActive = $26 AND tz.isActive = $27 ) t, C_Location lf, C_Location lt WHERE t.Parent_Tax_ID IS NULL AND t.C_TaxCategory_ID = v_TaxCategoryID AND lf.C_Location_ID = v_billFrom AND(t.C_Country_ID = lf.C_Country_ID OR(t.C_Country_ID IS NULL)) AND(t.C_Region_ID = lf.C_Region_ID OR(t.C_Region_ID IS NULL)) AND lt.C_Location_ID = v_shipTo AND(t.To_Country_ID = lt.C_Country_ID OR(t.To_Country_ID IS NULL)) AND(t.To_Region_ID = lt.C_Region_ID OR(t.To_Region_ID IS NULL)) AND t.ValidFrom <= p_shipDate AND ad_isorgincluded(p_org_id, t.ad_org_id,t.ad_client_id) <> $28 -- AND ((t.C_BP_TaxCategory_ID = v_BPTaxCategory) OR (v_BPTaxCategory IS NULL)) AND ((t.C_BP_TaxCategory_ID IS NOT NULL AND t.C_BP_TaxCategory_ID = v_BPTaxCategory) OR (t.C_BP_TaxCategory_ID IS NULL)) AND (SoPoType = $29 OR (SoPoType =(case when p_IsSOTrx=$30 then $31 else $32 end))) AND (t.isCashVAT = v_IsCashVAT OR (t.isCashVAT = $33 and (t.isWithholdingTax = $34 or t.rate=$35))) ORDER BY ad_isorgincluded(p_org_id, t.ad_org_id,t.ad_client_id),t.C_BP_TaxCategory_ID, t.IsDefault DESC,t.C_Country_ID, t.To_Country_ID, t.C_Region_ID, t.To_Region_ID, t.ValidFrom DESC )
860971ea70SELECT collect_pg_stat_statements_stats(server_properties, sserver_id, s_id, topn)
c33f21cc29SELECT $4 FROM ONLY "profile"."sample_stat_tablespaces" x WHERE "server_id" OPERATOR(pg_catalog.=) $1 AND "sample_id" OPERATOR(pg_catalog.=) $2 AND "tablespaceid" OPERATOR(pg_catalog.=) $3 FOR KEY SHARE OF x
8ce5c7c2fdSELECT checkpoints_timed,checkpoints_req FROM pg_stat_bgwriter
09dd3ceb9cSELECT sum(blks_read) AS blks_read,sum(blks_hit) AS blks_hit FROM pg_stat_database
8b427a054dselect man_get_benefit_wk(new.ma_workrequirement_id)
fae50d9c18DELETE FROM samples s USING servers n WHERE n.server_id = s.server_id AND s.server_id = sserver_id AND s.sample_time < now() - (COALESCE(n.max_sample_age,ret) || $7)::interval AND (s.server_id,s.sample_id) NOT IN (SELECT server_id,sample_id FROM bl_samples WHERE server_id = sserver_id)
b5ae6f04c1SELECT coalesce(t.MSGTEXT, m.MSGTEXT) AS MSGTEXT FROM AD_MESSAGE m left join AD_MESSAGE_TRL t on m.AD_MESSAGE_ID = t.AD_MESSAGE_ID and t.AD_LANGUAGE = $1 WHERE m.VALUE=$2
9a7a52ef63INSERT INTO ad_session_usage_audit (ad_session_usage_audit_id, ad_client_id, ad_org_id, createdby, updatedby, ad_session_id, object_id, ad_module_id, command, classname, object_type, process_time) VALUES (get_uuid(),$10,$11,$1,$2,$3,$4,$5,$6,$7,$8,to_number($9))
efbdf5f84aSELECT C_ORDERLINETAX_INSERT(new.AD_Org_ID, new.C_Order_ID, new.C_OrderLine_ID, new.UpdatedBy, new.C_Tax_ID, new.C_Tax_ID, v_newLineNetAmt, v_newLineAlternate, v_Prec)
95572914afCOPY public.ad_image (ad_image_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, name, imageurl, binarydata, width, height, mimetype) TO stdout
23c054b2cfSELECT C_AcctSchema_Element_ID,SeqNo,Name,ElementType,C_Element_ID,IsMandatory,IsBalanced, Org_ID,C_ElementValue_ID,C_BPartner_ID,M_Product_ID,C_Activity_ID,C_Location_ID, C_Campaign_ID,C_Project_ID,C_SalesRegion_ID FROM C_AcctSchema_Element WHERE C_AcctSchema_ID=$1 AND IsActive='Y' ORDER BY SeqNo
bfac77ea29ANALYZE last_stat_tables
abcc32ea62SELECT REPLACE(REPLACE(SQL_RECORD_IDENTIFIER, ':c_language', '''' || p_Language || ''''), ':c_ID', p_Record_ID) FROM AD_TABLE WHERE UPPER(TABLENAME)=UPPER(p_TableName)
94981812f5SELECT $1,sum(pg_stat_get_db_xact_commit(oid)) FROM pg_database UNION ALL SELECT $2,sum(pg_stat_get_db_xact_rollback(oid)) FROM pg_database
bbb5ea7d4aINSERT INTO AD_Process_Run (AD_Org_ID, AD_Client_ID, Isactive, Created, Createdby, Updated, UpdatedBy, AD_Process_Run_ID, Status, Start_Time, Runtime, Log, AD_Process_Request_ID, Scheduler_Instance) VALUES ($1, $2, 'Y', NOW(), $3, NOW(), $4, $5, $6, NOW(), $7, $8, $9, $10)
6e1c6d0949SELECT buffers_checkpoint,buffers_clean,buffers_backend,buffers_alloc FROM pg_stat_bgwriter
565618e880update man_wr_times set Updated=$1, Time_End=$2 where MAN_Wr_Times_ID=$3
09a13047d0SELECT $4 FROM ONLY "profile"."last_stat_database" x WHERE "server_id" OPERATOR(pg_catalog.=) $1 AND "sample_id" OPERATOR(pg_catalog.=) $2 AND "datid" OPERATOR(pg_catalog.=) $3 FOR KEY SHARE OF x
ab75f0d002select text.filename as filename, text.text as text, text.isused as isUsed, text.ad_module_id as moduleId, texttrl.ad_language as trlLang, texttrl.text as trlText, texttrl.istranslated as isTranslated, 1 as orderSeq from ad_textinterfaces text, ad_textinterfaces_trl texttrl where text.ad_textinterfaces_id = texttrl.ad_textinterfaces_id and text.filename = '/org/openbravo/erpCommon/security/Login.html' and text.isused = 'Y' and texttrl.ad_language = 'es_ES' UNION select text.filename as filename, text.text as text, text.isused as isUsed, text.ad_module_id as moduleId, texttrl.ad_language as trlLang, texttrl.text as trlText, texttrl.istranslated as isTranslated, 3 as orderSeq from ad_textinterfaces text, ad_textinterfaces_trl texttrl where text.ad_textinterfaces_id = texttrl.ad_textinterfaces_id and text.filename is null and text.isused = 'Y' and texttrl.ad_language = 'es_ES' UNION select text.filename as filename, text.text as text, text.isused as isUsed, text.ad_module_id as moduleId, 'es_ES' as trlLang, text.text as trlText, 'N' as isTranslated, 2 as orderSeq from ad_textinterfaces text where text.ad_textinterfaces_id NOT IN (SELECT t.ad_textinterfaces_id FROM ad_textInterfaces t, ad_textinterfaces_trl trl WHERE t.ad_textinterfaces_id = trl.ad_textinterfaces_id and trl.ad_language = 'es_ES') and (text.filename is null OR text.filename = '/org/openbravo/erpCommon/security/Login.html' ) and text.isused = 'Y' order by orderSeq
7bbf8dc24bINSERT INTO last_stat_tables( server_id, sample_id, datid, relid, schemaname, 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, n_mod_since_analyze, n_ins_since_vacuum, last_vacuum, last_autovacuum, last_analyze, last_autoanalyze, vacuum_count, autovacuum_count, analyze_count, autoanalyze_count, heap_blks_read, heap_blks_hit, idx_blks_read, idx_blks_hit, toast_blks_read, toast_blks_hit, tidx_blks_read, tidx_blks_hit, relsize, relsize_diff, tablespaceid, reltoastrelid, relkind, in_sample, relpages_bytes, relpages_bytes_diff ) SELECT sserver_id, s_id, qres.datid, dbl.relid, dbl.schemaname, dbl.relname, dbl.seq_scan AS seq_scan, dbl.seq_tup_read AS seq_tup_read, dbl.idx_scan AS idx_scan, dbl.idx_tup_fetch AS idx_tup_fetch, dbl.n_tup_ins AS n_tup_ins, dbl.n_tup_upd AS n_tup_upd, dbl.n_tup_del AS n_tup_del, dbl.n_tup_hot_upd AS n_tup_hot_upd, dbl.n_live_tup AS n_live_tup, dbl.n_dead_tup AS n_dead_tup, dbl.n_mod_since_analyze AS n_mod_since_analyze, dbl.n_ins_since_vacuum AS n_ins_since_vacuum, dbl.last_vacuum, dbl.last_autovacuum, dbl.last_analyze, dbl.last_autoanalyze, dbl.vacuum_count AS vacuum_count, dbl.autovacuum_count AS autovacuum_count, dbl.analyze_count AS analyze_count, dbl.autoanalyze_count AS autoanalyze_count, dbl.heap_blks_read AS heap_blks_read, dbl.heap_blks_hit AS heap_blks_hit, dbl.idx_blks_read AS idx_blks_read, dbl.idx_blks_hit AS idx_blks_hit, dbl.toast_blks_read AS toast_blks_read, dbl.toast_blks_hit AS toast_blks_hit, dbl.tidx_blks_read AS tidx_blks_read, dbl.tidx_blks_hit AS tidx_blks_hit, dbl.relsize AS relsize, dbl.relsize_diff AS relsize_diff, CASE WHEN dbl.tablespaceid=$19 THEN qres.tablespaceid ELSE dbl.tablespaceid END AS tablespaceid, dbl.reltoastrelid, dbl.relkind, $20, dbl.relpages_bytes, dbl.relpages_bytes_diff FROM dblink($21, t_query) AS dbl ( relid oid, schemaname name, relname name, seq_scan bigint, seq_tup_read bigint, idx_scan bigint, idx_tup_fetch bigint, n_tup_ins bigint, n_tup_upd bigint, n_tup_del bigint, n_tup_hot_upd bigint, n_live_tup bigint, n_dead_tup bigint, n_mod_since_analyze bigint, n_ins_since_vacuum bigint, last_vacuum timestamp with time zone, last_autovacuum timestamp with time zone, last_analyze timestamp with time zone, last_autoanalyze timestamp with time zone, vacuum_count bigint, autovacuum_count bigint, analyze_count bigint, autoanalyze_count bigint, heap_blks_read bigint, heap_blks_hit bigint, idx_blks_read bigint, idx_blks_hit bigint, toast_blks_read bigint, toast_blks_hit bigint, tidx_blks_read bigint, tidx_blks_hit bigint, relsize bigint, relsize_diff bigint, tablespaceid oid, reltoastrelid oid, relkind char, relpages_bytes bigint, relpages_bytes_diff bigint )
819231741dCOPY public.c_orderline (c_orderline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_order_id, line, c_bpartner_id, c_bpartner_location_id, dateordered, datepromised, datedelivered, dateinvoiced, description, m_product_id, m_warehouse_id, directship, c_uom_id, qtyordered, qtyreserved, qtydelivered, qtyinvoiced, m_shipper_id, c_currency_id, pricelist, priceactual, pricelimit, linenetamt, discount, freightamt, c_charge_id, chargeamt, c_tax_id, s_resourceassignment_id, ref_orderline_id, m_attributesetinstance_id, isdescription, quantityorder, m_product_uom_id, m_offer_id, pricestd, cancelpricead, c_order_discount_id, iseditlinenetamt, taxbaseamt, m_inoutline_id, c_return_reason_id, gross_unit_price, line_gross_amount, grosspricelist, c_costcenter_id, grosspricestd, a_asset_id, m_warehouse_rule_id, user1_id, quotationline_id, user2_id, create_reservation, c_project_id, so_res_status, manage_reservation, manage_prereservation, explode, bom_parent_id, print_description, overdue_return_days, relate_orderline, replacedorderline_id, c_aum, aumqty, returnline, em_man_inoutline_id, em_man_product_modifi_id, em_man_ma_workrequirement_id) TO stdout
adfb201448select this_.M_Product_Trl_ID as M_Produc1_478_0_, this_.M_Product_ID as M_Produc2_478_0_, this_.AD_Language as AD_Langu3_478_0_, this_.AD_Client_ID as AD_Clien4_478_0_, this_.AD_Org_ID as AD_Org_I5_478_0_, this_.IsActive as IsActive6_478_0_, this_.Created as Created7_478_0_, this_.CreatedBy as CreatedB8_478_0_, this_.Updated as Updated9_478_0_, this_.UpdatedBy as Updated10_478_0_, this_.Name as Name11_478_0_, this_.DocumentNote as Documen12_478_0_, this_.IsTranslated as IsTrans13_478_0_ from M_Product_Trl this_ where this_.M_Product_ID=$1 and this_.AD_Language=$2 and this_.IsActive=$3 limit $4
e30a458893SELECT UseSuspenseBalancing,SuspenseBalancing_Acct, UseSuspenseError,SuspenseError_Acct, UseCurrencyBalancing, CurrencyBalancing_Acct, RetainedEarning_Acct,IncomeSummary_Acct, InterCompanyDueTo_Acct,InterCompanyDueFrom_Acct FROM C_AcctSchema_GL WHERE C_AcctSchema_ID=$1
078231c619select (select man_get_costot_vocesorder_wk(p_workrequirement_id)) -((select man_get_costotoalwokrefortwk(p_workrequirement_id,v_created)) +(select man_get_costotoal_mats_wk(p_workrequirement_id,v_created)) +(select mp.em_man_fixedcost from m_product mp where mp.m_product_id = v_product_id))

Schema object statistics

Top tables by estimated sequentially scanned volume

DBTablespaceSchemaTable~SeqBytesSeqScanIxScanIxFetInsUpdDelUpd(HOT)
etendopg_defaultpublicm_productionplan12 GB41123637614
m_productionplan(TOAST)
etendopg_defaultpg_catalogpg_class3949 MB59465942325845851801657818011327
etendopg_defaultpg_catalogpg_proc2592 MB143075309106464
pg_proc(TOAST)18734908
etendopg_defaultprofilelast_stat_database2201 MB939988888
etendopg_defaultpublicma_workrequirement1728 MB2183522603591451400
ma_workrequirement(TOAST)
etendopg_defaultpublicc_orderline909 MB1322864576188131
c_orderline(TOAST)
etendopg_defaultpublicc_location763 MB488612929
c_location(TOAST)
etendopg_defaultprofilelast_stat_tablespaces531 MB339844444
last_stat_tablespaces(TOAST)
postgrespg_defaultpg_catalogpg_class374 MB36803236332119107388107124
etendopg_defaultpg_catalogpg_attribute327 MB8125807111412552317723177
etendopg_defaultprofilelast_stat_indexes278 MB18633531327471543261515543261
etendopg_defaultpublicm_inoutline216 MB1410873420123535211
m_inoutline(TOAST)
etendopg_defaultpublicm_transaction214 MB1234
m_transaction(TOAST)
etendopg_defaultprofilelast_stat_tables210 MB186846227465973167137353167169
etendopg_defaultpublicad_table197 MB360582582
ad_table(TOAST)
etendopg_defaultpublicc_orderlinetax189 MB52392620113
c_orderlinetax(TOAST)
etendopg_defaultprofilesample_stat_tables185 MB25153425837353972
etendopg_defaultprofilesample_statements136 MB49117151114351511
sample_statements(TOAST)
etendopg_defaultpublicad_sequence_config132 MB8439
ad_sequence_config(TOAST)
etendopg_defaultpublicad_image111 MB3
ad_image(TOAST)18002487788

Top tables by blocks fetched

DBTablespaceSchemaTableHeapIxTOASTTOAST-Ix
Blks%TotalBlks%TotalBlks%TotalBlks%Total
etendopg_defaultprofilelast_stat_tables314218614.581045920.49
etendopg_defaultpg_catalogpg_class10858605.0412430815.77
etendopg_defaultpublicm_productionplan15736417.307960.00
etendopg_defaultpublicm_inoutline12052795.59639550.30
etendopg_defaultpg_catalogpg_attribute4236821.976171632.86
etendopg_defaultprofilelast_stat_indexes5761562.672070100.96
etendopg_defaultpublicad_image1240.006233282.89147900.07
etendopg_defaultpg_catalogpg_proc4149101.931615080.7522730.0176120.04
etendopg_defaultpg_catalogpg_index1935720.903706371.72
etendopg_defaultpg_catalogpg_type1522070.713266941.52
etendopg_defaultpg_catalogpg_operator3128881.451153630.54
etendopg_defaultpg_catalogpg_cast448780.213161131.47
etendopg_defaultpublicma_workrequirement2865581.33116970.05
etendopg_defaultpg_catalogpg_statistic696430.321383300.64146420.07203800.09
etendopg_defaultpg_catalogpg_namespace1115300.521248210.58
etendopg_defaultpg_catalogpg_constraint1375090.64768490.36
etendopg_defaultpg_catalogpg_trigger1444600.67595570.28
etendopg_defaultprofilelast_stat_database1879310.871110.00
etendopg_defaultpublicad_textinterfaces_trl1566000.7345000.02
etendopg_defaultpg_catalogpg_depend503870.231030870.48

Top tables by blocks read

DBTablespaceSchemaTableHeapIxTOASTTOAST-IxHit(%)
Blks%TotalBlks%TotalBlks%TotalBlks%Total
etendopg_defaultpublicad_image780.0152272276.8780941.1916.82
etendopg_defaultpublicc_orderline179482.643860.0687.39
etendopg_defaultpublicc_orderlinetax96941.435910.0969.51
etendopg_defaultpublicman_wr_voces85111.251820.0359.77
etendopg_defaultpublicm_transaction45620.671230.0284.85
etendopg_defaultpublicm_productionplan38300.56370.0199.75
etendopg_defaultpublicad_ref_data_loaded24280.3650.00
etendopg_defaultpg_catalogpg_attribute18780.285320.0899.77
etendopg_defaultpublicad_process_run20570.30730.01140.00200.0095.69
etendopg_defaultprofilesample_stat_tables20210.301050.0296.16
etendopg_defaultpublicad_column18690.272020.0388.01
etendopg_defaultpg_catalogpg_statistic9910.15830.015580.08210.0099.32
etendopg_defaultpublicma_weemployee14120.21120.0050.23
etendopg_defaultpg_catalogpg_trigger8310.122860.0499.45
etendopg_defaultpg_catalogpg_depend8060.121540.0299.37
etendopg_defaultprofilelast_stat_indexes8500.12810.0199.88
etendopg_defaultpg_catalogpg_constraint8330.12770.0199.58
etendopg_defaultpg_catalogpg_proc6810.10680.011200.02100.0099.85
etendopg_defaultprofilesample_statements7470.11900.0197.68
etendopg_defaultprofilelast_stat_tables7270.11420.0199.98

Top DML tables

DBTablespaceSchemaTableInsUpdDelUpd(HOT)SeqScanSeqFetIxScanIxFet
etendopg_defaultprofilelast_stat_indexes54326151554326118687394033531327471
etendopg_defaultprofilelast_stat_tables316713735316716918650949084622746597
etendopg_defaultpg_catalogpg_attribute231772317781908602580711141255
etendopg_defaultpg_catalogpg_statistic1187298982128736511849239
pg_statistic(TOAST)12601259785911647
etendopg_defaultprofilelast_stat_user_functions5658622565830389168510
last_stat_user_functions(TOAST)
etendopg_defaultpg_catalogpg_class1801657818011327594617300258594232584585
etendopg_defaultpg_catalogpg_depend43584358122067404232748054
etendopg_defaultprofilesample_stat_tables37353972256891931534258
etendopg_defaultpg_catalogpg_type206620661229189155301147116
etendopg_defaultprofilesample_stat_indexes15151585252767051751712
etendopg_defaultprofilesample_statements14351511495140471171511
sample_statements(TOAST)
postgrespg_defaultpg_catalogpg_attribute121512153780163940185329
postgrespg_globalpg_catalogpg_shdepend67167191547953101586
etendopg_globalpg_catalogpg_shdepend67167191547953101586
etendopg_defaultprofilesample_stat_user_functions6226662510639596666
etendopg_defaultpg_catalogpg_index512512170265212178181204947
postgrespg_defaultpg_catalogpg_class10738810712436809494473236332119
etendopg_defaultpublicad_process_run285285737467101318219
ad_process_run(TOAST)1050
postgrespg_defaultpg_catalogpg_depend259259102205224202203
postgrespg_defaultpg_catalogpg_statistic478344283821961487
pg_statistic(TOAST)15155867

Top tables by updated/deleted tuples

DBTablespaceSchemaTableUpdUpd(HOT)DelVacuumAutoVacuumAnalyzeAutoAnalyze
etendopg_defaultprofilelast_stat_indexes1515154326294723
etendopg_defaultprofilelast_stat_tables37356931671294723
etendopg_defaultpg_catalogpg_attribute23177111
etendopg_defaultpg_catalogpg_statistic1187298982
pg_statistic(TOAST)12593
etendopg_defaultpg_catalogpg_class657813271801111
etendopg_defaultprofilelast_stat_user_functions622305658294723
last_stat_user_functions(TOAST)
etendopg_defaultpg_catalogpg_depend435811
etendopg_defaultprofilesample_stat_tables397212
etendopg_defaultpg_catalogpg_type2066111
etendopg_defaultprofilesample_stat_indexes158512
etendopg_defaultprofilesample_statements151112
sample_statements(TOAST)
postgrespg_defaultpg_catalogpg_attribute1215111
postgrespg_globalpg_catalogpg_shdepend6713
etendopg_globalpg_catalogpg_shdepend6713
etendopg_defaultprofilesample_stat_user_functions66612
etendopg_defaultpg_catalogpg_index512111
postgrespg_defaultpg_catalogpg_class388124107111
postgrespg_defaultpg_catalogpg_statistic4783441
pg_statistic(TOAST)15
etendopg_defaultpublicma_workrequirement451400
ma_workrequirement(TOAST)
etendopg_defaultpublicad_process_run28511
ad_process_run(TOAST)

Top growing tables

DBTablespaceSchemaTableSizeGrowthInsUpdDelUpd(HOT)
etendopg_defaultpublicad_process_run4240 kB232 kB285285
ad_process_run(TOAST)56 kB
etendopg_defaultpublicc_orderline70 MB112 kB188131
c_orderline(TOAST)
etendopg_defaultpg_catalogpg_statistic2568 kB32 kB118729898
pg_statistic(TOAST)2168 kB40 kB12601259
etendopg_defaultpublicc_orderlinetax38 MB64 kB20113
c_orderlinetax(TOAST)
etendopg_defaultpublicman_wr_voces33 MB40 kB14821
man_wr_voces(TOAST)
etendopg_defaultpublicm_transaction18 MB16 kB34
m_transaction(TOAST)

Top indexes by blocks fetched

DBTablespaceSchemaTableIndexScansBlks%Total
etendopg_defaultpg_catalogpg_classpg_class_oid_index57143011647065.40
etendopg_defaultpg_catalogpg_attributepg_attribute_relid_attnum_index2579315702092.65
etendopg_defaultpg_catalogpg_castpg_cast_source_target_index3129073161121.47
etendopg_defaultpg_catalogpg_typepg_type_oid_index1486073061611.42
etendopg_defaultpg_catalogpg_indexpg_index_indexrelid_index1480283035191.41
etendopg_defaultprofilelast_stat_indexespk_last_stat_indexes335312070100.96
etendopg_defaultpg_catalogpg_statisticpg_statistic_relid_att_inh_index651181383300.64
etendopg_defaultpg_catalogpg_procpg_proc_oid_index634361316330.61
etendopg_defaultpg_catalogpg_namespacepg_namespace_oid_index1045071090570.51
etendopg_defaultprofilelast_stat_tablespk_last_stat_tables84621045920.49
postgrespg_defaultpg_catalogpg_attributepg_attribute_relid_attnum_index39401860040.40
etendopg_defaultpg_catalogpg_dependpg_depend_reference_index33615767620.36
etendopg_defaultpg_catalogpg_indexpg_index_indrelid_index28732640120.30
etendopg_defaultpg_catalogpg_constraintpg_constraint_conrelid_index29857624240.29
etendopg_defaultpg_catalogpg_operatorpg_operator_oprname_l_r_n_index25617565790.26
etendopg_defaultpg_catalogpg_triggerpg_trigger_tgrelid_tgname_index25431559290.26
postgrespg_globalpg_catalogpg_db_role_settingpg_db_role_setting_databaseid_rol_index53956539980.25
etendopg_globalpg_catalogpg_db_role_settingpg_db_role_setting_databaseid_rol_index51340513590.24
etendopg_defaultpg_catalogpg_operatorpg_operator_oid_index22192477970.22
etendopg_defaultpg_catalogpg_attributepg_attribute_relid_attnam_index16467010.22

Top indexes by blocks read

DBTablespaceSchemaTableIndexScansBlk Reads%TotalHits(%)
etendopg_defaultpublicad_image(TOAST)pg_toast_117268_index180080941.1945.27
etendopg_defaultpg_catalogpg_attributepg_attribute_relid_attnum_index2579312930.0499.95
etendopg_defaultpg_catalogpg_triggerpg_trigger_tgrelid_tgname_index254312800.0499.50
etendopg_defaultpublicm_inoutlinem_inoutline_product45972710.0499.38
etendopg_defaultpublicm_inoutlineem_man_wkreq_il_idx51702520.0498.39
etendopg_defaultpg_catalogpg_attributepg_attribute_relid_attnam_index162280.0399.51
etendopg_defaultpublicc_orderlinetaxc_orderlinetax_derline_tax_un1990.0367.11
etendopg_defaultpublicc_orderlinetaxc_orderlinetax_key131880.0370.85
etendopg_defaultpublicc_orderlinec_orderline_key4211780.0387.48
etendopg_defaultpublicc_orderlinetaxc_orderlinetax_orderline2141780.0385.78
etendopg_defaultpg_catalogpg_classpg_class_relname_nsp_index42361460.0299.37
etendopg_defaultpublicma_workrequirementma_workrequirement_key35151400.0298.80
etendopg_defaultpublicman_wr_vocesman_wr_voces_key4351320.0292.42
etendopg_defaultprofilesample_stat_tablespk_sample_stat_tables1411040.0298.72
etendopg_defaultpublicad_columnad_column_name2850.0150.29
etendopg_defaultpg_catalogpg_statisticpg_statistic_relid_att_inh_index65118830.0199.94
etendopg_defaultprofilelast_stat_indexespk_last_stat_indexes33531810.0199.96
etendopg_defaultpg_catalogpg_dependpg_depend_reference_index33615790.0199.90
etendopg_defaultpg_catalogpg_dependpg_depend_depender_index8712750.0199.71
etendopg_defaultpg_catalogpg_classpg_class_oid_index571430700.0199.99

Top growing indexes

DBTablespaceSchemaTableIndexIndexTable
SizeGrowthInsUpdDel
etendopg_defaultpublicc_orderlinetaxc_orderlinetax_derline_tax_un11 MB16 kB20113
etendopg_defaultpublicc_orderlineem_man_inoutline_order_idx6552 kB16 kB1885
etendopg_defaultpg_catalogpg_statisticpg_statistic_relid_att_inh_index216 kB8192 bytes1974
etendopg_defaultpg_catalogpg_dependpg_depend_depender_index1704 kB8192 bytes43584358
etendopg_defaultpg_catalogpg_dependpg_depend_reference_index1688 kB8192 bytes43584358
etendopg_defaultpg_catalogpg_typepg_type_oid_index96 kB8192 bytes20662066
etendopg_defaultpublicc_orderlinetaxc_orderlinetax_key6720 kB8192 bytes20113
etendopg_defaultpublicc_orderlinetaxc_orderlinetax_orderline6720 kB8192 bytes20113
etendopg_defaultpublicc_orderlineem_man_ol_ma_wkreq_id_idx6720 kB8192 bytes18812
etendopg_defaultpublicc_orderlinec_orderline_key6720 kB8192 bytes1885
etendopg_defaultpublicman_wr_vocesman_wr_voces_key7240 kB8192 bytes145
etendopg_defaultpublicman_wr_vocesman_wr_voces_ma_wkrequ_id_idx7240 kB8192 bytes145
etendopg_defaultpublicm_transactionm_transaction_product_trxprdt3072 kB8192 bytes34

Unused indexes

This table contains non-scanned indexes (during report period), ordered by number of DML operations on underlying tables. Constraint indexes are excluded.

DBTablespacesSchemaTableIndexIndexTable
SizeGrowthInsUpdDel
etendopg_defaultpg_catalogpg_classpg_class_tblspc_relfilenode_index104 kB180152511801
postgrespg_defaultpg_catalogpg_classpg_class_tblspc_relfilenode_index16 kB107264107
etendopg_defaultpublicad_process_runad_process_run_ould_be_killed8192 bytes272272
etendopg_defaultpublicm_transactionm_transaction_product_trxprdt3072 kB8192 bytes34

User function statistics

Top functions by total time

DBSchemaFunctionExecutionsTime (s)
TotalSelfMeanMean self
etendoprofiletake_sample2323.840.021.0360.001
etendoprofiletake_sample_subset2323.810.061.0350.003
etendoprofiletake_sample2323.752.491.0330.108
etendoprofilecollect_obj_stats2313.444.020.5840.175
etendoprofiledblink62110.7410.740.0170.017
etendopublicequal42141468.232.870.0000.000
etendopublicman_get_costotoal_mats_wk3926.366.350.0160.016
etendopublicman_get_benefit_wk3756.180.020.0160.000
etendoprofilesample_dbobj_delta235.655.650.2460.246
etendopublicto_number42229135.395.390.0000.000
etendopublicad_column_identifier27601.081.060.0000.000
etendoprofilecollect_pg_stat_statements_stats231.030.530.0450.023
etendopublicma_workeffort_validate40.530.030.1330.009
etendopublicc_gettax2040.320.000.0020.000
etendopublicc_gettax2040.320.260.0020.001
etendopublicobequals2928120.310.310.0000.000
etendoprofiledblink_connect660.290.290.0040.004
etendopublicc_gettax1880.280.000.0020.000
etendopublicc_gettax1880.280.000.0020.000
etendopublicto_char4047250.200.200.0000.000

Top functions by executions

DBSchemaFunctionExecutionsTime (s)
TotalSelfMeanMean self
etendopublicto_number42229135.395.390.0000.000
etendopublicequal42141468.232.870.0000.000
etendopublicto_char4047250.200.200.0000.000
etendopublicobequals2928120.310.310.0000.000
etendopublicad_isorgincluded121840.150.150.0000.000
etendopublicad_org_isinnaturaltree52440.110.030.0000.000
etendopublicto_char46540.010.010.0000.000
etendopublicad_istriggerenabled31170.070.070.0000.000
etendopublicad_column_identifier27601.081.060.0000.000
etendopublicuuid_generate_v422920.020.020.0000.000
etendopublicround18280.000.000.0000.000
etendopublicto_date10630.010.010.0000.000
etendopublicto_date8580.000.000.0000.000
etendopublicget_uuid7640.040.020.0000.000
etendopublicman_get_import_voz6650.040.040.0000.000
etendopubliclowerequaltimestamp6540.000.000.0000.000
etendoprofiledblink62110.7410.740.0170.017
etendopublicman_get_costot_vocesorder_wk5760.020.020.0000.000
etendopublicadd_days5530.000.000.0000.000
etendopublicman_get_costotoal_mats_wk3926.366.350.0160.016

Top trigger functions by total time

DBSchemaFunctionExecutionsTime (s)
TotalSelfMeanMean self
etendopublicman_orderline_after_trg2013.360.040.0170.000
etendopublicman_wr_voces_trg1502.510.040.0170.000
etendopublicman_ma_wrphase_trg170.560.010.0330.000
etendopublicc_orderline_trg22010.300.110.0010.001
etendopublicman_wr_times_trg70.180.000.0250.001
etendopublicc_orderlinetax_trg2140.080.050.0000.000
etendopublicintr_c_orderline_trg2010.050.010.0000.000
etendopublicc_orderline_trg2010.050.040.0000.000
etendopublicad_process_request_trg3000.040.020.0000.000
etendopublicm_transaction_trg360.040.010.0010.000
etendopublicm_inoutline_trg380.030.010.0010.000
etendopublicc_orderline2_trg2010.030.020.0000.000
etendopublicc_ordertax_trg2140.020.010.0000.000
etendopublicc_ordline_chk_restrictions_trg2010.020.020.0000.000
etendopublicm_productionline_trg20.020.000.0080.002
etendopublicintr_m_inoutline_trg370.010.000.0000.000
etendopublicc_order_chk_restrinctions_trg2270.010.010.0000.000
etendopublicc_order_trg22150.010.010.0000.000
etendopublicad_preference_mod_trg300.010.010.0000.000
etendopublicc_order_trg2010.010.000.0000.000

Vacuum-related statistics

Top tables by vacuum operations

DBTablespaceSchemaTableVacuum countAutovacuum countInsUpdDelUpd(HOT)
etendopg_defaultprofilelast_stat_tables293167137353167169
etendopg_defaultprofilelast_stat_indexes29543261515543261
etendopg_defaultprofilelast_stat_user_functions295658622565830
etendopg_defaultpg_catalogpg_statistic2118729898
postgrespg_defaultpg_catalogpg_type1157157
postgrespg_defaultpg_catalogpg_attribute112151215
postgrespg_defaultpg_catalogpg_class1107388107124
postgrespg_defaultpg_catalogpg_statistic1478344
etendopg_defaultpg_catalogpg_type120662066
etendopg_defaultpg_catalogpg_attribute12317723177
etendopg_defaultpg_catalogpg_class11801657818011327
etendopg_defaultpg_catalogpg_index1512512
etendopg_defaultprofilelast_stat_database18888

Top tables by analyze operations

DBTablespaceSchemaTableAnalyze countAutoanalyze countInsUpdDelUpd(HOT)
etendopg_defaultprofilelast_stat_tables47233167137353167169
etendopg_defaultprofilelast_stat_indexes4723543261515543261
etendopg_defaultprofilelast_stat_user_functions47235658622565830
etendopg_defaultprofilelast_stat_tablespaces224444
postgrespg_globalpg_catalogpg_pltemplate3
postgrespg_globalpg_catalogpg_tablespace3
postgrespg_globalpg_catalogpg_shdepend3671671
postgrespg_globalpg_catalogpg_authid3
postgrespg_globalpg_catalogpg_auth_members3
postgrespg_globalpg_catalogpg_database3
postgrespg_globalpg_catalogpg_shdescription3
postgrespg_globalpg_catalogpg_db_role_setting3
postgrespg_globalpg_catalogpg_shseclabel3
postgrespg_globalpg_catalogpg_replication_origin3
postgrespg_globalpg_catalogpg_subscription3
etendopg_globalpg_catalogpg_pltemplate3
etendopg_globalpg_catalogpg_tablespace3
etendopg_globalpg_catalogpg_shdepend3671671
etendopg_globalpg_catalogpg_authid3
etendopg_globalpg_catalogpg_auth_members3

Top indexes by estimated vacuum load

DBTablespaceSchemaTableIndex~Vacuum bytesVacuum cntAutovacuum cntIX sizeRelsize
etendopg_defaultprofilelast_stat_indexespk_last_stat_indexes12 MB29416 kB1536 kB
etendopg_defaultprofilelast_stat_tablespk_last_stat_tables5888 kB29202 kB1160 kB
etendopg_defaultpg_catalogpg_attributepg_attribute_relid_attnam_index960 kB1960 kB4128 kB
etendopg_defaultpg_catalogpg_attributepg_attribute_relid_attnum_index632 kB1632 kB4128 kB
etendopg_defaultpg_catalogpg_statisticpg_statistic_relid_att_inh_index432 kB2216 kB2804 kB
etendopg_defaultpg_catalogpg_typepg_type_typname_nsp_index184 kB1184 kB472 kB
etendopg_defaultpg_catalogpg_classpg_class_relname_nsp_index184 kB1184 kB680 kB
etendopg_defaultpg_catalogpg_statistic(TOAST)pg_toast_2619_index168 kB356 kB2148 kB
postgrespg_defaultpg_catalogpg_attributepg_attribute_relid_attnam_index144 kB1144 kB408 kB
etendopg_defaultpg_catalogpg_classpg_class_oid_index104 kB1104 kB680 kB
etendopg_defaultpg_catalogpg_classpg_class_tblspc_relfilenode_index104 kB1104 kB680 kB
postgrespg_defaultpg_catalogpg_attributepg_attribute_relid_attnum_index96 kB196 kB408 kB
etendopg_defaultpg_catalogpg_typepg_type_oid_index96 kB196 kB472 kB
etendopg_defaultpg_catalogpg_indexpg_index_indrelid_index72 kB172 kB464 kB
etendopg_defaultpg_catalogpg_indexpg_index_indexrelid_index72 kB172 kB464 kB
postgrespg_defaultpg_catalogpg_typepg_type_typname_nsp_index40 kB140 kB104 kB
postgrespg_defaultpg_catalogpg_statisticpg_statistic_relid_att_inh_index40 kB140 kB248 kB
postgrespg_defaultpg_catalogpg_typepg_type_oid_index32 kB132 kB104 kB
postgrespg_defaultpg_catalogpg_classpg_class_relname_nsp_index32 kB132 kB104 kB
postgrespg_defaultpg_catalogpg_classpg_class_oid_index16 kB116 kB104 kB

Top tables by dead tuples ratio

Data in this section is not differential. This data is valid for last report sample only.

No data in this section

Top tables by modified tuples ratio

Table shows modified tuples statistics since last analyze.

Data in this section is not differential. This data is valid for last report sample only.

No data in this section

Cluster settings during the report interval

Defined settings
Settingreset_valUnitSourceNotes
checkpoint_completion_target0.9/etc/postgresql/10/main/postgresql.conf:211
client_encodingUTF8
cluster_name10/main/etc/postgresql/10/main/postgresql.conf:477
config_file/etc/postgresql/10/main/postgresql.conf
data_checksumson
data_directory/var/lib/postgresql/10/main
DateStyleISO, DMY/etc/postgresql/10/main/postgresql.conf:566
default_text_search_configpg_catalog.spanish/etc/postgresql/10/main/postgresql.conf:588
effective_cache_size7864328kB/etc/postgresql/10/main/postgresql.conf:315
effective_io_concurrency200/etc/postgresql/10/main/postgresql.conf:164
external_pid_file/var/run/postgresql/10-main.pid/etc/postgresql/10/main/postgresql.conf:49
hba_file/etc/postgresql/10/main/pg_hba.conf
ident_file/etc/postgresql/10/main/pg_ident.conf
lc_collatees_ES.UTF-8
lc_ctypees_ES.UTF-8
lc_messagesen_US.UTF-8/etc/postgresql/10/main/conf.d/15-pgbadger.conf:11
lc_monetaryes_ES.UTF-8/etc/postgresql/10/main/postgresql.conf:583
lc_numericen_US.UTF-8/etc/postgresql/10/main/conf.d/01-openbravo-standard-postgres10.conf:38
lc_timees_ES.UTF-8/etc/postgresql/10/main/postgresql.conf:585
log_autovacuum_min_duration0ms/etc/postgresql/10/main/conf.d/15-pgbadger.conf:9
log_checkpointson/etc/postgresql/10/main/conf.d/01-openbravo-standard-postgres10.conf:26
log_connectionson/etc/postgresql/10/main/conf.d/15-pgbadger.conf:1
log_disconnectionson/etc/postgresql/10/main/conf.d/15-pgbadger.conf:2
log_line_prefix%t [%p]:[%l-1] db=%d,user=%u,app=%a,client=%h/etc/postgresql/10/main/conf.d/15-pgbadger.conf:4
log_lock_waitson/etc/postgresql/10/main/conf.d/15-pgbadger.conf:5
log_min_duration_statement1000ms/etc/postgresql/10/main/conf.d/15-pgbadger.conf:10
log_temp_files0kB/etc/postgresql/10/main/conf.d/15-pgbadger.conf:7
log_timezonelocaltime/etc/postgresql/10/main/conf.d/01-openbravo-standard-postgres10.conf:22
maintenance_work_mem524288kB/etc/postgresql/10/main/postgresql.conf:123
max_locks_per_transaction128/etc/postgresql/10/main/conf.d/01-openbravo-standard-postgres10.conf:17
max_stack_depth2048kB
max_wal_size4096MB/etc/postgresql/10/main/postgresql.conf:209
min_wal_size1024MB/etc/postgresql/10/main/postgresql.conf:210
pg_conf_load_time2026-07-14 02:00:04.136929+02
pg_conf_load_time2026-07-15 02:00:03.797725+022026-07-15 03:00:02+02
pg_postmaster_start_time2026-07-14 02:00:04.238903+02
pg_postmaster_start_time2026-07-15 02:00:03.907461+022026-07-15 03:00:02+02
pg_stat_statements.max10000/etc/postgresql/10/main/postgresql.conf:660
pg_stat_statements.trackall/etc/postgresql/10/main/postgresql.conf:661
random_page_cost1.1/etc/postgresql/10/main/postgresql.conf:307
server_encodingUTF8
shared_buffers2621448kB/etc/postgresql/10/main/postgresql.conf:113
shared_preload_libraries$libdir/pg_stat_statements/etc/postgresql/10/main/postgresql.conf:659
sslon/etc/postgresql/10/main/postgresql.conf:79
ssl_cert_file/etc/ssl/certs/ssl-cert-snakeoil.pem/etc/postgresql/10/main/postgresql.conf:84
ssl_key_file/etc/ssl/private/ssl-cert-snakeoil.key/etc/postgresql/10/main/postgresql.conf:85
stats_temp_directory/var/run/postgresql/10-main.pg_stat_tmp/etc/postgresql/10/main/postgresql.conf:493
TimeZonelocaltime/etc/postgresql/10/main/conf.d/01-openbravo-standard-postgres10.conf:23
timezone_abbreviationsDefault
track_functionsall/etc/postgresql/10/main/conf.d/15-pgbadger.conf:8
versionPostgreSQL 10.23 (Ubuntu 10.23-0ubuntu0.18.04.2) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0, 64-bit
wal_buffers20488kB/etc/postgresql/10/main/postgresql.conf:198
work_mem5242kB/etc/postgresql/10/main/postgresql.conf:122
Default settings
Settingreset_valUnitSourceNotes
allow_in_place_tablespacesoff
allow_system_table_modsoff
application_name
archive_command
archive_modeoff
archive_timeout0s
array_nullson
authentication_timeout60s
autovacuumon
autovacuum_analyze_scale_factor0.1
autovacuum_analyze_threshold50
autovacuum_freeze_max_age200000000
autovacuum_max_workers3
autovacuum_multixact_freeze_max_age400000000
autovacuum_naptime60s
autovacuum_vacuum_cost_delay20ms
autovacuum_vacuum_cost_limit-1
autovacuum_vacuum_scale_factor0.2
autovacuum_vacuum_threshold50
autovacuum_work_mem-1kB
backend_flush_after08kB
backslash_quotesafe_encoding
bgwriter_delay200ms
bgwriter_flush_after648kB
bgwriter_lru_maxpages100
bgwriter_lru_multiplier2
block_size8192
bonjouroff
bonjour_name
bytea_outputhex
check_function_bodieson
checkpoint_flush_after328kB
checkpoint_timeout300s
checkpoint_warning30s
client_min_messagesnotice
commit_delay0
commit_siblings5
constraint_exclusionpartition
cpu_index_tuple_cost0.005
cpu_operator_cost0.0025
cpu_tuple_cost0.01
cursor_tuple_fraction0.1
data_sync_retryoff
db_user_namespaceoff
deadlock_timeout1000ms
debug_assertionsoff
debug_pretty_printon
debug_print_parseoff
debug_print_planoff
debug_print_rewrittenoff
default_statistics_target100/etc/postgresql/10/main/postgresql.conf:329
default_tablespace
default_transaction_deferrableoff
default_transaction_isolationread committed
default_transaction_read_onlyoff
default_with_oidsoff
dynamic_library_path$libdir
dynamic_shared_memory_typeposix/etc/postgresql/10/main/postgresql.conf:127
enable_bitmapscanon
enable_gathermergeon
enable_hashaggon
enable_hashjoinon
enable_indexonlyscanon
enable_indexscanon
enable_materialon
enable_mergejoinon
enable_nestloopon
enable_seqscanon
enable_sorton
enable_tidscanon
escape_string_warningon
event_sourcePostgreSQL
exit_on_erroroff
extra_float_digits0
force_parallel_modeoff
from_collapse_limit8
fsyncon
full_page_writeson
geqoon
geqo_effort5
geqo_generations0
geqo_pool_size0
geqo_seed0
geqo_selection_bias2
geqo_threshold12
gin_fuzzy_search_limit0
gin_pending_list_limit4096kB
hot_standbyon
hot_standby_feedbackoff
huge_pagestry
idle_in_transaction_session_timeout0ms
ignore_checksum_failureoff
ignore_system_indexesoff
integer_datetimeson
IntervalStylepostgres
join_collapse_limit8
krb_caseins_usersoff
krb_server_keyfileFILE:/etc/postgresql-common/krb5.keytab
listen_addresseslocalhost
local_preload_libraries
lock_timeout0ms
lo_compat_privilegesoff
log_destinationstderr
log_directorylog
log_durationoff/etc/postgresql/10/main/conf.d/15-pgbadger.conf:3
log_error_verbositydefault
log_executor_statsoff
log_file_mode384
log_filenamepostgresql-%Y-%m-%d_%H%M%S.log
logging_collectoroff
log_hostnameoff
log_min_error_statementerror
log_min_messageswarning
log_parser_statsoff
log_planner_statsoff
log_replication_commandsoff
log_rotation_age1440min
log_rotation_size10240kB
log_statementnone/etc/postgresql/10/main/conf.d/15-pgbadger.conf:6
log_statement_statsoff
log_truncate_on_rotationoff
max_connections100/etc/postgresql/10/main/postgresql.conf:64
max_files_per_process1000
max_function_args100
max_identifier_length63
max_index_keys32
max_logical_replication_workers4
max_parallel_workers8
max_parallel_workers_per_gather2
max_pred_locks_per_page2
max_pred_locks_per_relation-2
max_pred_locks_per_transaction64
max_prepared_transactions0
max_replication_slots10
max_standby_archive_delay30000ms
max_standby_streaming_delay30000ms
max_sync_workers_per_subscription2
max_wal_senders10
max_worker_processes8
min_parallel_index_scan_size648kB
min_parallel_table_scan_size10248kB
old_snapshot_threshold-1min
operator_precedence_warningoff
parallel_setup_cost1000
parallel_tuple_cost0.1
password_encryptionmd5
pg_profile.topn20
pg_stat_statements.saveon
pg_stat_statements.track_utilityon
port5432/etc/postgresql/10/main/postgresql.conf:63
post_auth_delay0s
pre_auth_delay0s
quote_all_identifiersoff
replacement_sort_tuples150000
restart_after_crashon
row_securityon
search_path"$user", public
segment_size1310728kB
seq_page_cost1
server_version10.23 (Ubuntu 10.23-0ubuntu0.18.04.2)
server_version_num100023
session_preload_libraries
session_replication_roleorigin
ssl_ca_file
ssl_ciphersHIGH:MEDIUM:+3DES:!aNULL
ssl_crl_file
ssl_dh_params_file
ssl_ecdh_curveprime256v1
ssl_prefer_server_cipherson
standard_conforming_stringson
statement_timeout0ms
superuser_reserved_connections3
synchronize_seqscanson
synchronous_commiton
synchronous_standby_names
syslog_facilitylocal0
syslog_identpostgres
syslog_sequence_numberson
syslog_split_messageson
system_identifier6876315319645054122
tcp_keepalives_count0
tcp_keepalives_idle0s
tcp_keepalives_interval0s
temp_buffers10248kB
temp_file_limit-1kB
temp_tablespaces
trace_notifyoff
trace_recovery_messageslog
trace_sortoff
track_activitieson
track_activity_query_size1024
track_commit_timestampoff
track_countson
track_io_timingoff
transaction_deferrableoff
transaction_isolationdefault
transaction_read_onlyoff
transform_null_equalsoff
unix_socket_directories/var/run/postgresql/etc/postgresql/10/main/postgresql.conf:66
unix_socket_group
unix_socket_permissions511
update_process_titleon
vacuum_cost_delay0ms
vacuum_cost_limit200
vacuum_cost_page_dirty20
vacuum_cost_page_hit1
vacuum_cost_page_miss10
vacuum_defer_cleanup_age0
vacuum_freeze_min_age50000000
vacuum_freeze_table_age150000000
vacuum_multixact_freeze_min_age5000000
vacuum_multixact_freeze_table_age150000000
wal_block_size8192
wal_compressionoff
wal_consistency_checking
wal_keep_segments0
wal_levelreplica
wal_log_hintsoff
wal_receiver_status_interval10s
wal_receiver_timeout60000ms
wal_retrieve_retry_interval5000ms
wal_segment_size20488kB
wal_sender_timeout60000ms
wal_sync_methodfdatasync
wal_writer_delay200ms
wal_writer_flush_after1288kB
xmlbinarybase64
xmloptioncontent
zero_damaged_pagesoff