Postgres profile report (StartID: 337, EndID: 360)

pg_profile version 0.3.6

Server name: local

Report interval: 2026-07-13 04:00:02+02 - 2026-07-14 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
etendo60579796.08100151424573057126773701218917241381363263341330573122 MB-1016 kB
postgres1186999.8113137033231985165365528201286617726463 kB32 kB
Total72448796.18100282725276380128758866222572521383375272001348293128 MB-984 kB

Statement statistics by database

DatabaseCallsTime (s)Fetched (blk)Dirtied (blk)Temp (blk)Local (blk)Statements
ExecReadWriteTrgSharedLocalSharedLocalReadWriteReadWrite
etendo318723414.218.80375121893762278845
postgres562010.79127690236350
template163508.1247815237278
Total330693433.128.80376876943767009473

Cluster statistics

MetricValue
Scheduled checkpoints275
Requested checkpoints1
Checkpoint write time (s)2484.66
Checkpoint sync time (s)0.61
Checkpoints buffers written162242
Background buffers written4000
Backend buffers written513714
Backend fsync count
Bgwriter interrupts (too many buffers)13
Number of buffers allocated1002628
WAL generated3383 MB
WAL segments archived
WAL segments archive failed

Tablespace statistics

TablespacePathSizeGrowth
pg_default3142 MB-968 kB
pg_global542 kB

SQL query statistics

Top SQL by execution time

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

95572914af

[cd9c0fd2]

etendo188.0143.41903188009.979188009.979188009.9791

9fab4770a7

[948be82f]

etendo80.5718.6080573.96980573.96980573.9691

e72111fc0b

[165cfe9e]

etendo23.805.49231034.754918.4201628.818165.70323

8b95a6d8be

[5bf034e8]

etendo23.795.491034.537918.2091628.600165.70823

82e3327dfb

[11efae27]

etendo7.851.8148516.18114.96122.4970.929485

078231c619

[fb4a8a01]

etendo6.321.4638516.41415.15323.8100.985385

5205357fc7

[9829805d]

etendo5.431.2554326118.08421.385518.351106.65346

7bbf8dc24b

[ec3901fa]

etendo5.001.1531671108.67725.095227.52281.43246

ab75f0d002

[ea3ffc6b]

etendo4.991.155323483.4082.5459.5140.6851463

63598c4dc1

[32078409]

etendo4.891.13244.68844.946880.964231.78720

fb78e2110c

[3f26be12]

etendo3.630.8422216.34515.31022.9000.761222

823682fddf

[505cb7c7]

etendo3.570.8215452.4573.948264.85638.11868

780c1676b8

[58bd0761]

etendo3.500.8113362.6201.2268.9810.9791336

579c04f6a4

[22217272]

etendo3.360.7849016152.699120.549465.47276.00222

a5e40a232d

[6d193752]

etendo3.130.7228358142.100125.093165.0708.98422

94981812f5

[d6e97f55]

postgres2.710.6352810.2660.11711.7000.643264

09dd3ceb9c

[ac17e023]

postgres2.580.6025210.2520.16811.5680.646252

6e1c6d0949

[dccac99b]

template12.580.6025210.2320.09810.6350.643252

8ce5c7c2fd

[a8855ea7]

template12.560.5925210.1420.09310.5221.104252

383476269e

[75f62629]

etendo2.160.503169.69334.038318.75562.10531

Top SQL by executions

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

09a13047d0

[e0488e43]

etendo9751529.49975150.0040.00218.4540.0640.4

47521f7ce5

[4ef2b412]

etendo3540310.71354030.0040.0028.0320.0540.1

b5ae6f04c1

[bb90fd8a]

etendo189375.73189370.0150.0080.4350.0100.3

fe26995756

[a0abb6c3]

etendo88322.6788320.0120.0080.3270.0050.1

0773a44802

[141ca58a]

etendo58671.7758670.0040.0020.3210.0050.0

6c3324a757

[30e34f7a]

etendo54251.640.0050.0030.0520.0020.0

4fcdb10468

[6f9b1a85]

etendo53471.620.0020.0000.1000.0030.0

ae36bf3fd6

[2049516b]

etendo53411.620.0010.0000.0410.0010.0

c33f21cc29

[a38abef0]

etendo52761.6052760.0040.0020.2300.0040.0

23c054b2cf

[cdfab523]

etendo42241.28211200.0170.0110.0880.0040.1

52730573e2

[708934a0]

etendo42241.2842240.0090.0060.0600.0020.0

e30a458893

[f8bb1c8e]

etendo42241.2842240.0070.0040.0710.0020.0

74c239e6b0

[31bc0d20]

etendo33131.0032990.0080.0021.9860.0360.0

0395cd7d8f

[90d234b8]

template126400.800.0110.0090.0400.0020.0

18dfa40a69

