pg_profile version 0.3.6
Server name: local
Report interval: 2026-07-16 04:00:01+02 - 2026-07-17 03:00:01+02
Warning!Report includes 23 sample(s) with setting pg_stat_statements.track = all.Value of %Total columns may be incorrect.
| Database | Transactions | Block statistics | Tuples | Temp files | Size | Growth | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Commits | Rollbacks | Deadlocks | Hit(%) | Read | Hit | Ret | Fet | Ins | Upd | Del | Size | Files | |||
| etendo | 201701 | 24 | 99.56 | 508282 | 113973239 | 345671805 | 21980572 | 669953 | 322759 | 432423 | 2856 MB | -2808 kB | |||
| postgres | 11867 | 99.84 | 1155 | 703024 | 1985063 | 365319 | 2012 | 866 | 1772 | 6431 kB | |||||
| Total | 213568 | 24 | 99.56 | 509437 | 114676263 | 347656868 | 22345891 | 671965 | 323625 | 434195 | 2862 MB | -2808 kB | |||
| Database | Calls | Time (s) | Fetched (blk) | Dirtied (blk) | Temp (blk) | Local (blk) | Statements | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Exec | Read | Write | Trg | Shared | Local | Shared | Local | Read | Write | Read | Write | |||
| etendo | 5102942 | 587.44 | 46.67 | 71895771 | 50313039 | 203863 | 2423 | 2438 | 16281 | |||||
| postgres | 5619 | 13.00 | 127410 | 223 | 349 | |||||||||
| template1 | 6346 | 8.99 | 47949 | 235 | 278 | |||||||||
| Total | 5114907 | 609.43 | 46.67 | 72071130 | 50313039 | 204321 | 2423 | 2438 | 16908 | |||||
| Metric | Value |
|---|---|
| Scheduled checkpoints | 275 |
| Requested checkpoints | 1 |
| Checkpoint write time (s) | 9346.17 |
| Checkpoint sync time (s) | 4.25 |
| Checkpoints buffers written | 114627 |
| Background buffers written | |
| Backend buffers written | 142814 |
| Backend fsync count | |
| Bgwriter interrupts (too many buffers) | |
| Number of buffers allocated | 503618 |
| WAL generated | 3687 MB |
| WAL segments archived | |
| WAL segments archive failed |
| Tablespace | Path | Size | Growth |
|---|---|---|---|
| pg_default | 2876 MB | -2816 kB | |
| pg_global | 542 kB |
| Query ID | Database | Exec (s) | %Total | Rows | Execution times (ms) | Executions | |||
|---|---|---|---|---|---|---|---|---|---|
| Mean | Min | Max | StdErr | ||||||
[948be82f] | etendo | 131.67 | 21.61 | 131670.074 | 131670.074 | 131670.074 | 1 | ||
[f410d7e7] | etendo | 78.12 | 12.82 | 288258 | 0.271 | 0.132 | 7.648 | 0.095 | 288258 |
[ca2988bd] | etendo | 47.48 | 7.79 | 1102 | 730.411 | 123.890 | 1196.977 | 335.344 | 65 |
[cd9c0fd2] | etendo | 33.50 | 5.50 | 13479 | 33504.380 | 33504.380 | 33504.380 | 1 | |
[5048ce93] | etendo | 19.92 | 3.27 | 15675 | 1.098 | 0.961 | 9.266 | 0.234 | 18142 |
[2d9f0a32] | etendo | 17.59 | 2.89 | 62994 | 0.279 | 0.007 | 6.203 | 0.150 | 62994 |
[47df1ade] | etendo | 16.58 | 2.72 | 23 | 720.918 | 658.164 | 988.150 | 84.215 | 23 |
[eb812a48] | etendo | 16.58 | 2.72 | 720.707 | 657.787 | 987.987 | 84.231 | 23 | |
[10010380] | etendo | 13.14 | 2.16 | 50400 | 0.261 | 0.007 | 8.916 | 0.141 | 50400 |
[1c4d8fed] | etendo | 9.94 | 1.63 | 2507 | 3.964 | 1.651 | 15.404 | 1.457 | 2507 |
[66c83919] | etendo | 8.54 | 1.40 | 1901267 | 8538.407 | 8538.407 | 8538.407 | 1 | |
[411377d4] | etendo | 6.43 | 1.05 | 18142 | 0.352 | 0.314 | 3.504 | 0.083 | 18286 |
[754ab419] | etendo | 6.30 | 1.03 | 12597 | 0.500 | 0.148 | 4.588 | 0.167 | 12597 |
[d34207c3] | etendo | 6.20 | 1.02 | 253552 | 0.021 | 0.005 | 2.761 | 0.012 | 289256 |
[c6452b42] | etendo | 5.31 | 0.87 | 25193 | 0.211 | 0.003 | 6.283 | 0.122 | 25194 |
[91a7becf] | etendo | 5.26 | 0.86 | 25225 | 0.209 | 0.007 | 1.666 | 0.123 | 25225 |
[9568025a] | etendo | 5.25 | 0.86 | 25216 | 0.208 | 0.007 | 4.678 | 0.127 | 25216 |
[7318d810] | etendo | 5.21 | 0.85 | 674433 | 5208.529 | 5208.529 | 5208.529 | 1 | |
[de5cc8a] | etendo | 4.97 | 0.82 | 1260098 | 0.003 | 0.002 | 2.161 | 0.003 | 1900243 |
[92946197] | etendo | 4.65 | 0.76 | 950 | 202.119 | 191.309 | 223.480 | 7.390 | 23 |
| Query ID | Database | Executions | %Total | Rows | Mean(ms) | Min(ms) | Max(ms) | StdErr(ms) | Elapsed(s) |
|---|---|---|---|---|---|---|---|---|---|
[de5cc8a] | etendo | 1900243 | 37.15 | 1260098 | 0.003 | 0.002 | 2.161 | 0.003 | 5.0 |
[b7edb1a4] | etendo | 289601 | 5.66 | 289601 | 0.010 | 0.007 | 0.469 | 0.005 | 2.9 |
[4ed26d58] | etendo | 289262 | 5.66 | 31202 | 0.010 | 0.006 | 2.394 | 0.007 | 3.0 |
[d34207c3] | etendo | 289256 | 5.66 | 253552 | 0.021 | 0.005 | 2.761 | 0.012 | 6.2 |
[f410d7e7] | etendo | 288258 | 5.64 | 288258 | 0.271 | 0.132 | 7.648 | 0.095 | 78.1 |
[39cec726] | etendo | 256405 | 5.01 | 256405 | 0.009 | 0.007 | 0.478 | 0.004 | 2.4 |
[9cb9259b] | etendo | 162886 | 3.18 | 162886 | 0.018 | 0.012 | 1.927 | 0.009 | 2.9 |
[a00bdbff] | etendo | 118969 | 2.33 | 0.007 | 0.004 | 1.085 | 0.004 | 0.8 | |
[5a0bb3c] | etendo | 100664 | 1.97 | 100664 | 0.003 | 0.002 | 0.284 | 0.002 | 0.3 |
[3dd6e0f1] | etendo | 63365 | 1.24 | 63365 | 0.005 | 0.003 | 0.558 | 0.005 | 0.3 |
[2d9f0a32] | etendo | 62994 | 1.23 | 62994 | 0.279 | 0.007 | 6.203 | 0.150 | 17.6 |
[381eb299] | etendo | 53324 | 1.04 | 53324 | 0.014 | 0.010 | 0.325 | 0.005 | 0.7 |
[8593c304] | etendo | 50500 | 0.99 | 50500 | 0.005 | 0.003 | 0.614 | 0.007 | 0.2 |
[10010380] | etendo | 50400 | 0.99 | 50400 | 0.261 | 0.007 | 8.916 | 0.141 | 13.1 |
[2f2197e3] | etendo | 49312 | 0.96 | 30751 | 0.013 | 0.006 | 0.401 | 0.009 | 0.7 |
[c1b84187] | etendo | 47168 | 0.92 | 343750 | 0.041 | 0.014 | 0.901 | 0.039 | 1.9 |
[25ee072c] | etendo | 33402 | 0.65 | 33401 | 0.020 | 0.011 | 0.355 | 0.008 | 0.7 |
[af192082] | etendo | 31371 | 0.61 | 31371 | 0.002 | 0.002 | 0.089 | 0.002 | 0.1 |
[3427f07b] | etendo | 25347 | 0.50 | 25347 | 0.005 | 0.003 | 0.792 | 0.006 | 0.1 |
[c07a3787] | etendo | 25270 | 0.49 | 25270 | 0.005 | 0.003 | 0.224 | 0.004 | 0.1 |
| Query ID | Database | blks fetched | %Total | Hits(%) | Elapsed(s) | Rows | Executions |
|---|---|---|---|---|---|---|---|
[ca2988bd] | etendo | 10806787 | 14.99 | 100.00 | 47.5 | 1102 | 65 |
[f410d7e7] | etendo | 9546799 | 13.25 | 99.97 | 78.1 | 288258 | 288258 |
[5048ce93] | etendo | 6077570 | 8.43 | 100.00 | 19.9 | 15675 | 18142 |
[47df1ade] | etendo | 4676291 | 6.49 | 99.98 | 16.6 | 23 | 23 |
[eb812a48] | etendo | 4676153 | 6.49 | 99.98 | 16.6 | 23 | |
[948be82f] | etendo | 3041977 | 4.22 | 84.23 | 131.7 | 1 | |
[303fdc1e] | etendo | 2198998 | 3.05 | 100.00 | 1.2 | 2222 | 23 |
[411377d4] | etendo | 2188012 | 3.04 | 99.99 | 6.4 | 18142 | 18286 |
[de5cc8a] | etendo | 1900243 | 2.64 | 100.00 | 5.0 | 1260098 | 1900243 |
[92946197] | etendo | 1636249 | 2.27 | 99.97 | 4.6 | 950 | 23 |
[22217272] | etendo | 1618119 | 2.25 | 100.00 | 2.1 | 51037 | 23 |
[c0534667] | etendo | 1464507 | 2.03 | 100.00 | 3.9 | 3 | 3 |
[b8952a6a] | etendo | 1439698 | 2.00 | 100.00 | 2.2 | 7332 | 1222 |
[ad3afc69] | etendo | 1327168 | 1.84 | 100.00 | 4.3 | 949134 | 2608 |
[b7edb1a4] | etendo | 908210 | 1.26 | 100.00 | 2.9 | 289601 | 289601 |
[4ed26d58] | etendo | 906465 | 1.26 | 100.00 | 3.0 | 31202 | 289262 |
[d34207c3] | etendo | 831121 | 1.15 | 100.00 | 6.2 | 253552 | 289256 |
[39cec726] | etendo | 776450 | 1.08 | 100.00 | 2.4 | 256405 | 256405 |
[37eecc4] | etendo | 761145 | 1.06 | 100.00 | 4.4 | 2 | 506 |
[6d193752] | etendo | 634848 | 0.88 | 100.00 | 2.0 | 25496 | 19 |
| Query ID | Database | Reads | %Total | Hits(%) | Elapsed(s) | Rows | Executions |
|---|---|---|---|---|---|---|---|
[948be82f] | etendo | 479608 | 93.94 | 84.23 | 131.7 | 1 | |
[4f2bfd2e] | etendo | 3235 | 0.63 | 98.87 | 0.9 | 12 | 5 |
[f410d7e7] | etendo | 2461 | 0.48 | 99.97 | 78.1 | 288258 | 288258 |
[b54ea3e2] | etendo | 2394 | 0.47 | 98.89 | 1.3 | 34 | |
[7eea2aca] | etendo | 1923 | 0.38 | 97.85 | 0.2 | 9008 | 9008 |
[b7b6a128] | etendo | 1491 | 0.29 | 87.91 | 0.1 | 1331 | 1331 |
[4ec9dd54] | etendo | 1302 | 0.26 | 92.09 | 0.4 | 20 | 20 |
[948be82f] | template1 | 975 | 0.19 | 97.61 | 2.8 | 1 | |
[47df1ade] | etendo | 961 | 0.19 | 99.98 | 16.6 | 23 | 23 |
[eb812a48] | etendo | 961 | 0.19 | 99.98 | 16.6 | 23 | |
[948be82f] | postgres | 941 | 0.18 | 97.68 | 3.1 | 1 | |
[532de794] | etendo | 665 | 0.13 | 98.52 | 0.6 | 1602 | 1602 |
[a3acbb25] | etendo | 549 | 0.11 | 94.99 | 0.1 | 8 | |
[43f0ca83] | etendo | 542 | 0.11 | 93.42 | 0.0 | 410 | 410 |
[92946197] | etendo | 497 | 0.10 | 99.97 | 4.6 | 950 | 23 |
[bdc0f458] | etendo | 371 | 0.07 | 99.69 | 0.3 | 8979 | 6 |
[313e71e6] | etendo | 337 | 0.07 | 75.51 | 0.0 | 4 | 4 |
[7e6ec72b] | etendo | 303 | 0.06 | 99.67 | 0.4 | 29890 | 22665 |
[15eb0b0] | etendo | 242 | 0.05 | 97.28 | 0.1 | 1266 | 1266 |
[96b90f61] | etendo | 241 | 0.05 | 97.15 | 0.0 | 2110 | 2110 |
| Query ID | Database | Dirtied | %Total | Hits(%) | Elapsed(s) | Rows | Executions |
|---|---|---|---|---|---|---|---|
[f410d7e7] | etendo | 68569 | 33.56 | 99.97 | 78.1 | 288258 | 288258 |
[948be82f] | etendo | 62873 | 30.77 | 84.23 | 131.7 | 1 | |
[47df1ade] | etendo | 15962 | 7.81 | 99.98 | 16.6 | 23 | 23 |
[eb812a48] | etendo | 15962 | 7.81 | 99.98 | 16.6 | 23 | |
[3b0e4e8a] | etendo | 4193 | 2.05 | 99.96 | 3.5 | 54119 | 46 |
[a0544a5f] | etendo | 3221 | 1.58 | 99.96 | 3.7 | 32888 | 46 |
[532de794] | etendo | 2391 | 1.17 | 98.52 | 0.6 | 1602 | 1602 |
[59d1e156] | etendo | 1849 | 0.90 | 99.53 | 0.9 | 23 | 23 |
[b7b6a128] | etendo | 1626 | 0.80 | 87.91 | 0.1 | 1331 | 1331 |
[d2f1c69a] | etendo | 1570 | 0.77 | 99.40 | 0.1 | 304 | 304 |
[4ec9dd54] | etendo | 1386 | 0.68 | 92.09 | 0.4 | 20 | 20 |
[76ede534] | etendo | 1292 | 0.63 | 99.79 | 0.1 | 1 | |
[423e83ff] | etendo | 1277 | 0.62 | 98.90 | 0.1 | 1 | |
[d422fd3a] | etendo | 1006 | 0.49 | 100.00 | 0.7 | 44 | |
[6f2d0383] | etendo | 825 | 0.40 | 99.99 | 0.3 | 1340 | 1340 |
[b26b8c5c] | etendo | 500 | 0.24 | 99.08 | 0.1 | 504 | 504 |
[a3318de1] | etendo | 412 | 0.20 | 99.88 | 0.1 | 2361 | 17 |
[f6f43f8d] | etendo | 395 | 0.19 | 100.00 | 0.0 | 30589 | 13 |
[2616291e] | etendo | 380 | 0.19 | 99.94 | 0.2 | 5744 | 32 |
[7e502be6] | etendo | 358 | 0.18 | 99.97 | 0.4 | 32 |
| Query ID | Database | Written | %Total | %BackendW | Hits(%) | Elapsed(s) | Rows | Executions |
|---|---|---|---|---|---|---|---|---|
[948be82f] | etendo | 58425 | 22.69 | 40.91 | 84.23 | 131.7 | 1 | |
[948be82f] | template1 | 55 | 0.02 | 0.04 | 97.61 | 2.8 | 1 | |
[948be82f] | postgres | 55 | 0.02 | 0.04 | 97.68 | 3.1 | 1 |
| Query ID | Database | Local fetched | Hits(%) | Local (blk) | Temp (blk) | Elapsed(s) | Rows | Executions | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Write | %Total | Read | %Total | Write | %Total | Read | %Total | |||||||
[3dd6e0f1] | etendo | 64931 | 99.19 | 525 | 21.53 | 0.3 | 63365 | 63365 | ||||||
[8593c304] | etendo | 51751 | 99.19 | 420 | 17.23 | 0.2 | 50500 | 50500 | ||||||
[3427f07b] | etendo | 25977 | 99.18 | 213 | 8.74 | 0.1 | 25347 | 25347 | ||||||
[c07a3787] | etendo | 25894 | 99.19 | 211 | 8.65 | 0.1 | 25270 | 25270 | ||||||
[e0507c7b] | etendo | 25818 | 99.18 | 211 | 8.65 | 0.1 | 25194 | 25194 | ||||||
[61d99bdd] | etendo | 13126 | 99.18 | 108 | 4.43 | 0.1 | 12811 | 12811 | ||||||
[d2326a4] | etendo | 12924 | 99.17 | 107 | 4.39 | 0.1 | 12612 | 12612 | ||||||
[2aa6d467] | etendo | 12932 | 99.17 | 107 | 4.39 | 0.1 | 12620 | 12620 | ||||||
[334a4ee5] | etendo | 13010 | 99.18 | 107 | 4.39 | 0.1 | 12698 | 12698 | ||||||
[c3367c88] | etendo | 12926 | 99.17 | 107 | 4.39 | 0.1 | 12614 | 12614 | ||||||
[e3e1fb4c] | etendo | 12911 | 99.17 | 107 | 4.39 | 0.1 | 12599 | 12599 | ||||||
[ff0ffbbc] | etendo | 12996 | 99.18 | 107 | 4.39 | 0.1 | 12684 | 12684 | ||||||
[a8fa8b7f] | etendo | 12909 | 99.19 | 104 | 4.27 | 0.1 | 12597 | 12597 | ||||||
[1e99af1b] | etendo | 1 | 1 | 0.04 | 0.0 | 1 | 1 | |||||||
[46d460c2] | etendo | 56 | 98.21 | 1 | 0.04 | 0.0 | 56 | 56 | ||||||
[86dedc92] | etendo | 86 | 98.84 | 1 | 0.04 | 0.0 | 86 | 86 | ||||||
[dc5467f4] | etendo | 7 | 85.71 | 1 | 0.04 | 0.0 | 7 | 7 | ||||||
| QueryID | Query Text |
|---|---|
| cb9c289625 | SELECT APRM_ISPAYMENTCONFIRMED($1,$2) AS RESULT FROM DUAL |
| 7c49e0fca3 | select 1 as id from dual where exists ( select 1 from ( SELECT a.DateAcct as dateacct FROM M_InOut a WHERE a.ad_client_id = $1 AND a.ad_org_id in ('0', '1000003', 'E5C644C994CA4E6DB384AF0325704F1E', '1000002') AND a.posted = 'N' AND a.processed = 'Y' AND (a.processing = 'N' OR a.processing IS NULL) AND EXISTS ( SELECT 1 FROM c_period p WHERE a.DateAcct >= p.StartDate AND a.DateAcct < p.EndDate + 1 AND EXISTS ( SELECT 1 FROM c_periodcontrol pc WHERE pc.c_period_id = p.c_period_id AND ad_org_getperiodcontrolallow(a.ad_org_id) = pc.ad_org_id AND pc.docbasetype = $2 AND pc.periodstatus = 'O' ) )) b where 1=1 ) |
| 891e82e5c1 | SELECT $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 |
| 879611f3e6 | insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4) |
| c9e2eb425b | SELECT LEVELNO FROM AD_ORG_TREE WHERE AD_ORG_ID = p_orgid AND AD_PARENT_ORG_ID = p_parentorgid AND AD_CLIENT_ID = p_clientid |
| bc36ffa2de | delete from ad_context_info |
| 1d911b5cd9 | select 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 |
| ecb9fef4c4 | insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4) |
| 5fa24dc926 | SELECT 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) |
| ffadc5ac47 | SELECT 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 |
| 65758f3c61 | INSERT 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 ) |
| b3159008fe | insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4) |
| 9166c19b70 | delete from ad_context_info |
| ebd66f2e50 | select financialm0_.C_Settlement_Generate_ID as C_Settl11_218_1_, financialm0_.C_Debt_Payment_ID as C_Debt_P1_218_1_, financialm0_.C_Debt_Payment_ID as C_Debt_P1_218_0_, financialm0_.AD_Client_ID as AD_Clien2_218_0_, financialm0_.AD_Org_ID as AD_Org_I3_218_0_, financialm0_.IsActive as IsActive4_218_0_, financialm0_.Created as Created5_218_0_, financialm0_.CreatedBy as CreatedB6_218_0_, financialm0_.Updated as Updated7_218_0_, financialm0_.UpdatedBy as UpdatedB8_218_0_, financialm0_.IsReceipt as IsReceip9_218_0_, financialm0_.C_Settlement_Cancel_ID as C_Settl10_218_0_, financialm0_.C_Settlement_Generate_ID as C_Settl11_218_0_, financialm0_.Description as Descrip12_218_0_, financialm0_.C_Invoice_ID as C_Invoi13_218_0_, financialm0_.C_BPartner_ID as C_BPart14_218_0_, financialm0_.C_Currency_ID as C_Curre15_218_0_, financialm0_.C_CashLine_ID as C_CashL16_218_0_, financialm0_.C_BankAccount_ID as C_BankA17_218_0_, financialm0_.C_CashBook_ID as C_CashB18_218_0_, financialm0_.PaymentRule as Payment19_218_0_, financialm0_.IsPaid as IsPaid20_218_0_, financialm0_.Amount as Amount21_218_0_, financialm0_.WriteOffAmt as WriteOf22_218_0_, financialm0_.Dateplanned as Datepla23_218_0_, financialm0_.IsManual as IsManua24_218_0_, financialm0_.IsValid as IsValid25_218_0_, financialm0_.C_BankStatementLine_ID as C_BankS26_218_0_, financialm0_.Changesettlementcancel as Changes27_218_0_, financialm0_.Cancel_Processed as Cancel_28_218_0_, financialm0_.Generate_Processed as Generat29_218_0_, financialm0_.GLItemAmt as GLItemA30_218_0_, financialm0_.Isdirectposting as Isdirec31_218_0_, financialm0_.C_Glitem_ID as C_Glite32_218_0_, financialm0_.C_Order_ID as C_Order33_218_0_, financialm0_.C_Project_ID as C_Proje34_218_0_, financialm0_.IsAutomaticGenerated as IsAutom35_218_0_, financialm0_.Status as Status36_218_0_, financialm0_.Status_Initial as Status_37_218_0_, financialm0_.C_Withholding_ID as C_Withh38_218_0_, financialm0_.Withholdingamount as Withhol39_218_0_ from C_Debt_Payment financialm0_ where financialm0_.C_Settlement_Generate_ID=$1 |
| 58d3d7b94c | UPDATE 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) |
| ec2a223d8f | select advcrmacti0_.Advcrm_Activity_ID as Advcrm_A9_143_1_, advcrmacti0_.Advcrm_Activity_Related_ID as Advcrm_A1_143_1_, advcrmacti0_.Advcrm_Activity_Related_ID as Advcrm_A1_143_0_, advcrmacti0_.AD_Client_ID as AD_Clien2_143_0_, advcrmacti0_.AD_Org_ID as AD_Org_I3_143_0_, advcrmacti0_.Created as Created4_143_0_, advcrmacti0_.Createdby as Createdb5_143_0_, advcrmacti0_.Updated as Updated6_143_0_, advcrmacti0_.Updatedby as Updatedb7_143_0_, advcrmacti0_.Isactive as Isactive8_143_0_, advcrmacti0_.Advcrm_Activity_ID as Advcrm_A9_143_0_, advcrmacti0_.Related_To as Related10_143_0_, advcrmacti0_.C_Bpartner_ID as C_Bpart11_143_0_, advcrmacti0_.C_Order_ID as C_Order12_143_0_, advcrmacti0_.C_Invoice_ID as C_Invoi13_143_0_, advcrmacti0_.C_Project_ID as C_Proje14_143_0_, advcrmacti0_.M_Product_ID as M_Produ15_143_0_, advcrmacti0_.Advcrm_Opportunity_ID as Advcrm_16_143_0_, advcrmacti0_.Advcrm_Lead_ID as Advcrm_17_143_0_, advcrmacti0_.EM_Psat_Request_ID as EM_Psat18_143_0_, advcrmacti0_.Quotation_ID as Quotati19_143_0_ from advcrm_activity_related advcrmacti0_ where advcrmacti0_.Advcrm_Activity_ID=$1 |
| 638f3e98f1 | insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4) |
| e98333ebd8 | insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4) |
| 5c208ba241 | SELECT 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 |
| 9ea37f4950 | select max(this_.Lastpayment) as y0_ from FIN_Payment_Sched_Inv_V this_ where this_.C_Invoice_ID=$1 and this_.Isactive=$2 limit $3 |
| fdd1193fad | INSERT 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 ) |
| cb01d0ae5c | insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4) |
| 9c83facac5 | select this_.Psat_Activity_Materials_ID as Psat_Act1_723_0_, this_.AD_Client_ID as AD_Clien2_723_0_, this_.AD_Org_ID as AD_Org_I3_723_0_, this_.Isactive as Isactive4_723_0_, this_.Created as Created5_723_0_, this_.Createdby as Createdb6_723_0_, this_.Updated as Updated7_723_0_, this_.Updatedby as Updatedb8_723_0_, this_.Advcrm_Activity_ID as Advcrm_A9_723_0_, this_.M_Product_ID as M_Produ10_723_0_, this_.Estimatedqty as Estimat11_723_0_, this_.Invoiceable as Invoice12_723_0_, this_.Generaterequisition as Generat13_723_0_, this_.M_Requisition_ID as M_Requi14_723_0_, this_.C_Orderline_ID as C_Order15_723_0_ from psat_activity_materials this_ where this_.Advcrm_Activity_ID=$1 and this_.Isactive=$2 |
| 9b16673e73 | vacuum analyze AD_Process_Run |
| 6951a2f5d4 | SELECT CASE WHEN MIN(a.suma) = $2 THEN $3 ELSE ROUND(COALESCE(SUM(ABS(inv.qtyinvoiced)), $4)/MIN(a.suma) * $5, $6) END FROM m_inoutline minline JOIN c_invoiceline inv on minline.m_inoutline_id=inv.m_inoutline_id, (SELECT COALESCE(SUM(ABS(g.movementqty)), $7) AS suma FROM m_inoutline g WHERE g.m_inout_id =p_minoutid ) a WHERE minline.m_inout_id=p_minoutid AND EXISTS (SELECT $8 FROM c_invoice i WHERE i.c_invoice_id = inv.c_invoice_id AND i.processed = $9 AND i.docstatus <> $10 AND i.docstatus <> $11 AND i.docstatus <> $12) |
| 8c0c233a5c | insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4) |
| 0c133f89fa | SELECT profile.take_sample() |
| cbb0d2e65e | insert into advcrm_activity (AD_Client_ID, AD_Org_ID, Created, Createdby, Updated, Updatedby, Isactive, Type_Activity, Name, Date_Start, Date_End, Status, AD_User_ID, Duration_Hours, Direction_Call, Visibility, Priority, Isallday, Istemplate, EM_Psat_Activity_Category_ID, EM_Psat_Request_ID, EM_Advcrm1_Newso, EM_Psat_Add_Consumption, EM_Psat_Lineno, em_psat_create_order, EM_Psat_Addmaterials, EM_Psat_Checklist_ID, EM_Psat_Invoicerule, EM_Psat_Finish_Activity, Advcrm_Activity_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) |
| 0c13a0abe2 | select finpayment0_.C_Invoice_ID as C_Invoic8_373_1_, finpayment0_.Fin_Payment_Schedule_ID as Fin_Paym1_373_1_, finpayment0_.Fin_Payment_Schedule_ID as Fin_Paym1_373_0_, finpayment0_.AD_Client_ID as AD_Clien2_373_0_, finpayment0_.AD_Org_ID as AD_Org_I3_373_0_, finpayment0_.Created as Created4_373_0_, finpayment0_.Createdby as Createdb5_373_0_, finpayment0_.Updated as Updated6_373_0_, finpayment0_.Updatedby as Updatedb7_373_0_, finpayment0_.C_Invoice_ID as C_Invoic8_373_0_, finpayment0_.C_Order_ID as C_Order_9_373_0_, finpayment0_.Duedate as Duedate10_373_0_, finpayment0_.Fin_Paymentmethod_ID as Fin_Pay11_373_0_, finpayment0_.C_Currency_ID as C_Curre12_373_0_, finpayment0_.Amount as Amount13_373_0_, finpayment0_.Paidamt as Paidamt14_373_0_, finpayment0_.Outstandingamt as Outstan15_373_0_, finpayment0_.Isactive as Isactiv16_373_0_, finpayment0_.FIN_Payment_Priority_ID as FIN_Pay17_373_0_, finpayment0_.Update_Payment_Plan as Update_18_373_0_, finpayment0_.OrigDueDate as OrigDue19_373_0_, finpayment0_.Description as Descrip20_373_0_, finpayment0_.EM_Aprm_Modif_Paym_Sched as EM_Aprm21_373_0_, finpayment0_.EM_Aprm_Modif_Paym_Out_Sched as EM_Aprm22_373_0_, finpayment0_.ExpectedDate as Expecte23_373_0_ from FIN_Payment_Schedule finpayment0_ where finpayment0_.C_Invoice_ID=$1 |
| f8cc1c12b0 | select --REQUEST psat_request.description as reqdesc, psat_request.requestdate, --ACTIVITY coalesce(advcrm_activity.em_psat_activity_num,psat_request.documentno) as documentno, advcrm_activity.type_activity, advcrm_activity.name as actname, advcrm_activity.description as actdesc, advcrm_activity.date_start, advcrm_activity.date_end, advcrm_activity.em_psat_namesign as namesign, advcrm_activity.em_psat_sign as actsign, -- case when chresseconduser.result is not null and chresseconduser.result <> $1 then activityuser.name || $2 || (select pcv."name" from psat_checklist_value pcv where pcv.psat_check_type_id = chresseconduser.psat_check_type_id and pcv.value = chresseconduser.result limit $3 ) else activityuser.name end as usernameact, -- advcrm_activity.em_psat_observations as actobservations, chresmachinetime.result as timemachine, chresworktime.result as worktime, coalesce(chresworkdone.result,chresworkdone.description) as logactivity, coalesce(chresmovementtime.result,$4) as timemovement, coalesce(chreskms.result,$5) as kms, coalesce(chreshrsguard.result,$6) as hoursGuard, --ORG ad_org.ad_org_id, --BPARTNER c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, contactuser.name as contactname, contactuser.email as contactmail, contactuser.phone as contactphone, --ADDRESSREQUEST c_location.address1 as address1, c_location.address2 as address2, c_location.postal as bppostal, c_location.city as bpcity, c_location_description(c_location.c_location_id) || $7|| upper(coalesce(c_country_trl.name, c_country.name)) || $8 AS locationdesc, --PRODUCT m_product.name as prodreqname, coalesce(m_attributesetinstance.description, psat_request.additional_info) as attributedesc, --CONSUMPTION coalesce(psat_related_products.em_cus_specific_id,prodconsum.value) as prodconsumvalue, coalesce(em_cus_specific_name,prodconsum.name) as prodconsumname, coalesce(cus_specific_mats_price.pricelist, psat_activity_consumption.priceactual) as consumpriceprod, coalesce(psat_activity_consumption.qty,$9) as consumitionQty, (select count($10) from advcrm_activity ac left join psat_activity_consumption pac on ac.advcrm_activity_id = pac.advcrm_activity_id where ac.advcrm_activity_id = advcrm_activity.advcrm_activity_id) as totalConsumitions, ROW_NUMBER() OVER (ORDER BY psat_activity_consumption.psat_activity_consumption_id ) as rownumber from advcrm_activity left join psat_request on advcrm_activity.em_psat_request_id = psat_request.psat_request_id left join psat_activity_consumption on advcrm_activity.advcrm_activity_id = psat_activity_consumption.advcrm_activity_id left join psat_related_products on psat_request.m_product_id=psat_related_products.m_product_id and psat_related_products.m_material_id=psat_activity_consumption.m_product_id left join psat_checklist_result chresmachinetime on advcrm_activity.advcrm_activity_id = chresmachinetime.advcrm_activity_id and chresmachinetime.psat_check_type_id= $11 left join psat_checklist_result chresworktime on advcrm_activity.advcrm_activity_id = chresworktime.advcrm_activity_id and chresworktime.psat_check_type_id= $12 left join psat_checklist_result chresmovementtime on advcrm_activity.advcrm_activity_id = chresmovementtime.advcrm_activity_id and chresmovementtime.psat_check_type_id= $13 left join psat_checklist_result chreskms on advcrm_activity.advcrm_activity_id = chreskms.advcrm_activity_id and chreskms.psat_check_type_id= $14 left join psat_checklist_result chreshrsguard on advcrm_activity.advcrm_activity_id = chreshrsguard.advcrm_activity_id and chreshrsguard.psat_check_type_id= $15 left join psat_checklist_result chresworkdone on advcrm_activity.advcrm_activity_id = chresworkdone.advcrm_activity_id and chresworkdone.psat_check_type_id= $16 left join psat_checklist_result chresseconduser on advcrm_activity.advcrm_activity_id = chresseconduser.advcrm_activity_id and chresseconduser.psat_check_type_id= $17 left join c_bpartner on psat_request.c_bpartner_id=c_bpartner.c_bpartner_id left join cus_specific_mats_price on c_bpartner.c_bpartner_id = cus_specific_mats_price.c_bpartner_id left join c_bpartner_location on psat_request.c_bpartner_location_id=c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id=c_location.c_location_id left join c_region on c_location.c_region_id=c_region.c_region_id left join c_country on c_location.c_country_id=c_country.c_country_id left join c_country_trl on c_country.c_country_id=c_country_trl.c_country_id and c_country_trl.ad_language=$18 left join m_product on psat_request.m_product_id=m_product.m_product_id left join m_attributesetinstance on psat_request.m_attributesetinstance_id=m_attributesetinstance.m_attributesetinstance_id left join m_product prodconsum on psat_activity_consumption.m_product_id = prodconsum.m_product_id left join c_doctype on psat_request.c_doctype_id=c_doctype.c_doctype_id left join ad_user activityuser on advcrm_activity.ad_user_id=activityuser.ad_user_id left join ad_user contactuser on coalesce(psat_request.requestor_id,psat_request.affected_contact_id)=contactuser.ad_user_id left join ad_org on psat_request.ad_org_id=ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id=ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id=c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id=c_regionorg.c_region_id where advcrm_activity.advcrm_activity_id in ($19) |
| 44dc303aa7 | select this_.Psat_Activity_Consumption_ID as Psat_Act1_722_0_, this_.AD_Client_ID as AD_Clien2_722_0_, this_.AD_Org_ID as AD_Org_I3_722_0_, this_.Isactive as Isactive4_722_0_, this_.Created as Created5_722_0_, this_.Createdby as Createdb6_722_0_, this_.Updated as Updated7_722_0_, this_.Updatedby as Updatedb8_722_0_, this_.Advcrm_Activity_ID as Advcrm_A9_722_0_, this_.M_Product_ID as M_Produ10_722_0_, this_.Qty as Qty11_722_0_, this_.Priceactual as Priceac12_722_0_, this_.M_Attributesetinstance_ID as M_Attri13_722_0_, this_.M_Locator_ID as M_Locat14_722_0_, this_.Psat_Activity_Materials_ID as Psat_Ac15_722_0_, this_.Invoiced as Invoice16_722_0_, this_.isProcessed as isProce17_722_0_, this_.Description as Descrip18_722_0_, this_.M_Inoutline_ID as M_Inout19_722_0_ from psat_activity_consumption this_ where this_.Psat_Activity_Materials_ID=$1 and this_.Isactive=$2 |
| b8b9950890 | INSERT 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)) |
| 140f3eb685 | SELECT collect_pg_stat_statements_stats(server_properties, sserver_id, s_id, topn) |
| 30a0a7aa59 | insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4) |
| 671fe12038 | COPY public.ad_audit_trail (ad_audit_trail_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, ad_table_id, record_id, record_revision, ad_user_id, event_time, processtype, process_id, action, ad_column_id, old_char, new_char, old_nchar, new_nchar, old_number, new_number, old_date, new_date, old_text, new_text) TO stdout |
| 0f194ad1e6 | SELECT 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) |
| 4813705ddb | update C_Invoice set Updated=$1, DaysTillDue=$2, LastCalculatedOnDate=$3 where C_Invoice_ID=$4 |
| 0b651ca53d | COPY public.fact_acct (fact_acct_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_acctschema_id, account_id, datetrx, dateacct, c_period_id, ad_table_id, record_id, line_id, gl_category_id, c_tax_id, m_locator_id, postingtype, c_currency_id, amtsourcedr, amtsourcecr, amtacctdr, amtacctcr, c_uom_id, qty, 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, description, a_asset_id, fact_acct_group_id, seqno, factaccttype, docbasetype, acctvalue, acctdescription, record_id2, c_withholding_id, c_doctype_id, c_costcenter_id, ismodify, datebalanced) TO stdout |
| 30f8741426 | delete from ad_context_info |
| 167f11efcd | vacuum analyze prsync_entry |
| 1251dece16 | ANALYZE last_stat_indexes |
| 9425961593 | select finpayment0_.FIN_Payment_Schedule_Invoice as FIN_Pay10_374_1_, finpayment0_.FIN_Payment_Scheduledetail_ID as FIN_Paym1_374_1_, finpayment0_.FIN_Payment_Scheduledetail_ID as FIN_Paym1_374_0_, finpayment0_.AD_Client_ID as AD_Clien2_374_0_, finpayment0_.AD_Org_ID as AD_Org_I3_374_0_, finpayment0_.Created as Created4_374_0_, finpayment0_.Createdby as Createdb5_374_0_, finpayment0_.Updated as Updated6_374_0_, finpayment0_.Updatedby as Updatedb7_374_0_, finpayment0_.FIN_Payment_Detail_ID as FIN_Paym8_374_0_, finpayment0_.FIN_Payment_Schedule_Order as FIN_Paym9_374_0_, finpayment0_.FIN_Payment_Schedule_Invoice as FIN_Pay10_374_0_, finpayment0_.Amount as Amount11_374_0_, finpayment0_.Isactive as Isactiv12_374_0_, finpayment0_.Writeoffamt as Writeof13_374_0_, finpayment0_.Iscanceled as Iscance14_374_0_, finpayment0_.C_Bpartner_ID as C_Bpart15_374_0_, finpayment0_.C_Activity_ID as C_Activ16_374_0_, finpayment0_.M_Product_ID as M_Produ17_374_0_, finpayment0_.C_Campaign_ID as C_Campa18_374_0_, finpayment0_.C_Project_ID as C_Proje19_374_0_, finpayment0_.C_Salesregion_ID as C_Sales20_374_0_, finpayment0_.C_Costcenter_ID as C_Costc21_374_0_, finpayment0_.User1_ID as User22_374_0_, finpayment0_.User2_ID as User23_374_0_, finpayment0_.DoubtfulDebt_Amount as Doubtfu24_374_0_, finpayment0_.Isinvoicepaid as Isinvoi25_374_0_ from FIN_Payment_ScheduleDetail finpayment0_ where finpayment0_.FIN_Payment_Schedule_Invoice=$1 |
| 12a81791af | SELECT coalesce(( select ol.qtyordered - coalesce(sum(abs(coalesce(( select sum(il.movementqty) from m_inoutline il left join m_inout i on i.m_inout_id=il.m_inout_id where i.docstatus<>$2 and il.c_orderline_id=ol.c_orderline_id ),$3))), $4) restante from c_orderline ol where ol.c_orderline_id=p_record_id group by ol.c_orderline_id), $5) |
| 397ca8ed7d | insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4) |
| 439672e8c5 | insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4) |
| 5c5d70e7d3 | delete from ad_context_info |
| 785a907bc3 | select invoice0_.C_Invoice_ID as C_Invoic1_249_, invoice0_.AD_Client_ID as AD_Clien2_249_, invoice0_.AD_Org_ID as AD_Org_I3_249_, invoice0_.IsActive as IsActive4_249_, invoice0_.Created as Created5_249_, invoice0_.CreatedBy as CreatedB6_249_, invoice0_.Updated as Updated7_249_, invoice0_.UpdatedBy as UpdatedB8_249_, invoice0_.IsSOTrx as IsSOTrx9_249_, invoice0_.DocumentNo as Documen10_249_, invoice0_.DocStatus as DocStat11_249_, invoice0_.DocAction as DocActi12_249_, invoice0_.Processing as Process13_249_, invoice0_.Processed as Process14_249_, invoice0_.Posted as Posted15_249_, invoice0_.C_DocType_ID as C_DocTy16_249_, invoice0_.C_DocTypeTarget_ID as C_DocTy17_249_, invoice0_.C_Order_ID as C_Order18_249_, invoice0_.Description as Descrip19_249_, invoice0_.IsPrinted as IsPrint20_249_, invoice0_.SalesRep_ID as SalesRe21_249_, invoice0_.DateInvoiced as DateInv22_249_, invoice0_.DatePrinted as DatePri23_249_, invoice0_.DateAcct as DateAcc24_249_, invoice0_.C_BPartner_ID as C_BPart25_249_, invoice0_.C_BPartner_Location_ID as C_BPart26_249_, invoice0_.POReference as PORefer27_249_, invoice0_.IsDiscountPrinted as IsDisco28_249_, invoice0_.DateOrdered as DateOrd29_249_, invoice0_.C_Currency_ID as C_Curre30_249_, invoice0_.C_PaymentTerm_ID as C_Payme31_249_, invoice0_.C_Charge_ID as C_Charg32_249_, invoice0_.ChargeAmt as ChargeA33_249_, invoice0_.TotalLines as TotalLi34_249_, invoice0_.GrandTotal as GrandTo35_249_, invoice0_.M_PriceList_ID as M_Price36_249_, invoice0_.IsTaxIncluded as IsTaxIn37_249_, invoice0_.C_Campaign_ID as C_Campa38_249_, invoice0_.C_Project_ID as C_Proje39_249_, invoice0_.C_Activity_ID as C_Activ40_249_, invoice0_.CreateFrom as CreateF41_249_, invoice0_.GenerateTo as Generat42_249_, invoice0_.AD_User_ID as AD_User43_249_, invoice0_.CopyFrom as CopyFro44_249_, invoice0_.IsSelfService as IsSelfS45_249_, invoice0_.AD_OrgTrx_ID as AD_OrgT46_249_, invoice0_.User1_ID as User47_249_, invoice0_.User2_ID as User48_249_, invoice0_.Withholdingamount as Withhol49_249_, invoice0_.Taxdate as Taxdate50_249_, invoice0_.C_Withholding_ID as C_Withh51_249_, invoice0_.Ispaid as Ispaid52_249_, invoice0_.EM_Einv_Generated as EM_Einv53_249_, invoice0_.Totalpaid as Totalpa54_249_, invoice0_.EM_Einv_Sent as EM_Einv55_249_, invoice0_.OutstandingAmt as Outstan56_249_, invoice0_.DaysTillDue as DaysTil57_249_, invoice0_.DueAmt as DueAmt58_249_, invoice0_.LastCalculatedOnDate as LastCal59_249_, invoice0_.FIN_Paymentmethod_ID as FIN_Pay60_249_, invoice0_.FIN_Payment_Priority_ID as FIN_Pay61_249_, invoice0_.Finalsettlement as Finalse62_249_, invoice0_.Daysoutstanding as Daysout63_249_, invoice0_.Percentageoverdue as Percent64_249_, invoice0_.C_Costcenter_ID as C_Costc65_249_, invoice0_.Calculate_Promotions as Calcula66_249_, invoice0_.A_Asset_ID as A_Asset67_249_, invoice0_.EM_APRM_Addpayment as EM_APRM68_249_, invoice0_.Iscashvat as Iscashv69_249_, invoice0_.EM_APRM_Processinvoice as EM_APRM70_249_, invoice0_.EM_Obcma_C_Poc_Email_ID as EM_Obcm71_249_, invoice0_.Prepaymentamt as Prepaym72_249_, invoice0_.Createfromorders as Createf73_249_, invoice0_.Createfrominouts as Createf74_249_, invoice0_.EM_Advcrm_Newactivity as EM_Advc75_249_, invoice0_.Paidamtatinvoicing as Paidamt76_249_, invoice0_.BPartner_ExtRef as BPartne77_249_, invoice0_.EM_Sgpcrm_Securitygroups_ID as EM_Sgpc78_249_, invoice0_.EM_Prouti_Recalculate_Price as EM_Prou79_249_, invoice0_.EM_Ml_Select_Product as EM_Ml_S80_249_, invoice0_.EM_Prouti_Pricecalculatetdate as EM_Prou81_249_, invoice0_.EM_Prouti_Totalizations as EM_Prou82_249_ from C_Invoice invoice0_ left outer join FIN_Payment_Schedule finpayment1_ on invoice0_.C_Invoice_ID=finpayment1_.C_Invoice_ID where invoice0_.Processed=$7 and (invoice0_.Ispaid=$8 or finpayment1_.Updated>=invoice0_.LastCalculatedOnDate or invoice0_.OutstandingAmt<>$9 or invoice0_.Finalsettlement is null) and (invoice0_.AD_Org_ID in ($1 , $2 , $3 , $4)) and (invoice0_.AD_Client_ID in ($5 , $6)) and invoice0_.IsActive=$10 |
| 0c247acdf0 | VACUUM (FULL, VERBOSE, ANALYZE) |
| 2e0b729b87 | VACUUM (FULL, VERBOSE, ANALYZE) |
| adb1c31f79 | VACUUM (FULL, VERBOSE, ANALYZE) |
| 8665977e38 | delete from ad_context_info |
| 2be957f8e4 | select isinvoicepaid, fin_payment_schedule_order, fin_payment_schedule_invoice from fin_payment_scheduledetail where fin_payment_scheduledetail_id=v_p_fin_psd_id |
| df99961951 | select financialm0_.C_Settlement_ID as C_Settle1_310_0_, financialm0_.AD_Client_ID as AD_Clien2_310_0_, financialm0_.AD_Org_ID as AD_Org_I3_310_0_, financialm0_.IsActive as IsActive4_310_0_, financialm0_.Created as Created5_310_0_, financialm0_.CreatedBy as CreatedB6_310_0_, financialm0_.Updated as Updated7_310_0_, financialm0_.UpdatedBy as UpdatedB8_310_0_, financialm0_.DocumentNo as Document9_310_0_, financialm0_.DateTrx as DateTrx10_310_0_, financialm0_.C_DocType_ID as C_DocTy11_310_0_, financialm0_.Processing as Process12_310_0_, financialm0_.Processed as Process13_310_0_, financialm0_.Posted as Posted14_310_0_, financialm0_.C_Project_ID as C_Proje15_310_0_, financialm0_.C_Campaign_ID as C_Campa16_310_0_, financialm0_.C_Activity_ID as C_Activ17_310_0_, financialm0_.User1_ID as User18_310_0_, financialm0_.User2_ID as User19_310_0_, financialm0_.CreateFrom as CreateF20_310_0_, financialm0_.C_Currency_ID as C_Curre21_310_0_, financialm0_.Cancelednotchargeamt as Cancele22_310_0_, financialm0_.Generatedamt as Generat23_310_0_, financialm0_.Chargedamt as Charged24_310_0_, financialm0_.Description as Descrip25_310_0_, financialm0_.CreateFile as CreateF26_310_0_, financialm0_.DateAcct as DateAcc27_310_0_, financialm0_.Settlementtype as Settlem28_310_0_, financialm0_.SettlementOpen as Settlem29_310_0_, financialm0_.CopyFrom as CopyFro30_310_0_, financialm0_.IsGenerated as IsGener31_310_0_, financialm0_.IsTemplate as IsTempl32_310_0_ from C_Settlement financialm0_ where financialm0_.C_Settlement_ID=$1 |
| 1b3d7b3f6d | select 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, $5) and this_.AD_Client_ID in ($6, $7) and this_.Isactive=$8 |
| d0b36135c7 | INSERT 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 ) |
| bda4372001 | INSERT 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) |
| de891c1f5b | select shipmentin0_.M_InOut_ID as M_InOut_1_415_0_, shipmentin0_.AD_Client_ID as AD_Clien2_415_0_, shipmentin0_.AD_Org_ID as AD_Org_I3_415_0_, (select C_GETINVOICESTATUSFROMSHIPMENT(shipmentin0_.m_inout_id) from dual) as formula26_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_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) |
| 42c36ef013 | insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4) |
| c2b6cfc2bf | 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, 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 = 'en_US' 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 = 'en_US' UNION select text.filename as filename, text.text as text, text.isused as isUsed, text.ad_module_id as moduleId, 'en_US' 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 = 'en_US') and (text.filename is null OR text.filename = '/org/openbravo/erpCommon/security/Login.html' ) and text.isused = 'Y' order by orderSeq |
| d7389ab8e1 | SELECT $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 |
| 6a18f0bfd3 | insert into prsync_entry (AD_Client_ID, AD_Org_ID, Isactive, Created, Createdby, Updated, Updatedby, Jsonentry, Type_Of_Data, Status, Process, Processing, Prsync_Entry_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13) |
| 50b8978166 | select order_comp0_.C_Order_ID as C_Order_1_265_0_, order_comp0_.AD_Client_ID as AD_Clien2_265_0_, order_comp0_.AD_Org_ID as AD_Org_I3_265_0_, (coalesce((select case when sum(abs(ol.qtyordered)) = $51 or order_comp0_.iscancelled = $52 or order_comp0_.cancelledorder_id is not null then $53 else round(coalesce(sum(abs(ol.qtydelivered)), $54)/sum(abs(ol.qtyordered)) * $55, $56) end from c_orderline ol where ol.c_order_id=order_comp0_.c_order_id and ol.c_order_discount_id is null),$57)) as formula28_0_, (coalesce(prouti_delavailablewithoutres(order_comp0_.c_order_id),$58)) as formula29_0_, (coalesce(prouti_deliveryavailable(order_comp0_.c_order_id),$59)) as formula30_0_, (select sum(prouti_qtyremainingorderline(ol.c_orderline_id)) from c_orderline ol where ol.c_order_id = order_comp0_.c_order_id) as formula31_0_, (select case when sum(ol.qtyordered)=$60 then $61 else trunc((sum(least(ol.qtyordered, coalesce(pool.qtyordered,$62))) / sum(ol.qtyordered) ) * $63) end from c_orderline ol left join c_orderline pool on pool.em_prouti_orderline_id=ol.c_orderline_id where ol.c_order_id=order_comp0_.c_order_id) as formula32_0_, (coalesce((select case when sum(abs(ol.qtyordered)) = $64 or order_comp0_.iscancelled = $65 or order_comp0_.cancelledorder_id is not null then $66 else round(coalesce(sum(abs(ol.qtyinvoiced)), $67)/sum(abs(ol.qtyordered)) * $68, $69) end from c_orderline ol where ol.c_order_id=order_comp0_.c_order_id and ol.c_order_discount_id is null), $70)) as formula33_0_, (coalesce((select case when sum(fps.amount) = $71 then $72 else round(sum(fps.paidamt)/sum(fps.amount) * $73, $74) end from FIN_Payment_Schedule fps where fps.c_order_id=order_comp0_.c_order_id),$75)) as formula34_0_ from C_Order order_comp0_ where order_comp0_.C_Order_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) |
| 9cbca4d83c | INSERT INTO AD_AUDIT_TRAIL (AD_AUDIT_TRAIL_ID, AD_USER_ID, AD_TABLE_ID, AD_COLUMN_ID, PROCESSTYPE, PROCESS_ID, RECORD_ID, RECORD_REVISION, ACTION, EVENT_TIME, OLD_CHAR, NEW_CHAR, AD_CLIENT_ID, AD_ORG_ID) VALUES (GET_UUID(), V_USER_ID, $33, $34, v_process_type, v_process_id, v_record_id, v_record_rev, v_action, v_time, v_old_CHAR, v_new_CHAR, V_CLIENT, V_ORG) |
| 9625146448 | select min(this_.Duedate) as y0_ from FIN_Payment_Schedule this_ where this_.C_Invoice_ID=$1 and this_.Outstandingamt<>$2 and this_.Isactive=$3 limit $4 |
| 29e9be51ce | select adtab0_.AD_Table_ID as col_0_0_, adwindowac2_.IsReadWrite as col_1_0_ from AD_Tab adtab0_ left outer join AD_Window adwindow1_ on adtab0_.AD_Window_ID=adwindow1_.AD_Window_ID left outer join AD_Window_Access adwindowac2_ on adwindow1_.AD_Window_ID=adwindowac2_.AD_Window_ID where adwindowac2_.AD_Role_ID=$1 |
| 93accebb93 | SELECT o.C_Order_ID, org.Name as adorgname, COALESCE(dttrl.Name, dt.Name) as cdoctypename, o.DocumentNo, bp.Name as cbpartnername, o.DateOrdered, o.totallines as amountlines, ( SELECT sum((ol.qtyordered - ol.qtydelivered) * ol.priceactual) FROM c_orderline ol WHERE ol.c_order_id = o.c_order_id AND ol.qtyordered <> ol.qtydelivered AND ol.directship = $2 AND ol.m_product_id IS NOT NULL ) as TotalLines FROM C_Order o JOIN AD_Org org ON o.AD_Org_ID = org.AD_Org_ID JOIN C_BPartner bp ON o.C_BPartner_ID = bp.C_BPartner_ID JOIN C_DocType dt ON o.C_DocType_ID = dt.C_DocType_ID LEFT JOIN C_DocType_trl dttrl ON dt.C_DocType_ID = dttrl.C_DocType_ID AND dttrl.ad_language = $1 WHERE o.docstatus = $3 AND o.isdelivered = $4 AND dt.isreturn = $5 AND dt.docbasetype = $6 AND dt.docsubtypeso NOT IN ($7, $8, $9) AND EXISTS ( SELECT $10 FROM C_ORDERLINE ol WHERE ol.c_order_id = o.c_order_id AND ol.qtyordered <> ol.qtydelivered AND ol.directship = $11 AND ol.m_product_id IS NOT NULL ) AND o.ad_client_id IN ($12,$13) AND o.ad_org_id IN ($14,$15,$16,$17) AND $18=$19 AND $20=$21 AND o.ad_org_id IN ($22) ORDER BY org.Name, bp.Name, DateOrdered |
| 75cdc9279a | SELECT td0.AD_User_ID AS ID, (COALESCE(TO_CHAR(COALESCE(TO_CHAR(td0.Name),$2)),$3)) AS NAME, $4 AS DESCRIPTION FROM AD_User td0 WHERE td0.AD_Client_ID IN ($5,$6) AND td0.AD_Org_ID IN ($7,$8) AND (EXISTS (select ad_user_id from ad_user left join c_bpartner on td0.c_bpartner_id=c_bpartner.c_bpartner_id where c_bpartner.isemployee=$9)) AND (td0.isActive = $10 OR td0.AD_User_ID = ($1) ) ORDER BY 2 LIMIT $11 OFFSET $12 |
| d897242fe6 | insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4) |
| fa1b74d06f | select financialm0_.C_Settlement_Cancel_ID as C_Settl10_218_1_, financialm0_.C_Debt_Payment_ID as C_Debt_P1_218_1_, financialm0_.C_Debt_Payment_ID as C_Debt_P1_218_0_, financialm0_.AD_Client_ID as AD_Clien2_218_0_, financialm0_.AD_Org_ID as AD_Org_I3_218_0_, financialm0_.IsActive as IsActive4_218_0_, financialm0_.Created as Created5_218_0_, financialm0_.CreatedBy as CreatedB6_218_0_, financialm0_.Updated as Updated7_218_0_, financialm0_.UpdatedBy as UpdatedB8_218_0_, financialm0_.IsReceipt as IsReceip9_218_0_, financialm0_.C_Settlement_Cancel_ID as C_Settl10_218_0_, financialm0_.C_Settlement_Generate_ID as C_Settl11_218_0_, financialm0_.Description as Descrip12_218_0_, financialm0_.C_Invoice_ID as C_Invoi13_218_0_, financialm0_.C_BPartner_ID as C_BPart14_218_0_, financialm0_.C_Currency_ID as C_Curre15_218_0_, financialm0_.C_CashLine_ID as C_CashL16_218_0_, financialm0_.C_BankAccount_ID as C_BankA17_218_0_, financialm0_.C_CashBook_ID as C_CashB18_218_0_, financialm0_.PaymentRule as Payment19_218_0_, financialm0_.IsPaid as IsPaid20_218_0_, financialm0_.Amount as Amount21_218_0_, financialm0_.WriteOffAmt as WriteOf22_218_0_, financialm0_.Dateplanned as Datepla23_218_0_, financialm0_.IsManual as IsManua24_218_0_, financialm0_.IsValid as IsValid25_218_0_, financialm0_.C_BankStatementLine_ID as C_BankS26_218_0_, financialm0_.Changesettlementcancel as Changes27_218_0_, financialm0_.Cancel_Processed as Cancel_28_218_0_, financialm0_.Generate_Processed as Generat29_218_0_, financialm0_.GLItemAmt as GLItemA30_218_0_, financialm0_.Isdirectposting as Isdirec31_218_0_, financialm0_.C_Glitem_ID as C_Glite32_218_0_, financialm0_.C_Order_ID as C_Order33_218_0_, financialm0_.C_Project_ID as C_Proje34_218_0_, financialm0_.IsAutomaticGenerated as IsAutom35_218_0_, financialm0_.Status as Status36_218_0_, financialm0_.Status_Initial as Status_37_218_0_, financialm0_.C_Withholding_ID as C_Withh38_218_0_, financialm0_.Withholdingamount as Withhol39_218_0_ from C_Debt_Payment financialm0_ where financialm0_.C_Settlement_Cancel_ID=$1 |
| 1718660f21 | insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4) |
| 900b170462 | delete from ad_context_info |
| 4108c96b3f | select productbyp0_.M_Product_Price_Warehouse_V_ID as M_Produc1_469_, productbyp0_.AD_Client_ID as AD_Clien2_469_, productbyp0_.AD_Org_ID as AD_Org_I3_469_, productbyp0_.Isactive as Isactive4_469_, productbyp0_.Updated as Updated5_469_, productbyp0_.Updatedby as Updatedb6_469_, productbyp0_.Created as Created7_469_, productbyp0_.Createdby as Createdb8_469_, productbyp0_.M_Product_ID as M_Produc9_469_, productbyp0_.M_Warehouse_ID as M_Wareh10_469_, productbyp0_.M_Productprice_ID as M_Produ11_469_, productbyp0_.QTY_Available as QTY_Ava12_469_, productbyp0_.QTY_Onhand as QTY_Onh13_469_, productbyp0_.QTY_Reserved as QTY_Res14_469_, productbyp0_.QTY_Ordered as QTY_Ord15_469_, productbyp0_.Pricelist as Priceli16_469_, productbyp0_.Pricestd as Pricest17_469_, productbyp0_.Pricelimit as Priceli18_469_, productbyp0_.Orgwarehouse as Orgware19_469_ from M_Product_Price_Warehouse_v productbyp0_ left outer join M_Product product1_ on productbyp0_.M_Product_ID=product1_.M_Product_ID cross join M_ProductPrice pricingpro4_ cross join M_PriceList_Version pricingpri5_ cross join M_PriceList pricingpri9_ where productbyp0_.M_Productprice_ID=pricingpro4_.M_ProductPrice_ID and pricingpro4_.M_PriceList_Version_ID=pricingpri5_.M_PriceList_Version_ID and pricingpri5_.M_PriceList_ID=pricingpri9_.M_PriceList_ID and (upper(product1_.Value) like upper($1) escape $12 or upper(product1_.Name) like upper($2) escape $13 or upper((product1_.Value||$14||coalesce(to_char((select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID=product1_.M_Product_ID and producttrl2_.AD_Language=$15)), to_char(product1_.Name), $16))) like upper($3) escape $17 or upper((product1_.Value||$18||coalesce(to_char((select producttrl3_.Name from M_Product_Trl producttrl3_ where producttrl3_.M_Product_ID=product1_.M_Product_ID and producttrl3_.AD_Language=$19)), to_char(product1_.Name), $20))) like upper($4) escape $21) and (productbyp0_.AD_Org_ID in ($22 , $23)) and productbyp0_.Isactive=$24 and AD_ORG_ISINNATURALTREE(productbyp0_.Orgwarehouse, $5, $6)=$25 and pricingpri5_.IsActive=$26 and AD_ORG_ISINNATURALTREE(pricingpro4_.AD_Org_ID, $7, $8)=$27 and pricingpri9_.IsSOPriceList=$28 and pricingpri9_.C_Currency_ID=$29 and pricingpro4_.M_PriceList_Version_ID=$30 and productbyp0_.M_Warehouse_ID=$31 and (productbyp0_.AD_Client_ID in ($9 , $10)) and productbyp0_.Isactive=$32 order by product1_.Value, product1_.Name, product1_.M_Product_ID limit $11 |
| 228d74fbf5 | COPY 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 |
| c525c04235 | INSERT 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) |
| 503324b603 | select financialm0_.C_Invoice_ID as C_Invoi13_218_1_, financialm0_.C_Debt_Payment_ID as C_Debt_P1_218_1_, financialm0_.C_Debt_Payment_ID as C_Debt_P1_218_0_, financialm0_.AD_Client_ID as AD_Clien2_218_0_, financialm0_.AD_Org_ID as AD_Org_I3_218_0_, financialm0_.IsActive as IsActive4_218_0_, financialm0_.Created as Created5_218_0_, financialm0_.CreatedBy as CreatedB6_218_0_, financialm0_.Updated as Updated7_218_0_, financialm0_.UpdatedBy as UpdatedB8_218_0_, financialm0_.IsReceipt as IsReceip9_218_0_, financialm0_.C_Settlement_Cancel_ID as C_Settl10_218_0_, financialm0_.C_Settlement_Generate_ID as C_Settl11_218_0_, financialm0_.Description as Descrip12_218_0_, financialm0_.C_Invoice_ID as C_Invoi13_218_0_, financialm0_.C_BPartner_ID as C_BPart14_218_0_, financialm0_.C_Currency_ID as C_Curre15_218_0_, financialm0_.C_CashLine_ID as C_CashL16_218_0_, financialm0_.C_BankAccount_ID as C_BankA17_218_0_, financialm0_.C_CashBook_ID as C_CashB18_218_0_, financialm0_.PaymentRule as Payment19_218_0_, financialm0_.IsPaid as IsPaid20_218_0_, financialm0_.Amount as Amount21_218_0_, financialm0_.WriteOffAmt as WriteOf22_218_0_, financialm0_.Dateplanned as Datepla23_218_0_, financialm0_.IsManual as IsManua24_218_0_, financialm0_.IsValid as IsValid25_218_0_, financialm0_.C_BankStatementLine_ID as C_BankS26_218_0_, financialm0_.Changesettlementcancel as Changes27_218_0_, financialm0_.Cancel_Processed as Cancel_28_218_0_, financialm0_.Generate_Processed as Generat29_218_0_, financialm0_.GLItemAmt as GLItemA30_218_0_, financialm0_.Isdirectposting as Isdirec31_218_0_, financialm0_.C_Glitem_ID as C_Glite32_218_0_, financialm0_.C_Order_ID as C_Order33_218_0_, financialm0_.C_Project_ID as C_Proje34_218_0_, financialm0_.IsAutomaticGenerated as IsAutom35_218_0_, financialm0_.Status as Status36_218_0_, financialm0_.Status_Initial as Status_37_218_0_, financialm0_.C_Withholding_ID as C_Withh38_218_0_, financialm0_.Withholdingamount as Withhol39_218_0_ from C_Debt_Payment financialm0_ where financialm0_.C_Invoice_ID=$1 |
| f68dd8a1a9 | ANALYZE last_stat_tables |
| 47dfd612ff | insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4) |
| 3432bfcfac | insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4) |
| 512a12de5c | insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4) |
| b9bb8a4422 | SELECT * FROM take_sample_subset(1,0) |
| 73e3636bec | update C_Invoice set Updated=$1, LastCalculatedOnDate=$2 where C_Invoice_ID=$3 |
| 07181527b0 | DELETE FROM last_stat_indexes WHERE server_id=sserver_id AND sample_id != s_id |
| 0631edbc5b | insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4) |
| DB | Tablespace | Schema | Table | ~SeqBytes | SeqScan | IxScan | IxFet | Ins | Upd | Del | Upd(HOT) |
|---|---|---|---|---|---|---|---|---|---|---|---|
| etendo | pg_default | pg_temp_5 | ad_context_info | 153 GB | 63526 | 63511 | 63510 | ||||
| etendo | pg_default | pg_temp_10 | ad_context_info | 102 GB | 50593 | 50592 | 50591 | ||||
| etendo | pg_default | pg_temp_5 | ad_context_info | 81 GB | 12597 | 12597 | 12597 | ||||
| etendo | pg_default | pg_temp_6 | ad_context_info | 31 GB | 25721 | 25659 | 25658 | ||||
| etendo | pg_default | pg_temp_3 | ad_context_info | 31 GB | 25316 | 25314 | 25313 | ||||
| etendo | pg_default | pg_temp_3 | ad_context_info | 31 GB | 25213 | 25208 | 25207 | ||||
| etendo | pg_default | pg_temp_3 | ad_context_info | 11 GB | 12753 | 12731 | 12730 | ||||
| etendo | pg_default | pg_temp_4 | ad_context_info | 10 GB | 12629 | 12625 | 12624 | ||||
| etendo | pg_default | pg_temp_4 | ad_context_info | 10 GB | 12745 | 12729 | 12728 | ||||
| etendo | pg_default | pg_temp_8 | ad_context_info | 10 GB | 12628 | 12612 | 12611 | ||||
| etendo | pg_default | pg_temp_5 | ad_context_info | 10 GB | 12617 | 12616 | 12615 | ||||
| etendo | pg_default | pg_temp_6 | ad_context_info | 10 GB | 12611 | 12607 | 12606 | ||||
| etendo | pg_default | public | c_bpartner | 7914 MB | 6371 | 34193 | 131610 | 1 | 4 | 2 | |
| c_bpartner(TOAST) | |||||||||||
| etendo | pg_default | public | advcrm_activity | 6694 MB | 416 | 1545 | 1425 | 20 | 105 | 3 | 86 |
| advcrm_activity(TOAST) | |||||||||||
| etendo | pg_default | public | ad_org_tree | 6096 MB | 780315 | ||||||
| etendo | pg_default | pg_catalog | pg_class | 4051 MB | 6026 | 635511 | 621853 | 1887 | 6728 | 1887 | 1375 |
| etendo | pg_default | public | psat_checklist_result | 3881 MB | 66 | 1309 | 2603 | 136 | 32 | 31 | |
| psat_checklist_result(TOAST) | |||||||||||
| etendo | pg_default | public | fact_acct | 3417 MB | 13 | ||||||
| fact_acct(TOAST) | |||||||||||
| etendo | pg_default | profile | last_stat_database | 2132 MB | 97046 | 88 | 88 | ||||
| etendo | pg_default | public | ad_audit_trail | 1527 MB | 3 | 169 | 129 | 1715 | |||
| ad_audit_trail(TOAST) | |||||||||||
| DB | Tablespace | Schema | Table | Heap | Ix | TOAST | TOAST-Ix | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Blks | %Total | Blks | %Total | Blks | %Total | Blks | %Total | ||||
| etendo | pg_default | pg_temp_5 | ad_context_info | 16691915 | 14.61 | ||||||
| etendo | pg_default | public | c_invoice | 3547526 | 3.11 | 7601223 | 6.66 | ||||
| etendo | pg_default | pg_temp_10 | ad_context_info | 10677483 | 9.35 | ||||||
| etendo | pg_default | pg_temp_5 | ad_context_info | 9889113 | 8.66 | ||||||
| etendo | pg_default | public | m_productprice | 1071258 | 0.94 | 3150034 | 2.76 | ||||
| etendo | pg_default | public | m_product | 1308293 | 1.15 | 2342312 | 2.05 | ||||
| etendo | pg_default | public | fin_payment_schedule | 878980 | 0.77 | 2548708 | 2.23 | ||||
| etendo | pg_default | profile | last_stat_tables | 3166766 | 2.77 | 104382 | 0.09 | ||||
| etendo | pg_default | pg_temp_6 | ad_context_info | 2757899 | 2.41 | ||||||
| etendo | pg_default | pg_temp_3 | ad_context_info | 2705790 | 2.37 | ||||||
| etendo | pg_default | pg_temp_3 | ad_context_info | 2700067 | 2.36 | ||||||
| etendo | pg_default | pg_catalog | pg_class | 1131926 | 0.99 | 1327053 | 1.16 | ||||
| etendo | pg_default | public | psat_activity_materials | 13551 | 0.01 | 2177724 | 1.91 | ||||
| etendo | pg_default | public | ad_tab | 794658 | 0.70 | 617523 | 0.54 | ||||
| etendo | pg_default | public | m_product_trl | 1363927 | 1.19 | ||||||
| etendo | pg_default | pg_catalog | pg_attribute | 521320 | 0.46 | 761390 | 0.67 | ||||
| etendo | pg_default | public | c_debt_payment | 466870 | 0.41 | 784986 | 0.69 | ||||
| etendo | pg_default | public | c_bpartner | 1133581 | 0.99 | 71937 | 0.06 | ||||
| etendo | pg_default | public | ad_textinterfaces | 412635 | 0.36 | 509922 | 0.45 | ||||
| etendo | pg_default | public | advcrm_activity | 856820 | 0.75 | 4854 | 0.00 | ||||
| DB | Tablespace | Schema | Table | Heap | Ix | TOAST | TOAST-Ix | Hit(%) | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Blks | %Total | Blks | %Total | Blks | %Total | Blks | %Total | |||||
| etendo | pg_default | public | ad_audit_trail | 130388 | 28.96 | 1951 | 0.43 | 45.34 | ||||
| etendo | pg_default | public | fact_acct | 67283 | 14.94 | 85.60 | ||||||
| etendo | pg_default | public | ad_image | 788 | 0.18 | 18 | 0.00 | 56443 | 12.54 | 886 | 0.20 | 65.83 |
| etendo | pg_default | public | psat_checklist_result | 15046 | 3.34 | 3495 | 0.78 | 97.60 | ||||
| etendo | pg_default | public | c_orderline | 14904 | 3.31 | 1843 | 0.41 | 95.16 | ||||
| etendo | pg_default | public | c_invoice | 5830 | 1.29 | 6174 | 1.37 | 99.89 | ||||
| etendo | pg_default | public | c_orderlinetax | 7363 | 1.64 | 141 | 0.03 | 67.49 | ||||
| etendo | pg_default | public | ad_session_usage_audit | 4892 | 1.09 | 603 | 0.13 | 84.84 | ||||
| etendo | pg_default | public | c_order | 3821 | 0.85 | 656 | 0.15 | 98.44 | ||||
| etendo | pg_default | public | fin_payment_schedule | 3801 | 0.84 | 473 | 0.11 | 99.88 | ||||
| etendo | pg_default | public | fin_payment | 3160 | 0.70 | 181 | 0.04 | 78.87 | ||||
| etendo | pg_default | public | fin_payment_scheduledetail | 2716 | 0.60 | 562 | 0.12 | 90.23 | ||||
| etendo | pg_default | public | ad_process_run | 2698 | 0.60 | 117 | 0.03 | 11 | 0.00 | 10 | 0.00 | 95.73 |
| etendo | pg_default | public | fin_finacc_transaction | 2780 | 0.62 | 8 | 0.00 | 75.05 | ||||
| etendo | pg_default | public | advcrm_activity_related | 2087 | 0.46 | 418 | 0.09 | 82.89 | ||||
| etendo | pg_default | public | fin_payment_detail | 1906 | 0.42 | 238 | 0.05 | 61.61 | ||||
| etendo | pg_default | public | prsync_entry | 976 | 0.22 | 58 | 0.01 | 899 | 0.20 | 17 | 0.00 | 89.53 |
| etendo | pg_default | pg_catalog | pg_attribute | 1436 | 0.32 | 496 | 0.11 | 99.85 | ||||
| etendo | pg_default | profile | sample_stat_tables | 1772 | 0.39 | 108 | 0.02 | 96.05 | ||||
| etendo | pg_default | public | c_ordertax | 1822 | 0.40 | 38 | 0.01 | 66.81 | ||||
| DB | Tablespace | Schema | Table | Ins | Upd | Del | Upd(HOT) | SeqScan | SeqFet | IxScan | IxFet |
|---|---|---|---|---|---|---|---|---|---|---|---|
| etendo | pg_default | public | c_invoice | 289605 | 34 | 1559036 | 298474 | 1426909 | |||
| c_invoice(TOAST) | |||||||||||
| etendo | pg_default | pg_temp_5 | ad_context_info | 63511 | 63510 | 63526 | 63525 | ||||
| etendo | pg_default | profile | last_stat_indexes | 54119 | 1297 | 54119 | 2 | 185 | 865904 | 34531 | 328364 |
| etendo | pg_default | pg_temp_10 | ad_context_info | 50592 | 50591 | 50593 | 50592 | ||||
| etendo | pg_default | profile | last_stat_tables | 32888 | 3199 | 32888 | 54 | 186 | 529068 | 7460 | 2780225 |
| etendo | pg_default | pg_temp_6 | ad_context_info | 25659 | 25658 | 25721 | 25720 | ||||
| etendo | pg_default | pg_temp_3 | ad_context_info | 25314 | 25313 | 25316 | 25315 | ||||
| etendo | pg_default | pg_temp_3 | ad_context_info | 25208 | 25207 | 25213 | 25212 | ||||
| etendo | pg_default | pg_catalog | pg_attribute | 24333 | 24333 | 103 | 94517 | 326465 | 1352683 | ||
| etendo | pg_default | pg_temp_3 | ad_context_info | 12731 | 12730 | 12753 | 12752 | ||||
| etendo | pg_default | pg_temp_4 | ad_context_info | 12729 | 12728 | 12745 | 12744 | ||||
| etendo | pg_default | pg_temp_4 | ad_context_info | 12625 | 12624 | 12629 | 12628 | ||||
| etendo | pg_default | pg_temp_5 | ad_context_info | 12616 | 12615 | 12617 | 12616 | ||||
| etendo | pg_default | pg_temp_8 | ad_context_info | 12612 | 12611 | 12628 | 12627 | ||||
| etendo | pg_default | pg_temp_6 | ad_context_info | 12607 | 12606 | 12611 | 12610 | ||||
| etendo | pg_default | pg_temp_5 | ad_context_info | 12597 | 12597 | 12597 | 12597 | ||||
| etendo | pg_default | pg_catalog | pg_statistic | 16408 | 13551 | 2 | 16609 | 121027 | 101760 | ||
| pg_statistic(TOAST) | 2375 | 2369 | 15810 | 25284 | |||||||
| etendo | pg_default | profile | last_stat_user_functions | 8257 | 904 | 8257 | 46 | 380 | 239453 | ||
| last_stat_user_functions(TOAST) | |||||||||||
| etendo | pg_default | pg_catalog | pg_class | 1887 | 6728 | 1887 | 1375 | 6026 | 17654586 | 635511 | 621853 |
| etendo | pg_default | pg_catalog | pg_depend | 4633 | 4633 | 11 | 205808 | 44635 | 50254 |
| DB | Tablespace | Schema | Table | Upd | Upd(HOT) | Del | Vacuum | AutoVacuum | Analyze | AutoAnalyze |
|---|---|---|---|---|---|---|---|---|---|---|
| etendo | pg_default | public | c_invoice | 289605 | 23 | 1 | 23 | |||
| c_invoice(TOAST) | ||||||||||
| etendo | pg_default | pg_temp_5 | ad_context_info | 63510 | ||||||
| etendo | pg_default | profile | last_stat_indexes | 1297 | 2 | 54119 | 26 | 47 | 23 | |
| etendo | pg_default | pg_temp_10 | ad_context_info | 50591 | ||||||
| etendo | pg_default | profile | last_stat_tables | 3199 | 54 | 32888 | 26 | 47 | 23 | |
| etendo | pg_default | pg_temp_6 | ad_context_info | 25658 | ||||||
| etendo | pg_default | pg_temp_3 | ad_context_info | 25313 | ||||||
| etendo | pg_default | pg_temp_3 | ad_context_info | 25207 | ||||||
| etendo | pg_default | pg_catalog | pg_attribute | 24333 | 1 | 1 | 1 | |||
| etendo | pg_default | pg_catalog | pg_statistic | 16408 | 13551 | 2 | ||||
| pg_statistic(TOAST) | 2369 | 4 | ||||||||
| etendo | pg_default | pg_temp_3 | ad_context_info | 12730 | ||||||
| etendo | pg_default | pg_temp_4 | ad_context_info | 12728 | ||||||
| etendo | pg_default | pg_temp_4 | ad_context_info | 12624 | ||||||
| etendo | pg_default | pg_temp_5 | ad_context_info | 12615 | ||||||
| etendo | pg_default | pg_temp_8 | ad_context_info | 12611 | ||||||
| etendo | pg_default | pg_temp_6 | ad_context_info | 12606 | ||||||
| etendo | pg_default | pg_temp_5 | ad_context_info | 12597 | ||||||
| etendo | pg_default | profile | last_stat_user_functions | 904 | 46 | 8257 | 26 | 47 | 23 | |
| last_stat_user_functions(TOAST) | ||||||||||
| etendo | pg_default | pg_catalog | pg_class | 6728 | 1375 | 1887 | 1 | 1 | 1 | |
| etendo | pg_default | pg_catalog | pg_depend | 4633 | 1 | 1 |
| DB | Tablespace | Schema | Table | Size | Growth | Ins | Upd | Del | Upd(HOT) |
|---|---|---|---|---|---|---|---|---|---|
| etendo | pg_default | pg_temp_5 | ad_context_info | 4208 kB | 4208 kB | 63511 | 63510 | ||
| etendo | pg_default | pg_temp_10 | ad_context_info | 3368 kB | 3368 kB | 50592 | 50591 | ||
| etendo | pg_default | pg_temp_6 | ad_context_info | 1712 kB | 1712 kB | 25659 | 25658 | ||
| etendo | pg_default | pg_temp_3 | ad_context_info | 1696 kB | 1696 kB | 25314 | 25313 | ||
| etendo | pg_default | pg_temp_4 | ad_context_info | 864 kB | 864 kB | 12625 | 12624 | ||
| etendo | pg_default | profile | sample_stat_indexes | 1432 kB | 192 kB | 1245 | 1335 | ||
| etendo | pg_default | profile | last_stat_tables | 1248 kB | 120 kB | 32888 | 3199 | 32888 | 54 |
| etendo | pg_default | profile | sample_stat_user_functions | 568 kB | 96 kB | 880 | 998 | ||
| etendo | pg_default | profile | sample_stat_tables_total | 336 kB | 64 kB | 160 | 184 | ||
| etendo | pg_default | profile | sample_stat_database | 232 kB | 48 kB | 64 | 76 | ||
| etendo | pg_default | public | ad_process_request | 56 kB | 32 kB | 328 | 322 | ||
| ad_process_request(TOAST) | |||||||||
| etendo | pg_default | profile | sample_stat_cluster | 56 kB | 32 kB | 14 | 15 | ||
| etendo | pg_default | profile | last_stat_database | 40 kB | 32 kB | 88 | 88 | ||
| etendo | pg_default | profile | sample_stat_indexes_total | 96 kB | 32 kB | 68 | 84 | ||
| etendo | pg_default | profile | sample_statements_total | 136 kB | 32 kB | 39 | 51 | ||
| sample_statements_total(TOAST) | |||||||||
| etendo | pg_default | profile | sample_stat_user_func_total | 56 kB | 32 kB | 28 | 38 | ||
| etendo | pg_default | public | ad_ep_instance_para | 32 kB | 24 kB | 85 | 85 | ||
| ad_ep_instance_para(TOAST) | |||||||||
| DB | Tablespace | Schema | Table | Index | Scans | Blks | %Total |
|---|---|---|---|---|---|---|---|
| etendo | pg_default | public | m_productprice | m_productprice_key | 1046008 | 3148657 | 2.76 |
| etendo | pg_default | public | fin_payment_schedule | fin_paym_sch_inv_idx | 835359 | 2534434 | 2.22 |
| etendo | pg_default | public | m_product | m_product_key | 1154644 | 2318293 | 2.03 |
| etendo | pg_default | public | psat_activity_materials | psat_activity_mater_produni | 18311 | 2177186 | 1.91 |
| etendo | pg_default | public | c_invoice | c_invoice_key | 290692 | 1761481 | 1.54 |
| etendo | pg_default | public | m_product_trl | m_product_trl_product_langu_un | 1363153 | 1363540 | 1.19 |
| etendo | pg_default | pg_catalog | pg_class | pg_class_oid_index | 603818 | 1230050 | 1.08 |
| etendo | pg_default | public | c_invoice | c_invoice_bpartner | 6400 | 905377 | 0.79 |
| etendo | pg_default | public | c_invoice | c_invoice_client_org_date_doc | 880793 | 0.77 | |
| etendo | pg_default | pg_catalog | pg_attribute | pg_attribute_relid_attnum_index | 325983 | 711326 | 0.62 |
| etendo | pg_default | public | c_invoice | c_invoice_paid | 699044 | 0.61 | |
| etendo | pg_default | public | c_invoice | c_invoice_posted | 1380 | 698772 | 0.61 |
| etendo | pg_default | public | c_invoice | c_invoice_salesrep | 647650 | 0.57 | |
| etendo | pg_default | public | ad_tab | ad_tab_window | 302559 | 610927 | 0.53 |
| etendo | pg_default | public | c_invoice | c_invoice_updated | 594576 | 0.52 | |
| etendo | pg_default | public | c_invoice | c_invoice_docno | 585648 | 0.51 | |
| etendo | pg_default | public | c_debt_payment | c_debt_payment_invoice_idx | 276680 | 554695 | 0.49 |
| etendo | pg_default | public | psat_checklist_result | psat_chcklist_res_result_uk | 750 | 518215 | 0.45 |
| etendo | pg_default | public | ad_textinterfaces | ad_textinterfaces_key | 241984 | 490022 | 0.43 |
| etendo | pg_default | public | c_invoice | c_invoice_order | 2 | 321810 | 0.28 |
| DB | Tablespace | Schema | Table | Index | Scans | Blk Reads | %Total | Hits(%) |
|---|---|---|---|---|---|---|---|---|
| etendo | pg_default | public | psat_checklist_result | psat_chcklist_res_result_uk | 750 | 3339 | 0.74 | 99.36 |
| etendo | pg_default | public | ad_audit_trail | ad_audit_trail_pk | 1748 | 0.39 | 74.57 | |
| etendo | pg_default | public | c_invoice | c_invoice_client_org_date_doc | 1405 | 0.31 | 99.84 | |
| etendo | pg_default | public | c_invoice | c_invoice_paid | 1164 | 0.26 | 99.83 | |
| etendo | pg_default | public | c_orderline | c_orderline_key | 9615 | 895 | 0.20 | 96.94 |
| etendo | pg_default | public | c_invoice | c_invoice_posted | 1380 | 888 | 0.20 | 99.87 |
| etendo | pg_default | public | ad_image(TOAST) | pg_toast_74472_index | 13809 | 886 | 0.20 | 97.96 |
| etendo | pg_default | public | m_inoutline | m_inoutline_orderline | 9211 | 863 | 0.19 | 96.90 |
| etendo | pg_default | public | c_orderline | c_orderline_order2 | 34096 | 853 | 0.19 | 99.18 |
| etendo | pg_default | public | c_invoice | c_invoice_docno | 711 | 0.16 | 99.88 | |
| etendo | pg_default | public | c_invoice | c_invoice_updated | 536 | 0.12 | 99.91 | |
| etendo | pg_default | public | ad_session_usage_audit | ad_session_usage_audit_key | 524 | 0.12 | 89.07 | |
| etendo | pg_default | public | c_invoice | c_invoice_bpartner | 6400 | 421 | 0.09 | 99.95 |
| etendo | pg_default | public | c_invoiceline | c_invoiceline_inoutline | 938 | 363 | 0.08 | 87.13 |
| etendo | pg_default | public | c_invoice | c_invoice_key | 290692 | 344 | 0.08 | 99.98 |
| etendo | pg_default | public | advcrm_activity_related | advcrm_unique_project | 8 | 339 | 0.08 | 87.74 |
| etendo | pg_default | public | fin_payment_scheduledetail | fin_pay_scheduledetail_in | 2713 | 308 | 0.07 | 96.24 |
| etendo | pg_default | public | c_invoice | c_invoice_salesrep | 305 | 0.07 | 99.95 | |
| etendo | pg_default | public | fin_payment_schedule | fin_paym_sch_inv_idx | 835359 | 256 | 0.06 | 99.99 |
| etendo | pg_default | pg_catalog | pg_attribute | pg_attribute_relid_attnum_index | 325983 | 247 | 0.05 | 99.97 |
| DB | Tablespace | Schema | Table | Index | Index | Table | |||
|---|---|---|---|---|---|---|---|---|---|
| Size | Growth | Ins | Upd | Del | |||||
| etendo | pg_default | profile | sample_statements | ix_sample_stmts_qid | 912 kB | 304 kB | 1177 | 1249 | |
| etendo | pg_default | profile | sample_stat_tables | pk_sample_stat_tables | 856 kB | 96 kB | 1681 | 2162 | |
| etendo | pg_default | public | c_invoice | c_invoice_salesrep | 1936 kB | 48 kB | 289605 | ||
| etendo | pg_default | public | ad_process_run | ad_process_run_ad_prequest_id | 352 kB | 32 kB | 119 | 119 | 315 |
| etendo | pg_default | public | c_invoice | c_invoice_bpartner | 2592 kB | 24 kB | 289605 | ||
| etendo | pg_default | pg_catalog | pg_attribute | pg_attribute_relid_attnum_index | 720 kB | 16 kB | 24333 | 24333 | |
| postgres | pg_default | pg_catalog | pg_attribute | pg_attribute_relid_attnum_index | 88 kB | 8192 bytes | 1215 | 1215 | |
| etendo | pg_default | profile | sample_statements_total | pk_sample_statements_total | 40 kB | 8192 bytes | 27 | 39 | |
This table contains non-scanned indexes (during report period), ordered by number of DML operations on underlying tables. Constraint indexes are excluded.
| DB | Tablespaces | Schema | Table | Index | Index | Table | |||
|---|---|---|---|---|---|---|---|---|---|
| Size | Growth | Ins | Upd | Del | |||||
| etendo | pg_default | public | c_invoice | c_invoice_client_org_date_doc | 3992 kB | 289605 | |||
| etendo | pg_default | public | c_invoice | c_invoice_docno | 2144 kB | 289605 | |||
| etendo | pg_default | public | c_invoice | c_invoice_paid | 1976 kB | -16 kB | 289605 | ||
| etendo | pg_default | public | c_invoice | c_invoice_updated | 1584 kB | -40 kB | 289605 | ||
| etendo | pg_default | public | c_invoice | c_invoice_ad_user | 1584 kB | -8192 bytes | 289605 | ||
| etendo | pg_default | public | c_invoice | c_invoice_bp_extref_idx | 8192 bytes | 289605 | |||
| etendo | pg_default | public | c_invoice | c_invoice_salesrep | 1936 kB | 48 kB | 289605 | ||
| etendo | pg_default | public | ad_process_run | ad_process_run_ould_be_killed | 8192 bytes | 252 | 252 | 315 | |
| DB | Schema | Function | Executions | Time (s) | |||
|---|---|---|---|---|---|---|---|
| Total | Self | Mean | Mean self | ||||
| etendo | public | ad_org_isinnaturaltree | 1258545 | 32.45 | 7.96 | 0.000 | 0.000 |
| etendo | public | ad_isorgincluded | 1901056 | 24.59 | 24.59 | 0.000 | 0.000 |
| etendo | profile | take_sample | 23 | 16.58 | 0.02 | 0.721 | 0.001 |
| etendo | profile | take_sample_subset | 23 | 16.56 | 0.06 | 0.720 | 0.003 |
| etendo | profile | take_sample | 23 | 16.50 | 1.65 | 0.718 | 0.072 |
| etendo | public | ad_istriggerenabled | 1161368 | 15.69 | 15.69 | 0.000 | 0.000 |
| etendo | profile | collect_obj_stats | 23 | 9.20 | 2.84 | 0.400 | 0.123 |
| etendo | profile | dblink | 621 | 7.81 | 7.81 | 0.013 | 0.013 |
| etendo | public | ad_column_identifier | 7734 | 4.00 | 3.96 | 0.001 | 0.001 |
| etendo | profile | sample_dbobj_delta | 23 | 3.51 | 3.51 | 0.152 | 0.152 |
| etendo | public | to_char | 5032780 | 3.43 | 3.43 | 0.000 | 0.000 |
| etendo | public | c_order_post | 13 | 0.89 | 0.00 | 0.068 | 0.000 |
| etendo | public | c_order_post1 | 13 | 0.89 | 0.00 | 0.068 | 0.000 |
| etendo | public | c_order_post1 | 13 | 0.89 | 0.32 | 0.068 | 0.025 |
| etendo | profile | collect_pg_stat_statements_stats | 21 | 0.82 | 0.35 | 0.039 | 0.017 |
| etendo | public | to_number | 428559 | 0.81 | 0.81 | 0.000 | 0.000 |
| etendo | public | aprm_ispaymentconfirmed | 9708 | 0.79 | 0.79 | 0.000 | 0.000 |
| etendo | public | prouti_qtyremainingorderline | 9370 | 0.71 | 0.71 | 0.000 | 0.000 |
| etendo | public | prouti_delavailablewithoutres | 2326 | 0.52 | 0.52 | 0.000 | 0.000 |
| etendo | public | prouti_deliveryavailable | 2326 | 0.51 | 0.51 | 0.000 | 0.000 |
| DB | Schema | Function | Executions | Time (s) | |||
|---|---|---|---|---|---|---|---|
| Total | Self | Mean | Mean self | ||||
| etendo | public | to_char | 5032780 | 3.43 | 3.43 | 0.000 | 0.000 |
| etendo | public | ad_isorgincluded | 1901056 | 24.59 | 24.59 | 0.000 | 0.000 |
| etendo | public | ad_org_isinnaturaltree | 1258545 | 32.45 | 7.96 | 0.000 | 0.000 |
| etendo | public | ad_istriggerenabled | 1161368 | 15.69 | 15.69 | 0.000 | 0.000 |
| etendo | public | to_number | 428559 | 0.81 | 0.81 | 0.000 | 0.000 |
| etendo | public | obequals | 426513 | 0.48 | 0.48 | 0.000 | 0.000 |
| etendo | public | to_char | 46181 | 0.10 | 0.10 | 0.000 | 0.000 |
| etendo | public | to_char | 45854 | 0.08 | 0.08 | 0.000 | 0.000 |
| etendo | public | to_char | 21128 | 0.06 | 0.06 | 0.000 | 0.000 |
| etendo | public | substract_days | 13356 | 0.01 | 0.01 | 0.000 | 0.000 |
| etendo | public | uuid_generate_v4 | 10692 | 0.12 | 0.12 | 0.000 | 0.000 |
| etendo | public | aprm_ispaymentconfirmed | 9708 | 0.79 | 0.79 | 0.000 | 0.000 |
| etendo | public | prouti_qtyremainingorderline | 9370 | 0.71 | 0.71 | 0.000 | 0.000 |
| etendo | public | ad_column_identifier | 7734 | 4.00 | 3.96 | 0.001 | 0.001 |
| etendo | public | get_uuid | 3564 | 0.23 | 0.11 | 0.000 | 0.000 |
| etendo | public | add_days | 2394 | 0.00 | 0.00 | 0.000 | 0.000 |
| etendo | public | prouti_delavailablewithoutres | 2326 | 0.52 | 0.52 | 0.000 | 0.000 |
| etendo | public | prouti_deliveryavailable | 2326 | 0.51 | 0.51 | 0.000 | 0.000 |
| etendo | public | to_date | 1261 | 0.00 | 0.00 | 0.000 | 0.000 |
| etendo | public | lowerequaltimestamp | 1223 | 0.01 | 0.01 | 0.000 | 0.000 |
| DB | Schema | Function | Executions | Time (s) | |||
|---|---|---|---|---|---|---|---|
| Total | Self | Mean | Mean self | ||||
| etendo | public | c_invoice_trg | 289605 | 25.75 | 18.52 | 0.000 | 0.000 |
| etendo | public | c_invoice_trg2 | 289605 | 7.94 | 4.66 | 0.000 | 0.000 |
| etendo | public | einv_gene_chk_restrictions_trg | 289605 | 5.70 | 2.79 | 0.000 | 0.000 |
| etendo | public | pruti_inherit_invoice_contact | 289605 | 5.00 | 2.81 | 0.000 | 0.000 |
| etendo | public | au_advcrm_activity_trg | 133 | 0.51 | 0.46 | 0.004 | 0.003 |
| etendo | public | c_orderline_trg2 | 189 | 0.29 | 0.11 | 0.002 | 0.001 |
| etendo | public | au_c_bpartner_trg | 6 | 0.17 | 0.16 | 0.028 | 0.027 |
| etendo | public | ad_preference_mod_trg | 339 | 0.13 | 0.11 | 0.000 | 0.000 |
| etendo | public | au_m_product_trg | 2 | 0.09 | 0.09 | 0.047 | 0.044 |
| etendo | public | c_orderlinetax_trg | 59 | 0.09 | 0.06 | 0.002 | 0.001 |
| etendo | public | m_inoutline_trg | 29 | 0.08 | 0.04 | 0.003 | 0.001 |
| etendo | public | c_orderline2_trg | 189 | 0.08 | 0.06 | 0.000 | 0.000 |
| etendo | public | c_orderline_trg | 189 | 0.07 | 0.07 | 0.000 | 0.000 |
| etendo | public | advcrm_create_activity | 128 | 0.07 | 0.03 | 0.001 | 0.000 |
| etendo | public | ad_process_request_trg | 328 | 0.07 | 0.05 | 0.000 | 0.000 |
| etendo | public | au_psat_request_trg | 12 | 0.07 | 0.06 | 0.006 | 0.005 |
| etendo | public | psat_set_rel_request_activity | 23 | 0.07 | 0.04 | 0.003 | 0.002 |
| etendo | public | cus_act_log_desc_ol_trg | 18 | 0.05 | 0.02 | 0.003 | 0.001 |
| etendo | public | au_psat_activity_materials_trg | 11 | 0.05 | 0.04 | 0.004 | 0.004 |
| etendo | public | c_ordline_chk_restrictions_trg | 189 | 0.05 | 0.04 | 0.000 | 0.000 |
| DB | Tablespace | Schema | Table | Vacuum count | Autovacuum count | Ins | Upd | Del | Upd(HOT) |
|---|---|---|---|---|---|---|---|---|---|
| etendo | pg_default | profile | last_stat_tables | 26 | 32888 | 3199 | 32888 | 54 | |
| etendo | pg_default | profile | last_stat_indexes | 26 | 54119 | 1297 | 54119 | 2 | |
| etendo | pg_default | profile | last_stat_user_functions | 26 | 8257 | 904 | 8257 | 46 | |
| etendo | pg_default | public | c_invoice | 23 | 289605 | ||||
| etendo | pg_default | pg_catalog | pg_statistic | 2 | 16408 | 13551 | |||
| postgres | pg_default | pg_catalog | pg_type | 1 | 157 | 157 | |||
| postgres | pg_default | pg_catalog | pg_attribute | 1 | 1215 | 1215 | |||
| postgres | pg_default | pg_catalog | pg_class | 1 | 107 | 388 | 107 | 129 | |
| postgres | pg_default | pg_catalog | pg_statistic | 1 | 478 | 375 | |||
| etendo | pg_default | pg_catalog | pg_type | 1 | 2187 | 2189 | |||
| etendo | pg_default | pg_catalog | pg_attribute | 1 | 24333 | 24333 | |||
| etendo | pg_default | pg_catalog | pg_class | 1 | 1887 | 6728 | 1887 | 1375 | |
| etendo | pg_default | pg_catalog | pg_index | 1 | 527 | 527 | |||
| etendo | pg_default | public | ad_ep_instance_para | 1 | 85 | 85 | |||
| etendo | pg_default | public | ad_pinstance | 1 | 15 | 30 | 28 | 28 | |
| etendo | pg_default | public | ad_process_run | 1 | 304 | 304 | 315 | ||
| etendo | pg_default | public | prsync_entry | 1 | 504 | 1006 | 268 | 969 | |
| etendo | pg_default | profile | last_stat_database | 1 | 88 | 88 |
| DB | Tablespace | Schema | Table | Analyze count | Autoanalyze count | Ins | Upd | Del | Upd(HOT) |
|---|---|---|---|---|---|---|---|---|---|
| etendo | pg_default | profile | last_stat_tables | 47 | 23 | 32888 | 3199 | 32888 | 54 |
| etendo | pg_default | profile | last_stat_indexes | 47 | 23 | 54119 | 1297 | 54119 | 2 |
| etendo | pg_default | profile | last_stat_user_functions | 47 | 23 | 8257 | 904 | 8257 | 46 |
| etendo | pg_default | public | c_invoice | 1 | 23 | 289605 | |||
| etendo | pg_default | profile | last_stat_tablespaces | 22 | 44 | 44 | |||
| etendo | pg_default | public | ad_session | 15 | 25 | 1858 | 1831 | ||
| etendo | pg_default | public | ad_process_request | 1 | 6 | 328 | 322 | ||
| postgres | pg_global | pg_catalog | pg_pltemplate | 3 | |||||
| postgres | pg_global | pg_catalog | pg_tablespace | 3 | |||||
| postgres | pg_global | pg_catalog | pg_shdepend | 3 | 719 | 720 | |||
| postgres | pg_global | pg_catalog | pg_authid | 3 | |||||
| postgres | pg_global | pg_catalog | pg_database | 3 | |||||
| postgres | pg_global | pg_catalog | pg_shdescription | 3 | |||||
| postgres | pg_global | pg_catalog | pg_db_role_setting | 3 | |||||
| postgres | pg_global | pg_catalog | pg_shseclabel | 3 | |||||
| postgres | pg_global | pg_catalog | pg_replication_origin | 3 | |||||
| postgres | pg_global | pg_catalog | pg_subscription | 3 | |||||
| etendo | pg_global | pg_catalog | pg_pltemplate | 3 | |||||
| etendo | pg_global | pg_catalog | pg_tablespace | 3 | |||||
| etendo | pg_global | pg_catalog | pg_shdepend | 3 | 719 | 720 |
| DB | Tablespace | Schema | Table | Index | ~Vacuum bytes | Vacuum cnt | Autovacuum cnt | IX size | Relsize |
|---|---|---|---|---|---|---|---|---|---|
| etendo | pg_default | public | c_invoice | c_invoice_client_org_date_doc | 90 MB | 23 | 3992 kB | 23 MB | |
| etendo | pg_default | public | c_invoice | c_invoice_key | 62 MB | 23 | 2752 kB | 23 MB | |
| etendo | pg_default | public | c_invoice | c_invoice_bpartner | 57 MB | 23 | 2544 kB | 23 MB | |
| etendo | pg_default | public | c_invoice | c_invoice_docno | 48 MB | 23 | 2144 kB | 23 MB | |
| etendo | pg_default | public | c_invoice | c_invoice_paid | 43 MB | 23 | 1933 kB | 23 MB | |
| etendo | pg_default | public | c_invoice | c_invoice_posted | 43 MB | 23 | 1922 kB | 23 MB | |
| etendo | pg_default | public | c_invoice | c_invoice_salesrep | 42 MB | 23 | 1853 kB | 23 MB | |
| etendo | pg_default | public | c_invoice | c_invoice_updated | 35 MB | 23 | 1570 kB | 23 MB | |
| etendo | pg_default | public | c_invoice | c_invoice_ad_user | 35 MB | 23 | 1562 kB | 23 MB | |
| etendo | pg_default | public | c_invoice | c_invoice_order | 29 MB | 23 | 1305 kB | 23 MB | |
| etendo | pg_default | profile | last_stat_indexes | pk_last_stat_indexes | 10 MB | 26 | 395 kB | 1529 kB | |
| etendo | pg_default | profile | last_stat_tables | pk_last_stat_tables | 5776 kB | 26 | 221 kB | 1209 kB | |
| etendo | pg_default | pg_catalog | pg_attribute | pg_attribute_relid_attnam_index | 1096 kB | 1 | 1096 kB | 4304 kB | |
| etendo | pg_default | pg_catalog | pg_statistic | pg_statistic_relid_att_inh_index | 752 kB | 2 | 376 kB | 4724 kB | |
| etendo | pg_default | pg_catalog | pg_attribute | pg_attribute_relid_attnum_index | 720 kB | 1 | 720 kB | 4304 kB | |
| etendo | pg_default | public | prsync_entry | prsync_entry_key | 456 kB | 1 | 456 kB | 4112 kB | |
| etendo | pg_default | pg_catalog | pg_statistic(TOAST) | pg_toast_2619_index | 368 kB | 4 | 93 kB | 3896 kB | |
| etendo | pg_default | public | ad_process_run | ad_process_run_ad_prequest_id | 320 kB | 1 | 320 kB | 10 MB | |
| etendo | pg_default | public | ad_process_run | ad_process_run_key | 312 kB | 1 | 312 kB | 10 MB | |
| etendo | pg_default | pg_catalog | pg_class | pg_class_relname_nsp_index | 184 kB | 1 | 184 kB | 688 kB |
Data in this section is not differential. This data is valid for last report sample only.
| DB | Schema | Table | Live | Dead | %Dead | Last AV | Size |
|---|---|---|---|---|---|---|---|
| etendo | profile | sample_stat_tables | 24138 | 3102 | 11 | 7024 kB | |
| etendo | public | ad_process_run | 5135 | 531 | 9 | 11 MB | |
| etendo | public | fin_payment_schedule | 60617 | 6 | 0 | 15 MB |
Table shows modified tuples statistics since last analyze.
Data in this section is not differential. This data is valid for last report sample only.
| DB | Schema | Table | Live | Dead | Mod | %Mod | Last AA | Size |
|---|---|---|---|---|---|---|---|---|
| etendo | public | ad_process_run | 5135 | 531 | 202 | 3 | 2026-07-16 19:29:40.749568+02 | 11 MB |
| etendo | profile | sample_stat_tables | 24138 | 3102 | 844 | 3 | 2026-07-16 23:00:44.928998+02 | 7024 kB |
| etendo | public | fin_payment_schedule | 60617 | 6 | 16 | 0 | 2025-05-14 08:30:29.130156+02 | 15 MB |
| Defined settings | ||||
|---|---|---|---|---|
| Setting | reset_val | Unit | Source | Notes |
| checkpoint_completion_target | 0.9 | /etc/postgresql/10/main/postgresql.conf:211 | ||
| client_encoding | UTF8 | |||
| cluster_name | 10/main | /etc/postgresql/10/main/postgresql.conf:477 | ||
| config_file | /etc/postgresql/10/main/postgresql.conf | |||
| data_checksums | on | |||
| data_directory | /var/lib/postgresql/10/main | |||
| DateStyle | ISO, DMY | /etc/postgresql/10/main/postgresql.conf:566 | ||
| default_text_search_config | pg_catalog.spanish | /etc/postgresql/10/main/postgresql.conf:588 | ||
| effective_cache_size | 1572864 | 8kB | /etc/postgresql/10/main/postgresql.conf:315 | |
| effective_io_concurrency | 200 | /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_collate | es_ES.UTF-8 | |||
| lc_ctype | es_ES.UTF-8 | |||
| lc_messages | en_US.UTF-8 | /etc/postgresql/10/main/conf.d/15-pgbadger.conf:11 | ||
| lc_monetary | es_ES.UTF-8 | /etc/postgresql/10/main/postgresql.conf:583 | ||
| lc_numeric | en_US.UTF-8 | /etc/postgresql/10/main/conf.d/01-openbravo-standard-postgres10.conf:38 | ||
| lc_time | es_ES.UTF-8 | /etc/postgresql/10/main/postgresql.conf:585 | ||
| log_autovacuum_min_duration | 0 | ms | /etc/postgresql/10/main/conf.d/15-pgbadger.conf:9 | |
| log_checkpoints | on | /etc/postgresql/10/main/conf.d/01-openbravo-standard-postgres10.conf:26 | ||
| log_connections | on | /etc/postgresql/10/main/conf.d/15-pgbadger.conf:1 | ||
| log_disconnections | on | /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_waits | on | /etc/postgresql/10/main/conf.d/15-pgbadger.conf:5 | ||
| log_min_duration_statement | 1000 | ms | /etc/postgresql/10/main/conf.d/15-pgbadger.conf:10 | |
| log_temp_files | 0 | kB | /etc/postgresql/10/main/conf.d/15-pgbadger.conf:7 | |
| log_timezone | localtime | /etc/postgresql/10/main/conf.d/01-openbravo-standard-postgres10.conf:22 | ||
| maintenance_work_mem | 1048576 | kB | /etc/postgresql/10/main/postgresql.conf:123 | |
| max_locks_per_transaction | 128 | /etc/postgresql/10/main/conf.d/01-openbravo-standard-postgres10.conf:17 | ||
| max_stack_depth | 2048 | kB | ||
| max_wal_size | 4096 | MB | /etc/postgresql/10/main/postgresql.conf:209 | |
| min_wal_size | 1024 | MB | /etc/postgresql/10/main/postgresql.conf:210 | |
| pg_conf_load_time | 2026-07-15 05:00:03.654971+02 | |||
| pg_conf_load_time | 2026-07-16 05:00:04.153843+02 | 2026-07-16 06:00:02+02 | ||
| pg_postmaster_start_time | 2026-07-15 05:00:03.780547+02 | |||
| pg_postmaster_start_time | 2026-07-16 05:00:04.286147+02 | 2026-07-16 06:00:02+02 | ||
| pg_stat_statements.max | 10000 | /etc/postgresql/10/main/postgresql.conf:663 | ||
| pg_stat_statements.track | all | /etc/postgresql/10/main/postgresql.conf:664 | ||
| random_page_cost | 1.1 | /etc/postgresql/10/main/postgresql.conf:307 | ||
| server_encoding | UTF8 | |||
| shared_buffers | 524288 | 8kB | /etc/postgresql/10/main/postgresql.conf:113 | |
| shared_preload_libraries | $libdir/pg_stat_statements | /etc/postgresql/10/main/postgresql.conf:659 | ||
| ssl | on | /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 | ||
| TimeZone | localtime | /etc/postgresql/10/main/conf.d/01-openbravo-standard-postgres10.conf:23 | ||
| timezone_abbreviations | Default | |||
| track_functions | all | /etc/postgresql/10/main/conf.d/15-pgbadger.conf:8 | ||
| version | PostgreSQL 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_buffers | 2048 | 8kB | /etc/postgresql/10/main/postgresql.conf:198 | |
| work_mem | 10485 | kB | /etc/postgresql/10/main/postgresql.conf:122 | |
| Default settings | ||||
| Setting | reset_val | Unit | Source | Notes |
| allow_in_place_tablespaces | off | |||
| allow_system_table_mods | off | |||
| application_name | ||||
| archive_command | ||||
| archive_mode | off | |||
| archive_timeout | 0 | s | ||
| array_nulls | on | |||
| authentication_timeout | 60 | s | ||
| autovacuum | on | |||
| autovacuum_analyze_scale_factor | 0.1 | |||
| autovacuum_analyze_threshold | 50 | |||
| autovacuum_freeze_max_age | 200000000 | |||
| autovacuum_max_workers | 3 | |||
| autovacuum_multixact_freeze_max_age | 400000000 | |||
| autovacuum_naptime | 60 | s | ||
| autovacuum_vacuum_cost_delay | 20 | ms | ||
| autovacuum_vacuum_cost_limit | -1 | |||
| autovacuum_vacuum_scale_factor | 0.2 | |||
| autovacuum_vacuum_threshold | 50 | |||
| autovacuum_work_mem | -1 | kB | ||
| backend_flush_after | 0 | 8kB | ||
| backslash_quote | safe_encoding | |||
| bgwriter_delay | 200 | ms | ||
| bgwriter_flush_after | 64 | 8kB | ||
| bgwriter_lru_maxpages | 100 | |||
| bgwriter_lru_multiplier | 2 | |||
| block_size | 8192 | |||
| bonjour | off | |||
| bonjour_name | ||||
| bytea_output | hex | |||
| check_function_bodies | on | |||
| checkpoint_flush_after | 32 | 8kB | ||
| checkpoint_timeout | 300 | s | ||
| checkpoint_warning | 30 | s | ||
| client_min_messages | notice | |||
| commit_delay | 0 | |||
| commit_siblings | 5 | |||
| constraint_exclusion | partition | |||
| cpu_index_tuple_cost | 0.005 | |||
| cpu_operator_cost | 0.0025 | |||
| cpu_tuple_cost | 0.01 | |||
| cursor_tuple_fraction | 0.1 | |||
| data_sync_retry | off | |||
| db_user_namespace | off | |||
| deadlock_timeout | 1000 | ms | ||
| debug_assertions | off | |||
| debug_pretty_print | on | |||
| debug_print_parse | off | |||
| debug_print_plan | off | |||
| debug_print_rewritten | off | |||
| default_statistics_target | 100 | /etc/postgresql/10/main/postgresql.conf:329 | ||
| default_tablespace | ||||
| default_transaction_deferrable | off | |||
| default_transaction_isolation | read committed | |||
| default_transaction_read_only | off | |||
| default_with_oids | off | |||
| dynamic_library_path | $libdir | |||
| dynamic_shared_memory_type | posix | /etc/postgresql/10/main/postgresql.conf:127 | ||
| enable_bitmapscan | on | |||
| enable_gathermerge | on | |||
| enable_hashagg | on | |||
| enable_hashjoin | on | |||
| enable_indexonlyscan | on | |||
| enable_indexscan | on | |||
| enable_material | on | |||
| enable_mergejoin | on | |||
| enable_nestloop | on | |||
| enable_seqscan | on | |||
| enable_sort | on | |||
| enable_tidscan | on | |||
| escape_string_warning | on | |||
| event_source | PostgreSQL | |||
| exit_on_error | off | |||
| extra_float_digits | 0 | |||
| force_parallel_mode | off | |||
| from_collapse_limit | 8 | |||
| fsync | on | |||
| full_page_writes | on | |||
| geqo | on | |||
| geqo_effort | 5 | |||
| geqo_generations | 0 | |||
| geqo_pool_size | 0 | |||
| geqo_seed | 0 | |||
| geqo_selection_bias | 2 | |||
| geqo_threshold | 12 | |||
| gin_fuzzy_search_limit | 0 | |||
| gin_pending_list_limit | 4096 | kB | ||
| hot_standby | on | |||
| hot_standby_feedback | off | |||
| huge_pages | try | |||
| idle_in_transaction_session_timeout | 0 | ms | ||
| ignore_checksum_failure | off | |||
| ignore_system_indexes | off | |||
| integer_datetimes | on | |||
| IntervalStyle | postgres | |||
| join_collapse_limit | 8 | |||
| krb_caseins_users | off | |||
| krb_server_keyfile | FILE:/etc/postgresql-common/krb5.keytab | |||
| listen_addresses | localhost | |||
| local_preload_libraries | ||||
| lock_timeout | 0 | ms | ||
| lo_compat_privileges | off | |||
| log_destination | stderr | |||
| log_directory | log | |||
| log_duration | off | /etc/postgresql/10/main/conf.d/15-pgbadger.conf:3 | ||
| log_error_verbosity | default | |||
| log_executor_stats | off | |||
| log_file_mode | 384 | |||
| log_filename | postgresql-%Y-%m-%d_%H%M%S.log | |||
| logging_collector | off | |||
| log_hostname | off | |||
| log_min_error_statement | error | |||
| log_min_messages | warning | |||
| log_parser_stats | off | |||
| log_planner_stats | off | |||
| log_replication_commands | off | |||
| log_rotation_age | 1440 | min | ||
| log_rotation_size | 10240 | kB | ||
| log_statement | none | /etc/postgresql/10/main/conf.d/15-pgbadger.conf:6 | ||
| log_statement_stats | off | |||
| log_truncate_on_rotation | off | |||
| max_connections | 100 | /etc/postgresql/10/main/postgresql.conf:64 | ||
| max_files_per_process | 1000 | |||
| max_function_args | 100 | |||
| max_identifier_length | 63 | |||
| max_index_keys | 32 | |||
| max_logical_replication_workers | 4 | |||
| max_parallel_workers | 8 | |||
| max_parallel_workers_per_gather | 2 | |||
| max_pred_locks_per_page | 2 | |||
| max_pred_locks_per_relation | -2 | |||
| max_pred_locks_per_transaction | 64 | |||
| max_prepared_transactions | 0 | |||
| max_replication_slots | 10 | |||
| max_standby_archive_delay | 30000 | ms | ||
| max_standby_streaming_delay | 30000 | ms | ||
| max_sync_workers_per_subscription | 2 | |||
| max_wal_senders | 10 | |||
| max_worker_processes | 8 | |||
| min_parallel_index_scan_size | 64 | 8kB | ||
| min_parallel_table_scan_size | 1024 | 8kB | ||
| old_snapshot_threshold | -1 | min | ||
| operator_precedence_warning | off | |||
| parallel_setup_cost | 1000 | |||
| parallel_tuple_cost | 0.1 | |||
| password_encryption | md5 | |||
| pg_profile.topn | 20 | |||
| pg_stat_statements.save | on | |||
| pg_stat_statements.track_utility | on | |||
| port | 5432 | /etc/postgresql/10/main/postgresql.conf:63 | ||
| post_auth_delay | 0 | s | ||
| pre_auth_delay | 0 | s | ||
| quote_all_identifiers | off | |||
| replacement_sort_tuples | 150000 | |||
| restart_after_crash | on | |||
| row_security | on | |||
| search_path | "$user", public | |||
| segment_size | 131072 | 8kB | ||
| seq_page_cost | 1 | |||
| server_version | 10.23 (Ubuntu 10.23-0ubuntu0.18.04.2) | |||
| server_version_num | 100023 | |||
| session_preload_libraries | ||||
| session_replication_role | origin | |||
| ssl_ca_file | ||||
| ssl_ciphers | HIGH:MEDIUM:+3DES:!aNULL | |||
| ssl_crl_file | ||||
| ssl_dh_params_file | ||||
| ssl_ecdh_curve | prime256v1 | |||
| ssl_prefer_server_ciphers | on | |||
| standard_conforming_strings | on | |||
| statement_timeout | 0 | ms | ||
| superuser_reserved_connections | 3 | |||
| synchronize_seqscans | on | |||
| synchronous_commit | on | |||
| synchronous_standby_names | ||||
| syslog_facility | local0 | |||
| syslog_ident | postgres | |||
| syslog_sequence_numbers | on | |||
| syslog_split_messages | on | |||
| system_identifier | 6922115330454611200 | |||
| tcp_keepalives_count | 0 | |||
| tcp_keepalives_idle | 0 | s | ||
| tcp_keepalives_interval | 0 | s | ||
| temp_buffers | 1024 | 8kB | ||
| temp_file_limit | -1 | kB | ||
| temp_tablespaces | ||||
| trace_notify | off | |||
| trace_recovery_messages | log | |||
| trace_sort | off | |||
| track_activities | on | |||
| track_activity_query_size | 1024 | |||
| track_commit_timestamp | off | |||
| track_counts | on | |||
| track_io_timing | off | |||
| transaction_deferrable | off | |||
| transaction_isolation | default | |||
| transaction_read_only | off | |||
| transform_null_equals | off | |||
| unix_socket_directories | /var/run/postgresql | /etc/postgresql/10/main/postgresql.conf:66 | ||
| unix_socket_group | ||||
| unix_socket_permissions | 511 | |||
| update_process_title | on | |||
| vacuum_cost_delay | 0 | ms | ||
| vacuum_cost_limit | 200 | |||
| vacuum_cost_page_dirty | 20 | |||
| vacuum_cost_page_hit | 1 | |||
| vacuum_cost_page_miss | 10 | |||
| vacuum_defer_cleanup_age | 0 | |||
| vacuum_freeze_min_age | 50000000 | |||
| vacuum_freeze_table_age | 150000000 | |||
| vacuum_multixact_freeze_min_age | 5000000 | |||
| vacuum_multixact_freeze_table_age | 150000000 | |||
| wal_block_size | 8192 | |||
| wal_compression | off | |||
| wal_consistency_checking | ||||
| wal_keep_segments | 0 | |||
| wal_level | replica | |||
| wal_log_hints | off | |||
| wal_receiver_status_interval | 10 | s | ||
| wal_receiver_timeout | 60000 | ms | ||
| wal_retrieve_retry_interval | 5000 | ms | ||
| wal_segment_size | 2048 | 8kB | ||
| wal_sender_timeout | 60000 | ms | ||
| wal_sync_method | fdatasync | |||
| wal_writer_delay | 200 | ms | ||
| wal_writer_flush_after | 128 | 8kB | ||
| xmlbinary | base64 | |||
| xmloption | content | |||
| zero_damaged_pages | off | |||