[13286d05]

etendo24100.7324100.0030.0020.0170.0010.0

7531c1665f

[8aff38a8]

etendo23150.7022830.0030.0020.0180.0020.0

abcc32ea62

[d553b28a]

etendo22800.6922800.1020.0671.2770.0360.2

1794fad412

[2dd25169]

etendo22800.6922800.0260.0150.4160.0130.1

ea88e6845b

[b6b4a757]

etendo18460.5618460.0060.0020.0740.0040.0

85648edf27

[f9eb6039]

etendo18460.5618460.0050.0021.2980.0300.0

Top SQL by shared blocks fetched

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

9fab4770a7

[948be82f]

etendo659954517.5188.7680.61

e72111fc0b

[165cfe9e]

etendo464626612.3399.9923.82323

8b95a6d8be

[5bf034e8]

etendo464612812.3399.9923.823

ab75f0d002

[ea3ffc6b]

etendo26530337.04100.005.05323481463

53f041022a

[1c089a92]

etendo23155766.14100.002.1264623

82e3327dfb

[11efae27]

etendo18640854.95100.007.8485485

579c04f6a4

[22217272]

etendo15590304.14100.003.44901622

078231c619

[fb4a8a01]

etendo14889363.9599.996.3385385

823682fddf

[505cb7c7]

etendo9118642.4299.583.615468

fb78e2110c

[3f26be12]

etendo8611012.28100.003.6222222

a5e40a232d

[6d193752]

etendo7616442.02100.003.12835822

63598c4dc1

[32078409]

etendo5636491.5099.944.920

383476269e

[75f62629]

etendo4826481.2899.992.23131

8c11584bf9

[dbe5263b]

etendo4674461.24100.002.06060

ffbe6ea696

[6ff0b59f]

etendo4515521.2099.872.1106106

491dedbb59

[22879b7e]

etendo3900241.0399.991.6101101

86970244f8

[3e74368]

etendo3879571.03100.001.7101101

189e1713fc

[6bb4764a]

etendo3483300.9299.971.58787

5205357fc7

[9829805d]

etendo3397280.9099.995.45432646

de8541e1aa

[100abf77]

etendo3193110.8599.961.44141

Top SQL by shared blocks read

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

9fab4770a7

[948be82f]

etendo74195173.9088.7680.61

95572914af

[cd9c0fd2]

etendo20947520.8734.36188.09031

819231741d

[ee6bcd7b]

etendo89240.890.170.81159971

2d5eee73ff

[676cf476]

etendo51340.5136.130.32121

85c5b336fc

[b917487a]

etendo48280.480.120.41159971

8653e9fcc7

[63a051b4]

etendo42270.420.450.41250041

823682fddf

[505cb7c7]

etendo38690.3999.583.615468

cb65787e2e

[34618be5]

etendo32650.330.640.4868071

e1fa83416e

[c5d78cc9]

etendo24190.2455.850.51577681

5d2713997e

[9874a2f8]

etendo12140.120.1369301

2e0b729b87

[948be82f]

postgres10550.1197.412.21

0c247acdf0

[948be82f]

template110540.1097.412.11

dd164d7c5b

[51d43ddf]

etendo8370.080.830.0256371

421633828b

[5015950f]

etendo7040.070.420.0245091

fb03d4bd20

[14a0b57d]

etendo7030.070.710.0245171

e4e07d6aaa

[c7b7b73b]

etendo6070.060.1149501

ffbe6ea696

[6ff0b59f]

etendo5940.0699.872.1106106

fbc203961c

[8d9c7ac8]

etendo5490.050.540.0153631

e72111fc0b

[165cfe9e]

etendo4730.0599.9923.82323

8b95a6d8be

[5bf034e8]

etendo4730.0599.9923.823

Top SQL by shared blocks dirtied

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

9fab4770a7

[948be82f]

etendo31931684.7788.7680.61

e72111fc0b

[165cfe9e]

etendo154354.1099.9923.82323

8b95a6d8be

[5bf034e8]

etendo154354.1099.9923.823

5205357fc7

[9829805d]

etendo42191.1299.995.45432646

7bbf8dc24b

[ec3901fa]

etendo31580.84100.005.03167146

860971ea70

[a2b1d8b5]

etendo18000.4899.691.02323

bbb5ea7d4a

[dbbb08c5]

etendo16530.4499.270.1287287

bfac77ea29

[d422fd3a]

etendo9920.2699.930.944

ffbe6ea696

[6ff0b59f]

etendo5310.1499.872.1106106

627abb38ab

[b8b908b]

etendo5270.1499.880.3341621

ab52f02a40

[7de5e657]

etendo4860.13100.000.14487819

3cf9d838f3

[7e502be6]

etendo4800.1399.900.740

fae50d9c18

[b746d230]

etendo3670.1099.960.22115

c2a2eb3923

[ffb6404]

etendo3400.0998.880.355

79064e5d0c

[d5eb7d45]

etendo3400.0998.880.355

5695e7218b

[2c3218e3]

etendo3330.0999.980.4467438

9b785e47a4

[2a7c06f1]

etendo3280.0997.330.1106106

efbdf5f84a

[c2b69e40]

etendo3280.0996.460.1106106

74c239e6b0

[31bc0d20]

etendo3130.08100.000.032993313

53f041022a

[1c089a92]

etendo2950.08100.002.1264623

Top SQL by shared blocks written

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

9fab4770a7

[948be82f]

etendo17467125.6934.0088.7680.61

0c247acdf0

[948be82f]

template1550.010.0197.412.11

2e0b729b87

[948be82f]

postgres550.010.0197.412.21

Top SQL by temp usage

No data in this section

Complete list of SQL texts

QueryIDQuery Text
86970244f8select man_get_costotoal_mats_wk(v_ma_workrequirement_id,v_created)
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)
c2a2eb3923SELECT M_INOUT_POST(PInstance_ID, $2)
de8541e1aainsert into MA_WRPhase (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, Outsourced, Startdate, Enddate, Estimatedtime, Runtime, Usedmaterial, EM_Man_Control_Quality, MA_Wrphase_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)
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)
491dedbb59select man_get_benefit_wk(v_ma_workrequirement_id)
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
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
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
2d5eee73ffselect adimage0_.AD_Image_ID as AD_Image1_51_0_, adimage0_.AD_Client_ID as AD_Clien2_51_0_, adimage0_.AD_Org_ID as AD_Org_I3_51_0_, adimage0_.IsActive as IsActive4_51_0_, adimage0_.Created as Created5_51_0_, adimage0_.CreatedBy as CreatedB6_51_0_, adimage0_.Updated as Updated7_51_0_, adimage0_.UpdatedBy as UpdatedB8_51_0_, adimage0_.Name as Name9_51_0_, adimage0_.ImageURL as ImageUR10_51_0_, adimage0_.BinaryData as BinaryD11_51_0_, adimage0_.Width as Width12_51_0_, adimage0_.Height as Height13_51_0_, adimage0_.Mimetype as Mimetyp14_51_0_ from AD_Image adimage0_ where adimage0_.AD_Image_ID=$1
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
383476269eSELECT * FROM MA_WorkEffort_Validate($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
fbc203961cCOPY public.man_product_processes (man_product_processes_id, m_product_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, ma_process_id, description) TO stdout
0395cd7d8fSHOW 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
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
ea88e6845bSELECT 1 FROM ONLY "public"."ad_client" x WHERE "ad_client_id"::pg_catalog.text OPERATOR(pg_catalog.=) $1::pg_catalog.text FOR KEY SHARE OF x
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)
85c5b336fcCOPY public.c_orderlinetax (c_orderlinetax_id, c_orderline_id, c_tax_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, taxbaseamt, taxamt, line, c_order_id) TO stdout
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
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)
e1fa83416eCOPY public.man_product_containers (man_product_containers_id, m_product_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, m_attributevalue_id) TO stdout
e4e07d6aaaCOPY public.ad_field_trl (ad_field_trl_id, ad_field_id, ad_language, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, name, description, help, istranslated) TO stdout
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)
79064e5d0cSELECT * FROM M_INOUT_POST0($1)
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)
8c11584bf9UPDATE MA_WRPHASE SET DONEQUANTITY=DONEQUANTITY + Cur_ProductionPlan.PRODUCTIONQTY, RUNTIME=Cur_ProductionPlan.RUNTIME, UPDATED=TO_DATE(NOW()) WHERE MA_WRPhase_ID=Cur_ProductionPlan.MA_WRPHASE_ID
6e1c6d0949SELECT buffers_checkpoint,buffers_clean,buffers_backend,buffers_alloc FROM pg_stat_bgwriter
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
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
85648edf27SELECT 1 FROM ONLY "public"."ad_org" x WHERE "ad_org_id"::pg_catalog.text OPERATOR(pg_catalog.=) $1::pg_catalog.text FOR KEY SHARE OF x
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_productionplan19 GB6401034144060
m_productionplan(TOAST)
etendopg_defaultpg_catalogpg_class3941 MB59355938955853281801657818011325
etendopg_defaultpg_catalogpg_proc2592 MB14307542310677911
pg_proc(TOAST)1881491911
etendopg_defaultprofilelast_stat_database2200 MB939928888
etendopg_defaultpublicma_workrequirement1361 MB173266113508028554530
ma_workrequirement(TOAST)
etendopg_defaultpublicc_orderline908 MB1317522805106
c_orderline(TOAST)
etendopg_defaultprofilelast_stat_tablespaces531 MB339904444
last_stat_tablespaces(TOAST)
postgrespg_defaultpg_catalogpg_class398 MB39223436334117107388107130
etendopg_defaultpublicad_table333 MB60911791179
ad_table(TOAST)
etendopg_defaultpg_catalogpg_attribute282 MB7025674511393832317723177
etendopg_defaultprofilelast_stat_indexes279 MB18633545327485543261529543263
etendopg_defaultpublicm_inoutline262 MB177080227671948668
m_inoutline(TOAST)
etendopg_defaultpublicm_transaction214 MB12101049101
m_transaction(TOAST)
etendopg_defaultprofilelast_stat_tables213 MB186848727382323167137323167162
etendopg_defaultpublicc_orderlinetax189 MB5118106
c_orderlinetax(TOAST)
etendopg_defaultprofilesample_stat_tables186 MB25152406037323789
etendopg_defaultprofilesample_statements137 MB49110143114321431
sample_statements(TOAST)
etendopg_defaultpublicad_textinterfaces_trl136 MB3481893855537
ad_textinterfaces_trl(TOAST)
etendopg_defaultpublicad_image111 MB3349266
ad_image(TOAST)18212518954
etendopg_defaultpublicma_wrphase77 MB311362799416042
ma_wrphase(TOAST)

Top tables by blocks fetched

DBTablespaceSchemaTableHeapIxTOASTTOAST-Ix
Blks%TotalBlks%TotalBlks%TotalBlks%Total
etendopg_defaultprofilelast_stat_tables313432514.421045890.48
etendopg_defaultpublicm_productionplan245087511.2834640.02
etendopg_defaultpg_catalogpg_class10857415.0012424065.72
etendopg_defaultpg_catalogpg_attribute4224771.946148362.83
etendopg_defaultprofilelast_stat_indexes5769332.662073040.95
etendopg_defaultpublicm_inoutline6590273.03400240.18
etendopg_defaultpublicad_image3900.005320.006311352.90149580.07
etendopg_defaultpg_catalogpg_proc4151161.911617450.7422860.0176500.04
etendopg_defaultpg_catalogpg_index1933130.893701951.70
etendopg_defaultpg_catalogpg_type1522040.703266801.50
etendopg_defaultpg_catalogpg_operator2898961.331062560.49
etendopg_defaultpg_catalogpg_cast449230.213165601.46
etendopg_defaultpublicma_workrequirement3146601.45100800.05
etendopg_defaultpublicad_textinterfaces_trl3029131.3990080.04
etendopg_defaultpg_catalogpg_namespace1166050.541304480.60
etendopg_defaultpg_catalogpg_statistic695300.321357340.62147930.07203600.09
etendopg_defaultpg_catalogpg_constraint1450740.67811910.37
etendopg_defaultpg_catalogpg_trigger1461090.67599470.28
etendopg_defaultprofilelast_stat_database1879200.861110.00
etendopg_defaultpg_catalogpg_depend504030.231031090.47

Top tables by blocks read

DBTablespaceSchemaTableHeapIxTOASTTOAST-IxHit(%)
Blks%TotalBlks%TotalBlks%TotalBlks%Total
etendopg_defaultpublicad_image770.0130.0052222576.0680551.1718.03
etendopg_defaultpublicc_orderline178912.612670.0486.79
etendopg_defaultpublicc_orderlinetax96761.413710.0568.00
etendopg_defaultpublicma_wrphase65940.961180.0264.92
etendopg_defaultpublicm_transaction45620.661620.0285.20
etendopg_defaultpublicm_inoutline39450.575980.0999.35
etendopg_defaultpg_catalogpg_attribute19050.285330.0899.76
etendopg_defaultpublicma_weemployee21210.31640.0143.76
etendopg_defaultpublicad_column18690.272060.0388.98
etendopg_defaultpublicad_process_run19480.28740.01150.00250.0095.88
etendopg_defaultprofilesample_stat_tables20270.30140.0096.35
etendopg_defaultpublicman_wr_times16910.25690.0172.40
etendopg_defaultpg_catalogpg_statistic10260.15850.015750.08200.0099.29
etendopg_defaultpublicm_production14190.21360.0171.91
etendopg_defaultpublicad_process_request13550.20210.0093.96
etendopg_defaultpublicad_ref_data_loaded12140.180.00
etendopg_defaultpg_catalogpg_trigger8360.122860.0499.46
etendopg_defaultpublicobtl_tax_parameter10920.1640.00
etendopg_defaultpg_catalogpg_depend8050.121550.0299.37
etendopg_defaultprofilelast_stat_indexes8620.13820.0199.88

Top DML tables

DBTablespaceSchemaTableInsUpdDelUpd(HOT)SeqScanSeqFetIxScanIxFet
etendopg_defaultprofilelast_stat_indexes54326152954326318687394033545327485
etendopg_defaultprofilelast_stat_tables316713732316716218650949084872738232
etendopg_defaultpg_catalogpg_attribute231772317770894612567451139383
etendopg_defaultpg_catalogpg_statistic1190798672129926375348724
pg_statistic(TOAST)12711273783911592
etendopg_defaultprofilelast_stat_user_functions5658599565818386167034
last_stat_user_functions(TOAST)
etendopg_defaultpg_catalogpg_class1801657818011325593517300251593895585328
etendopg_defaultpg_catalogpg_depend4360436092067714233548063
etendopg_defaultprofilesample_stat_tables37323789256890121524060
etendopg_defaultpg_catalogpg_type206620661229197155296147126
etendopg_defaultprofilesample_stat_indexes15291511252770931621638
etendopg_defaultprofilesample_statements14321431495152131101431
sample_statements(TOAST)
postgrespg_defaultpg_catalogpg_attribute121512153779913941185342
postgrespg_globalpg_catalogpg_shdepend67167191560153121587
etendopg_globalpg_catalogpg_shdepend67167191560153121587
etendopg_defaultprofilesample_stat_user_functions5995782510668093578
etendopg_defaultpg_catalogpg_index512512163265187177959204685
postgrespg_defaultpg_catalogpg_class107388107130392210126403436334117
etendopg_defaultpublicma_workrequirement2855453017332745382661135080
ma_workrequirement(TOAST)
etendopg_defaultpublicad_process_run287287735381101308177
ad_process_run(TOAST)51150
postgrespg_defaultpg_catalogpg_depend259259122205624202203

Top tables by updated/deleted tuples

DBTablespaceSchemaTableUpdUpd(HOT)DelVacuumAutoVacuumAnalyzeAutoAnalyze
etendopg_defaultprofilelast_stat_indexes1529354326294723
etendopg_defaultprofilelast_stat_tables37326231671294723
etendopg_defaultpg_catalogpg_attribute23177111
etendopg_defaultpg_catalogpg_statistic1190798672
pg_statistic(TOAST)12733
etendopg_defaultpg_catalogpg_class657813251801111
etendopg_defaultprofilelast_stat_user_functions599185658294723
last_stat_user_functions(TOAST)
etendopg_defaultpg_catalogpg_depend436011
etendopg_defaultprofilesample_stat_tables378912
etendopg_defaultpg_catalogpg_type2066111
etendopg_defaultprofilesample_stat_indexes151112
etendopg_defaultprofilesample_statements143112
sample_statements(TOAST)
postgrespg_defaultpg_catalogpg_attribute1215111
postgrespg_globalpg_catalogpg_shdepend6713
etendopg_globalpg_catalogpg_shdepend6713
etendopg_defaultprofilesample_stat_user_functions57812
etendopg_defaultpublicma_workrequirement554530
ma_workrequirement(TOAST)
etendopg_defaultpg_catalogpg_index512111
postgrespg_defaultpg_catalogpg_class388130107111
postgrespg_defaultpg_catalogpg_statistic4783341
pg_statistic(TOAST)15
etendopg_defaultpublicad_process_run28711
ad_process_run(TOAST)

Top growing tables

DBTablespaceSchemaTableSizeGrowthInsUpdDelUpd(HOT)
etendopg_defaultpublicad_process_run4008 kB232 kB287287
ad_process_run(TOAST)56 kB16 kB5
etendopg_defaultpg_catalogpg_statistic2536 kB32 kB119079867
pg_statistic(TOAST)2128 kB56 kB12711273
etendopg_defaultpublicad_session_usage_audit1864 kB72 kB248
ad_session_usage_audit(TOAST)
etendopg_defaultpublicc_orderline70 MB64 kB106
c_orderline(TOAST)
etendopg_defaultpublicc_orderlinetax38 MB40 kB106
c_orderlinetax(TOAST)
etendopg_defaultpublicad_process_request5432 kB32 kB5285279
ad_process_request(TOAST)
postgrespg_defaultpg_catalogpg_statistic248 kB16 kB478334
pg_statistic(TOAST)64 kB8192 bytes1515
etendopg_defaultpublicm_inoutline15 MB24 kB48668
m_inoutline(TOAST)
etendopg_defaultpublicm_transaction18 MB16 kB49101
m_transaction(TOAST)
etendopg_defaultpublicma_wrphase26 MB16 kB416042
ma_wrphase(TOAST)
etendopg_defaultpg_catalogpg_depend3112 kB8192 bytes43604360
etendopg_defaultpublicm_production5664 kB8192 bytes313131
m_production(TOAST)
etendopg_defaultpublicma_weemployee5648 kB8192 bytes31
etendopg_defaultpublicman_wr_times6752 kB8192 bytes313129
man_wr_times(TOAST)

Top indexes by blocks fetched

DBTablespaceSchemaTableIndexScansBlks%Total
etendopg_defaultpg_catalogpg_classpg_class_oid_index57121411642785.36
etendopg_defaultpg_catalogpg_attributepg_attribute_relid_attnum_index2566085677002.61
etendopg_defaultpg_catalogpg_castpg_cast_source_target_index3133513165591.46
etendopg_defaultpg_catalogpg_typepg_type_oid_index1486123061641.41
etendopg_defaultpg_catalogpg_indexpg_index_indexrelid_index1478583031801.40
etendopg_defaultprofilelast_stat_indexespk_last_stat_indexes335452073040.95
etendopg_defaultpg_catalogpg_statisticpg_statistic_relid_att_inh_index637531357340.62
etendopg_defaultpg_catalogpg_procpg_proc_oid_index634551316740.61
etendopg_defaultpg_catalogpg_namespacepg_namespace_oid_index1045081090590.50
etendopg_defaultprofilelast_stat_tablespk_last_stat_tables84871045890.48
postgrespg_defaultpg_catalogpg_attributepg_attribute_relid_attnum_index39411860250.40
etendopg_defaultpg_catalogpg_dependpg_depend_reference_index33621767780.35
etendopg_defaultpg_catalogpg_constraintpg_constraint_conrelid_index31589660290.30
etendopg_defaultpg_catalogpg_indexpg_index_indrelid_index28888643280.30
etendopg_defaultpg_catalogpg_triggerpg_trigger_tgrelid_tgname_index26891592090.27
etendopg_defaultpg_catalogpg_operatorpg_operator_oprname_l_r_n_index26002574110.26
postgrespg_globalpg_catalogpg_db_role_settingpg_db_role_setting_databaseid_rol_index54204542240.25
etendopg_globalpg_catalogpg_db_role_settingpg_db_role_setting_databaseid_rol_index54092541340.25
etendopg_defaultpg_catalogpg_attributepg_attribute_relid_attnam_index79470170.22
etendopg_defaultpg_catalogpg_operatorpg_operator_oid_index21494462840.21

Top indexes by blocks read

DBTablespaceSchemaTableIndexScansBlk Reads%TotalHits(%)
etendopg_defaultpublicad_image(TOAST)pg_toast_117268_index182180551.1746.15
etendopg_defaultpg_catalogpg_attributepg_attribute_relid_attnum_index2566082930.0499.95
etendopg_defaultpg_catalogpg_triggerpg_trigger_tgrelid_tgname_index268912800.0499.53
etendopg_defaultpublicm_inoutlinem_inoutline_product25232750.0498.82
etendopg_defaultpg_catalogpg_attributepg_attribute_relid_attnam_index792370.0399.50
etendopg_defaultpublicm_inoutlineem_man_wkreq_il_idx24022310.0396.93
etendopg_defaultpg_catalogpg_classpg_class_relname_nsp_index52131450.0299.43
etendopg_defaultpublicma_workrequirementma_workrequirement_key26611400.0298.61
etendopg_defaultpublicc_orderlinetaxc_orderlinetax_derline_tax_un1240.0261.13
etendopg_defaultpublicc_orderlinetaxc_orderlinetax_key1110.0265.20
etendopg_defaultpublicc_orderlinetaxc_orderlinetax_orderline1061090.0282.89
etendopg_defaultpublicc_orderlinec_orderline_key1061080.0283.02
etendopg_defaultpublicman_wr_vocesman_wr_voces_key176970.0188.07
etendopg_defaultpg_catalogpg_statisticpg_statistic_relid_att_inh_index63753850.0199.94
etendopg_defaultpublicad_columnad_column_name2850.0150.29
etendopg_defaultprofilelast_stat_indexespk_last_stat_indexes33545820.0199.96
etendopg_defaultpg_catalogpg_dependpg_depend_reference_index33621790.0199.90
etendopg_defaultpg_catalogpg_dependpg_depend_depender_index8714760.0199.71
etendopg_defaultpg_catalogpg_classpg_class_oid_index571214710.0199.99
etendopg_defaultpublicad_fieldad_field_column482700.0192.81

Top growing indexes

DBTablespaceSchemaTableIndexIndexTable
SizeGrowthInsUpdDel
etendopg_defaultpg_catalogpg_attributepg_attribute_relid_attnam_index1152 kB16 kB2317723177
etendopg_defaultpg_catalogpg_attributepg_attribute_relid_attnum_index752 kB16 kB2317723177
etendopg_defaultpublicad_session_usage_auditad_session_usage_audit_key368 kB16 kB148
etendopg_defaultpg_catalogpg_dependpg_depend_depender_index1696 kB8192 bytes43604360
postgrespg_defaultpg_catalogpg_attributepg_attribute_relid_attnam_index144 kB8192 bytes12151215
etendopg_defaultpublicc_orderlinec_orderline_key6712 kB8192 bytes106
etendopg_defaultpublicc_orderlineem_man_ol_ma_wkreq_id_idx6712 kB8192 bytes106
etendopg_defaultpublicc_orderlinetaxc_orderlinetax_derline_tax_un11 MB8192 bytes106
etendopg_defaultpublicc_orderlinetaxc_orderlinetax_key6712 kB8192 bytes106
etendopg_defaultpublicc_orderlinetaxc_orderlinetax_orderline6712 kB8192 bytes106
etendopg_defaultpublicma_wrphasema_wrphase_key5032 kB8192 bytes4118
etendopg_defaultpublicma_wrphasema_wrphase_workrequirement5032 kB8192 bytes419
etendopg_defaultpublicm_inoutlinem_inoutline_key2232 kB8192 bytes4832
etendopg_defaultpublicm_productionm_production_key1440 kB8192 bytes31
etendopg_defaultpublicm_transactionm_transaction_inoutline2232 kB8192 bytes499
etendopg_defaultpublicman_wr_timesman_wr_times_key1504 kB8192 bytes282
etendopg_defaultpublicman_wr_timesman_wr_times_ma_wkreq_id_idx1504 kB8192 bytes282
etendopg_defaultpublicma_weemployeema_weemployee_production_idx1440 kB8192 bytes31
etendopg_defaultpublicma_weemployeema_weemployee_key1440 kB8192 bytes28
etendopg_defaultpublicc_orderlinec_orderline_product6712 kB8192 bytes

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 kB180152531801
postgrespg_defaultpg_catalogpg_classpg_class_tblspc_relfilenode_index16 kB107258107
etendopg_defaultpublicad_process_runad_process_run_ould_be_killed8192 bytes262262
etendopg_defaultpublicma_weemployeema_weemployee_production_idx1440 kB8192 bytes31

User function statistics

Top functions by total time

DBSchemaFunctionExecutionsTime (s)
TotalSelfMeanMean self
etendoprofiletake_sample2323.800.031.0350.001
etendoprofiletake_sample_subset2323.770.071.0330.003
etendoprofiletake_sample2323.702.531.0300.110
etendoprofilecollect_obj_stats2313.213.970.5740.173
etendoprofiledblink62110.5510.550.0170.017
etendopublicman_get_costotoal_mats_wk4867.897.850.0160.016
etendopublicman_get_benefit_wk3856.340.030.0160.000
etendoprofilesample_dbobj_delta235.795.790.2520.252
etendopublicequal22680624.581.560.0000.000
etendopublicto_number22685043.023.020.0000.000
etendopublicma_workeffort_validate312.160.130.0700.004
etendopublicad_column_identifier27601.081.070.0000.000
etendoprofilecollect_pg_stat_statements_stats230.980.510.0430.022
etendoprofiledblink_connect690.320.320.0050.005
etendopublicobequals2922600.280.280.0000.000
etendopublicm_inout_post050.250.000.0510.000
etendopublicm_inout_post60.250.120.0420.020
etendopublicc_gettax1060.160.000.0020.000
etendopublicc_gettax1060.160.000.0020.000
etendopublicc_gettax1060.160.000.0020.000

Top functions by executions

DBSchemaFunctionExecutionsTime (s)
TotalSelfMeanMean self
etendopublicto_number22685043.023.020.0000.000
etendopublicequal22680624.581.560.0000.000
etendopublicobequals2922600.280.280.0000.000
etendopublicto_char73210.020.020.0000.000
etendopublicto_char44040.010.010.0000.000
etendopublicadd_days29230.000.000.0000.000
etendopublicad_column_identifier27601.081.070.0000.000
etendopublicad_istriggerenabled26530.060.060.0000.000
etendopublicad_isorgincluded26000.050.050.0000.000
etendopublicto_date16620.020.020.0000.000
etendopublicuuid_generate_v414550.010.010.0000.000
etendopublicround9500.000.000.0000.000
etendoprofiledblink62110.5510.550.0170.017
etendopublicman_get_import_voz5510.040.040.0000.000
etendopublicman_get_costotoal_mats_wk4867.897.850.0160.016
etendopublicman_get_costot_vocesorder_wk4660.020.020.0000.000
etendopublicman_get_costotoalwokrefortwk4470.080.080.0000.000
etendopublicman_get_benefit_wk3856.340.030.0160.000
etendopublicget_uuid3730.020.010.0000.000
etendopublicc_currency_convert_precision2600.000.000.0000.000

Top trigger functions by total time

DBSchemaFunctionExecutionsTime (s)
TotalSelfMeanMean self
etendopublicman_ma_wrphase_trg1013.330.030.0330.000
etendopublicman_wr_voces_trg1161.960.030.0170.000
etendopublicman_orderline_after_trg1061.770.020.0170.000
etendopublicman_wr_times_trg621.110.010.0180.000
etendopublicc_orderline_trg21060.200.060.0020.001
etendopublicm_inoutline_trg1140.110.040.0010.000
etendopublicm_transaction_trg600.050.020.0010.000
etendopublicc_orderlinetax_trg1060.040.020.0000.000
etendopublicad_process_request_trg2900.030.020.0000.000
etendopublicintr_m_inoutline_trg1140.030.010.0000.000
etendopublicintr_c_orderline_trg1060.020.010.0000.000
etendopublicma_wrphase_trg1010.020.020.0000.000
etendopublicc_orderline_trg1060.020.020.0000.000
etendopublicm_ioline_chk_restrictions_trg1140.020.010.0000.000
etendopublicm_storage_detail_trg1560.010.010.0000.000
etendopublicc_orderline2_trg1060.010.010.0000.000
etendopublicc_ordertax_trg1060.010.010.0000.000
etendopublicm_productionline_trg20.010.000.0050.002
etendopublicm_transaction_trg2490.010.010.0000.000
etendopublicc_order_chk_restrinctions_trg1320.010.000.0000.000

Vacuum-related statistics

Top tables by vacuum operations

DBTablespaceSchemaTableVacuum countAutovacuum countInsUpdDelUpd(HOT)
etendopg_defaultprofilelast_stat_tables293167137323167162
etendopg_defaultprofilelast_stat_indexes29543261529543263
etendopg_defaultprofilelast_stat_user_functions295658599565818
etendopg_defaultpg_catalogpg_statistic2119079867
postgrespg_defaultpg_catalogpg_type1157157
postgrespg_defaultpg_catalogpg_attribute112151215
postgrespg_defaultpg_catalogpg_class1107388107130
postgrespg_defaultpg_catalogpg_statistic1478334
etendopg_defaultpg_catalogpg_type120662066
etendopg_defaultpg_catalogpg_attribute12317723177
etendopg_defaultpg_catalogpg_class11801657818011325
etendopg_defaultpg_catalogpg_index1512512
etendopg_defaultprofilelast_stat_database18888

Top tables by analyze operations

DBTablespaceSchemaTableAnalyze countAutoanalyze countInsUpdDelUpd(HOT)
etendopg_defaultprofilelast_stat_tables47233167137323167162
etendopg_defaultprofilelast_stat_indexes4723543261529543263
etendopg_defaultprofilelast_stat_user_functions47235658599565818
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_shdescription3
postgrespg_globalpg_catalogpg_db_role_setting3
postgrespg_globalpg_catalogpg_replication_origin3
postgrespg_globalpg_catalogpg_subscription3
etendopg_globalpg_catalogpg_pltemplate3
etendopg_globalpg_catalogpg_tablespace3
etendopg_globalpg_catalogpg_shdepend3671671
etendopg_globalpg_catalogpg_auth_members3
etendopg_globalpg_catalogpg_database3
etendopg_globalpg_catalogpg_shdescription3
etendopg_globalpg_catalogpg_db_role_setting3

Top indexes by estimated vacuum load

DBTablespaceSchemaTableIndex~Vacuum bytesVacuum cntAutovacuum cntIX sizeRelsize
etendopg_defaultprofilelast_stat_indexespk_last_stat_indexes12 MB29413 kB1542 kB
etendopg_defaultprofilelast_stat_tablespk_last_stat_tables6040 kB29206 kB1178 kB
etendopg_defaultpg_catalogpg_attributepg_attribute_relid_attnam_index1152 kB11152 kB4112 kB
etendopg_defaultpg_catalogpg_attributepg_attribute_relid_attnum_index752 kB1752 kB4112 kB
etendopg_defaultpg_catalogpg_statisticpg_statistic_relid_att_inh_index432 kB2216 kB2820 kB
etendopg_defaultpg_catalogpg_typepg_type_typname_nsp_index184 kB1184 kB488 kB
etendopg_defaultpg_catalogpg_classpg_class_relname_nsp_index184 kB1184 kB680 kB
etendopg_defaultpg_catalogpg_statistic(TOAST)pg_toast_2619_index152 kB352 kB2100 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_index88 kB188 kB488 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.

DBSchemaTableLiveDead%DeadLast AVSize
etendopublicad_process_request4730805432 kB

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.

DBSchemaTableLiveDeadMod%ModLast AASize
etendopublicad_process_request473082002026-05-12 12:12:32.032373+025432 kB

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-13 02:00:03.757252+02
pg_conf_load_time2026-07-14 02:00:04.136929+022026-07-14 03:00:02+02
pg_postmaster_start_time2026-07-13 02:00:03.861944+02
pg_postmaster_start_time2026-07-14 02:00:04.238903+022026-07-14 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