pg_profile version 0.3.6
Server name: local
Report interval: 2026-07-19 04:00:02+02 - 2026-07-20 03:00:02+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 | |||
| openbravo | 104965 | 1244 | 99.99 | 191619 | 3233812389 | 1755125423 | 1333252681 | 227074 | 52643 | 146275 | 23 GB | 17251867 | 20 GB | 101 MB | |
| postgres | 11705 | 100.00 | 7 | 658378 | 1901667 | 348048 | 6383 kB | ||||||||
| Total | 116670 | 1244 | 99.99 | 191626 | 3234470767 | 1757027090 | 1333600729 | 227074 | 52643 | 146275 | 23 GB | 17251867 | 20 GB | 101 MB | |
| 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 | |||
| openbravo | 57448198 | 17465.45 | 5.85 | 3344777011 | 350185 | 36913225 | 19664504 | 15866 | ||||||
| postgres | 5612 | 10.80 | 86779 | 345 | ||||||||||
| template1 | 6348 | 6.15 | 7176 | 276 | ||||||||||
| Total | 57460158 | 17482.39 | 5.85 | 3344870966 | 350185 | 36913225 | 19664504 | 16487 | ||||||
| Metric | Value |
|---|---|
| Scheduled checkpoints | 276 |
| Requested checkpoints | |
| Checkpoint write time (s) | 25669.52 |
| Checkpoint sync time (s) | 6.13 |
| Checkpoints buffers written | 298873 |
| Background buffers written | |
| Backend buffers written | 13871 |
| Backend fsync count | |
| Bgwriter interrupts (too many buffers) | |
| Number of buffers allocated | 191633 |
| WAL generated | 2043 MB |
| WAL segments archived | |
| WAL segments archive failed |
| Tablespace | Path | Size | Growth |
|---|---|---|---|
| pg_default | 20 GB | 101 MB | |
| pg_global | 766 kB |
| Query ID | Database | Exec (s) | %Total | Rows | Execution times (ms) | Executions | |||
|---|---|---|---|---|---|---|---|---|---|
| Mean | Min | Max | StdErr | ||||||
[7d43ad7e] | openbravo | 8922.03 | 51.03 | 13332430 | 1115253.232 | 1107817.505 | 1124579.368 | 5643.538 | 8 |
[26c6f357] | openbravo | 5656.84 | 32.36 | 634953 | 707104.388 | 697490.002 | 725206.192 | 8279.833 | 8 |
[a0643fcb] | openbravo | 475.65 | 2.72 | 7864277 | 59455.639 | 57668.908 | 61064.683 | 1050.019 | 8 |
[4c390f69] | openbravo | 233.63 | 1.34 | 5118667 | 29203.204 | 19942.728 | 39046.102 | 6087.384 | 8 |
[42430e3c] | openbravo | 226.79 | 1.30 | 5740189 | 28348.713 | 21831.881 | 32394.664 | 3870.501 | 8 |
[2870663b] | openbravo | 180.87 | 1.03 | 13967383 | 0.013 | 0.007 | 10.577 | 0.005 | 13967383 |
[4f5926de] | openbravo | 150.66 | 0.86 | 2723539 | 18832.017 | 13968.014 | 26243.354 | 4763.292 | 8 |
[b0ebb687] | openbravo | 121.12 | 0.69 | 3035296 | 15139.599 | 13606.535 | 17211.940 | 1323.283 | 8 |
[eb509fc7] | openbravo | 77.60 | 0.44 | 2723491 | 9700.503 | 9109.302 | 12205.456 | 958.174 | 8 |
[806faf8c] | openbravo | 77.59 | 0.44 | 594679 | 77586.530 | 77586.530 | 77586.530 | 1 | |
[738f9776] | openbravo | 75.00 | 0.43 | 589400 | 75001.790 | 75001.790 | 75001.790 | 1 | |
[5b59cf42] | openbravo | 61.95 | 0.35 | 13967383 | 0.004 | 0.003 | 5.818 | 0.003 | 13967383 |
[ce4e88c2] | openbravo | 60.35 | 0.35 | 13764637 | 0.004 | 0.003 | 11.083 | 0.004 | 13764637 |
[9c0a6d60] | openbravo | 59.62 | 0.34 | 422 | 1987.464 | 1929.843 | 2112.234 | 36.404 | 30 |
[1e425839] | openbravo | 58.91 | 0.34 | 30722 | 2104.062 | 2088.815 | 2131.773 | 9.552 | 28 |
[acae3908] | openbravo | 43.75 | 0.25 | 172 | 254.359 | 94.555 | 422.701 | 95.925 | 172 |
[cd9c0fd2] | openbravo | 42.43 | 0.24 | 2592 | 42425.198 | 42425.198 | 42425.198 | 1 | |
[196c6f74] | openbravo | 41.03 | 0.23 | 13967383 | 0.003 | 0.002 | 3.820 | 0.002 | 13967383 |
[ab242de4] | openbravo | 40.44 | 0.23 | 125471 | 40442.182 | 40442.182 | 40442.182 | 1 | |
[be51200d] | openbravo | 36.78 | 0.21 | 1510 | 477.612 | 447.247 | 678.016 | 28.797 | 77 |
| Query ID | Database | Executions | %Total | Rows | Mean(ms) | Min(ms) | Max(ms) | StdErr(ms) | Elapsed(s) |
|---|---|---|---|---|---|---|---|---|---|
[2870663b] | openbravo | 13967383 | 24.31 | 13967383 | 0.013 | 0.007 | 10.577 | 0.005 | 180.9 |
[5b59cf42] | openbravo | 13967383 | 24.31 | 13967383 | 0.004 | 0.003 | 5.818 | 0.003 | 62.0 |
[196c6f74] | openbravo | 13967383 | 24.31 | 13967383 | 0.003 | 0.002 | 3.820 | 0.002 | 41.0 |
[ce4e88c2] | openbravo | 13764637 | 23.96 | 13764637 | 0.004 | 0.003 | 11.083 | 0.004 | 60.3 |
[cf182c3a] | openbravo | 315392 | 0.55 | 8309 | 0.026 | 0.008 | 14.201 | 0.060 | 8.1 |
[3cb4d968] | openbravo | 122473 | 0.21 | 122473 | 0.003 | 0.002 | 1.077 | 0.003 | 0.4 |
[b19ed954] | openbravo | 92553 | 0.16 | 92553 | 0.009 | 0.003 | 63.201 | 0.208 | 0.9 |
[8e21a910] | openbravo | 89221 | 0.16 | 89221 | 0.007 | 0.002 | 0.809 | 0.006 | 0.7 |
[6f9b1a85] | openbravo | 73226 | 0.13 | 0.002 | 0.000 | 0.486 | 0.004 | 0.1 | |
[2049516b] | openbravo | 71994 | 0.13 | 0.001 | 0.000 | 0.097 | 0.001 | 0.1 | |
[3051ec96] | openbravo | 44249 | 0.08 | 44249 | 0.228 | 0.106 | 99.619 | 1.671 | 10.1 |
[6b7612aa] | openbravo | 43594 | 0.08 | 43594 | 0.003 | 0.002 | 0.812 | 0.004 | 0.1 |
[afe3cf8b] | openbravo | 30528 | 0.05 | 30528 | 0.025 | 0.012 | 2.233 | 0.024 | 0.7 |
[5c26872c] | openbravo | 16790 | 0.03 | 16790 | 0.015 | 0.007 | 3.878 | 0.031 | 0.2 |
[c228f769] | openbravo | 16289 | 0.03 | 16289 | 0.032 | 0.015 | 0.788 | 0.016 | 0.5 |
[2e63909b] | openbravo | 15941 | 0.03 | 798 | 0.005 | 0.004 | 0.222 | 0.003 | 0.1 |
[8a770ed5] | openbravo | 12605 | 0.02 | 12605 | 0.080 | 0.016 | 5.637 | 0.110 | 1.0 |
[c78d8d00] | openbravo | 12286 | 0.02 | 12286 | 0.306 | 0.033 | 3.778 | 0.176 | 3.8 |
[231ef314] | openbravo | 12284 | 0.02 | 12284 | 0.519 | 0.160 | 4.571 | 0.323 | 6.4 |
[c28fb106] | openbravo | 12284 | 0.02 | 12284 | 0.004 | 0.003 | 0.107 | 0.003 | 0.1 |
| Query ID | Database | blks fetched | %Total | Hits(%) | Elapsed(s) | Rows | Executions |
|---|---|---|---|---|---|---|---|
[26c6f357] | openbravo | 2552956594 | 76.32 | 100.00 | 5656.8 | 634953 | 8 |
[a0643fcb] | openbravo | 189573987 | 5.67 | 100.00 | 475.6 | 7864277 | 8 |
[7d43ad7e] | openbravo | 123255831 | 3.68 | 99.99 | 8922.0 | 13332430 | 8 |
[42430e3c] | openbravo | 76255218 | 2.28 | 99.97 | 226.8 | 5740189 | 8 |
[4f5926de] | openbravo | 49273819 | 1.47 | 100.00 | 150.7 | 2723539 | 8 |
[b0ebb687] | openbravo | 47950448 | 1.43 | 99.97 | 121.1 | 3035296 | 8 |
[2870663b] | openbravo | 41917191 | 1.25 | 100.00 | 180.9 | 13967383 | 13967383 |
[ce4e88c2] | openbravo | 27544316 | 0.82 | 100.00 | 60.3 | 13764637 | 13764637 |
[eb509fc7] | openbravo | 27446759 | 0.82 | 100.00 | 77.6 | 2723491 | 8 |
[4c390f69] | openbravo | 21943437 | 0.66 | 99.99 | 233.6 | 5118667 | 8 |
[9c0a6d60] | openbravo | 21304873 | 0.64 | 100.00 | 59.6 | 422 | 30 |
[be089ba] | openbravo | 16517703 | 0.49 | 100.00 | 33.9 | 6 | |
[196c6f74] | openbravo | 13967383 | 0.42 | 100.00 | 41.0 | 13967383 | 13967383 |
[5b59cf42] | openbravo | 13967383 | 0.42 | 100.00 | 62.0 | 13967383 | 13967383 |
[acae3908] | openbravo | 11606752 | 0.35 | 99.97 | 43.7 | 172 | 172 |
[68af0d51] | openbravo | 11169547 | 0.33 | 100.00 | 20.5 | 6 | |
[4fe628d8] | openbravo | 8329496 | 0.25 | 100.00 | 14.7 | 6 | |
[92975a8e] | openbravo | 6549617 | 0.20 | 99.99 | 34.1 | 23 | 23 |
[40fd3671] | openbravo | 6549479 | 0.20 | 99.99 | 34.1 | 23 | |
[2dc8e362] | openbravo | 6113512 | 0.18 | 100.00 | 15.5 | 6 |
| Query ID | Database | Reads | %Total | Hits(%) | Elapsed(s) | Rows | Executions |
|---|---|---|---|---|---|---|---|
[42430e3c] | openbravo | 19478 | 9.85 | 99.97 | 226.8 | 5740189 | 8 |
[b0ebb687] | openbravo | 14546 | 7.36 | 99.97 | 121.1 | 3035296 | 8 |
[7d43ad7e] | openbravo | 14047 | 7.10 | 99.99 | 8922.0 | 13332430 | 8 |
[25bcd965] | openbravo | 12115 | 6.13 | 96.55 | 4.3 | 850 | 1 |
[1a2c25cc] | openbravo | 12040 | 6.09 | 97.36 | 1.5 | 5 | 1 |
[26c6f357] | openbravo | 10882 | 5.50 | 100.00 | 5656.8 | 634953 | 8 |
[3051ec96] | openbravo | 9561 | 4.83 | 99.19 | 10.1 | 44249 | 44249 |
[e84afa23] | openbravo | 5012 | 2.53 | 99.91 | 3.7 | 31960 | 8 |
[b76c5e2] | openbravo | 3961 | 2.00 | 93.25 | 1.1 | 1438 | 1438 |
[a0643fcb] | openbravo | 3883 | 1.96 | 100.00 | 475.6 | 7864277 | 8 |
[38c3f6e1] | openbravo | 3725 | 1.88 | 97.31 | 0.8 | 1324 | 28 |
[2951fe49] | openbravo | 3644 | 1.84 | 99.45 | 1.8 | 8 | 1 |
[e2543c48] | openbravo | 3299 | 1.67 | 98.18 | 1.8 | 1328 | 1328 |
[a852adf9] | openbravo | 3111 | 1.57 | 95.20 | 0.6 | 1324 | 28 |
[acae3908] | openbravo | 3027 | 1.53 | 99.97 | 43.7 | 172 | 172 |
[b34f1d1f] | openbravo | 2978 | 1.51 | 90.60 | 1.0 | 818 | 818 |
[f7c054b4] | openbravo | 2907 | 1.47 | 90.79 | 0.6 | 833 | 833 |
[1aab69d2] | openbravo | 2582 | 1.31 | 99.87 | 6.9 | 30 | 30 |
[4c390f69] | openbravo | 2434 | 1.23 | 99.99 | 233.6 | 5118667 | 8 |
[97aab45d] | openbravo | 2273 | 1.15 | 92.17 | 0.5 | 815 | 815 |
| Query ID | Database | Dirtied | %Total | Hits(%) | Elapsed(s) | Rows | Executions |
|---|---|---|---|---|---|---|---|
[3051ec96] | openbravo | 97553 | 27.86 | 99.19 | 10.1 | 44249 | 44249 |
[40fd3671] | openbravo | 17997 | 5.14 | 99.99 | 34.1 | 23 | |
[92975a8e] | openbravo | 17997 | 5.14 | 99.99 | 34.1 | 23 | 23 |
[e2543c48] | openbravo | 7755 | 2.21 | 98.18 | 1.8 | 1328 | 1328 |
[38c3f6e1] | openbravo | 7020 | 2.00 | 97.31 | 0.8 | 1324 | 28 |
[fed47e50] | openbravo | 6633 | 1.89 | 99.85 | 7.1 | 1328 | 1328 |
[edb3cd2d] | openbravo | 5960 | 1.70 | 99.83 | 0.4 | 1324 | 28 |
[f1896355] | openbravo | 5798 | 1.66 | 99.54 | 0.9 | 396 | 396 |
[ddcc675a] | openbravo | 5522 | 1.58 | 98.94 | 0.8 | 365 | 365 |
[978c2f22] | openbravo | 5499 | 1.57 | 99.63 | 2.6 | 5441 | 5441 |
[84a8bcfc] | openbravo | 5234 | 1.49 | 97.97 | 0.9 | 768 | 768 |
[5d2e4e6c] | openbravo | 5073 | 1.45 | 97.84 | 0.8 | 1263 | 1263 |
[a1b7c5f] | openbravo | 4988 | 1.42 | 98.36 | 1.2 | 1196 | 1196 |
[fcea205c] | openbravo | 4885 | 1.39 | 96.34 | 0.7 | 1192 | 1192 |
[b1de800e] | openbravo | 4788 | 1.37 | 99.15 | 0.3 | 1341 | 1341 |
[71f33a7c] | openbravo | 4692 | 1.34 | 99.46 | 1.0 | 1282 | 1282 |
[b34f1d1f] | openbravo | 4403 | 1.26 | 90.60 | 1.0 | 818 | 818 |
[97aab45d] | openbravo | 4375 | 1.25 | 92.17 | 0.5 | 815 | 815 |
[3afdf1db] | openbravo | 4123 | 1.18 | 98.36 | 0.8 | 2203 | 2203 |
[b76c5e2] | openbravo | 4090 | 1.17 | 93.25 | 1.1 | 1438 | 1438 |
No data in this section
| Query ID | Database | Local fetched | Hits(%) | Local (blk) | Temp (blk) | Elapsed(s) | Rows | Executions | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Write | %Total | Read | %Total | Write | %Total | Read | %Total | |||||||
[7d43ad7e] | openbravo | 17869162 | 90.87 | 35117066 | 95.13 | 8922.0 | 13332430 | 8 | ||||||
[42430e3c] | openbravo | 1139155 | 5.79 | 1139779 | 3.09 | 226.8 | 5740189 | 8 | ||||||
[1e425839] | openbravo | 259578 | 1.32 | 259746 | 0.70 | 58.9 | 30722 | 28 | ||||||
[be51200d] | openbravo | 225151 | 1.14 | 225074 | 0.61 | 36.8 | 1510 | 77 | ||||||
[4c390f69] | openbravo | 161629 | 0.82 | 161725 | 0.44 | 233.6 | 5118667 | 8 | ||||||
[25bcd965] | openbravo | 9829 | 0.05 | 9835 | 0.03 | 4.3 | 850 | 1 | ||||||
| QueryID | Query Text |
|---|---|
| d1c0672c81 | insert into M_InOutLine (AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, Line, Description, M_InOut_ID, C_OrderLine_ID, M_Locator_ID, M_Product_ID, C_UOM_ID, MovementQty, IsInvoiced, M_AttributeSetInstance_ID, IsDescription, Manage_Prereservation, C_Bpartner_ID, Explode, EM_Obwpl_Editlines_Pe, EM_Obwpl_Removeline, Salesrep_ID, EM_Prpp_Qtyverified, EM_Pruti_Voidlines, EM_Pruti_Isvoid, M_InOutLine_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) |
| 181fd1b092 | insert into C_OrderLineTax (C_Orderline_ID, C_Tax_ID, AD_Client_ID, AD_Org_ID, Isactive, Created, Createdby, Updated, Updatedby, Taxbaseamt, Taxamt, Line, C_Order_ID, C_Orderlinetax_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) |
| 133291c890 | SELECT * FROM (select bp.c_bpartner_id AS REFERENCEKEY_ID, $2 AS AD_ROLE_ID, $3 AS AD_USER_ID, $4 || AD_COLUMN_IDENTIFIER($5, bp.C_BPARTNER_ID, $6) || $7 AS DESCRIPTION, $8 AS ISACTIVE, bp.AD_ORG_ID AS AD_ORG_ID, bp.AD_CLIENT_ID AS AD_CLIENT_ID, now() AS CREATED, $9 AS CREATEDBY, now() AS UPDATED, $10 AS UPDATEDBY, AD_COLUMN_IDENTIFIER($11, bp.C_BPARTNER_ID, $12) AS RECORD_ID from c_bpartner bp where not exists (select $13 from c_bpartner_location bpl0 where bpl0.c_bpartner_id = bp.c_bpartner_id and bpl0.istaxlocation = $14 ) and exists (select $15 from c_bpartner_location bpl inner join c_location l on (bpl.c_location_id = l.c_location_id) where bpl.c_bpartner_id = bp.c_bpartner_id group by bpl.c_bpartner_id having count(distinct(l.c_country_id)) > $16 )) AAA where not exists (select $17 from ad_alert a where a.ad_alertrule_id = $1 and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, $18) != $19) |
| 75c88383e3 | SELECT COUNT(*) FROM M_COSTING WHERE p_MovementDate BETWEEN DATEFROM AND DATETO AND M_PRODUCT_ID = p_Product_ID AND costtype NOT IN ($8 , $9) AND(v_CostType IS NULL OR v_CostType = COSTTYPE) |
| 06fe4b78a1 | select this_.C_Order_ID as c_order_1_255_0_, this_.AD_Client_ID as ad_clien2_255_0_, this_.AD_Org_ID as ad_org_i3_255_0_, this_.IsActive as isactive4_255_0_, this_.Created as created5_255_0_, this_.CreatedBy as createdb6_255_0_, this_.Updated as updated7_255_0_, this_.UpdatedBy as updatedb8_255_0_, this_.IsSOTrx as issotrx9_255_0_, this_.DocumentNo as documen10_255_0_, this_.DocStatus as docstat11_255_0_, this_.DocAction as docacti12_255_0_, this_.Processing as process13_255_0_, this_.Processed as process14_255_0_, this_.C_DocType_ID as c_docty15_255_0_, this_.C_DocTypeTarget_ID as c_docty16_255_0_, this_.Description as descrip17_255_0_, this_.IsDelivered as isdeliv18_255_0_, this_.IsInvoiced as isinvoi19_255_0_, this_.IsPrinted as isprint20_255_0_, this_.IsSelected as isselec21_255_0_, this_.SalesRep_ID as salesre22_255_0_, this_.DateOrdered as dateord23_255_0_, this_.DatePromised as datepro24_255_0_, this_.DatePrinted as datepri25_255_0_, this_.DateAcct as dateacc26_255_0_, this_.C_BPartner_ID as c_bpart27_255_0_, this_.BillTo_ID as billto_28_255_0_, this_.C_BPartner_Location_ID as c_bpart29_255_0_, this_.POReference as porefer30_255_0_, this_.IsDiscountPrinted as isdisco31_255_0_, this_.C_Currency_ID as c_curre32_255_0_, this_.PaymentRule as payment33_255_0_, this_.C_PaymentTerm_ID as c_payme34_255_0_, this_.InvoiceRule as invoice35_255_0_, this_.DeliveryRule as deliver36_255_0_, this_.FreightCostRule as freight37_255_0_, this_.FreightAmt as freight38_255_0_, this_.DeliveryViaRule as deliver39_255_0_, this_.M_Shipper_ID as m_shipp40_255_0_, this_.C_Charge_ID as c_charg41_255_0_, this_.ChargeAmt as chargea42_255_0_, this_.PriorityRule as priorit43_255_0_, this_.TotalLines as totalli44_255_0_, this_.GrandTotal as grandto45_255_0_, this_.M_Warehouse_ID as m_wareh46_255_0_, this_.M_PriceList_ID as m_price47_255_0_, this_.IsTaxIncluded as istaxin48_255_0_, this_.C_Campaign_ID as c_campa49_255_0_, this_.C_Project_ID as c_proje50_255_0_, this_.C_Activity_ID as c_activ51_255_0_, this_.Posted as posted52_255_0_, this_.AD_User_ID as ad_user53_255_0_, this_.CopyFrom as copyfro54_255_0_, this_.DropShip_BPartner_ID as dropshi55_255_0_, this_.DropShip_Location_ID as dropshi56_255_0_, this_.DropShip_User_ID as dropshi57_255_0_, this_.IsSelfService as isselfs58_255_0_, this_.AD_OrgTrx_ID as ad_orgt59_255_0_, this_.User1_ID as user60_255_0_, this_.User2_ID as user61_255_0_, this_.Deliverynotes as deliver62_255_0_, this_.C_Incoterms_ID as c_incot63_255_0_, this_.Incotermsdescription as incoter64_255_0_, this_.Generatetemplate as generat65_255_0_, this_.Delivery_Location_ID as deliver66_255_0_, this_.CopyFromPO as copyfro67_255_0_, this_.FIN_Paymentmethod_ID as fin_pay68_255_0_, this_.FIN_Payment_Priority_ID as fin_pay69_255_0_, this_.RM_PickFromShipment as rm_pick70_255_0_, this_.RM_ReceiveMaterials as rm_rece71_255_0_, this_.EM_Obcma_C_Poc_Email_ID as em_obcm72_255_0_, this_.RM_CreateInvoice as rm_crea73_255_0_, this_.C_Return_Reason_ID as c_retur74_255_0_, this_.RM_AddOrphanLine as rm_addo75_255_0_, this_.A_Asset_ID as a_asset76_255_0_, this_.Calculate_Promotions as calcula77_255_0_, this_.C_Costcenter_ID as c_costc78_255_0_, this_.Convertquotation as convert79_255_0_, this_.C_Reject_Reason_ID as c_rejec80_255_0_, this_.validuntil as validun81_255_0_, this_.Quotation_ID as quotati82_255_0_, this_.SO_Res_Status as so_res_83_255_0_, this_.Create_POLines as create_84_255_0_, this_.EM_Obdisc_Addpack as em_obdi85_255_0_, this_.Iscashvat as iscashv86_255_0_, this_.EM_OBMFM_Selectfreight as em_obmf87_255_0_, this_.EM_OBMFM_Delivery_Period_ID as em_obmf88_255_0_, this_.RM_Pickfromreceipt as rm_pick89_255_0_, this_.Cancelandreplace as cancela90_255_0_, this_.EM_APRM_AddPayment as em_aprm91_255_0_, this_.EM_OBMFM_Delivery_Charges as em_obmf92_255_0_, this_.Confirmcancelandreplace as confirm93_255_0_, this_.EM_Fash_Datelimit as em_fash94_255_0_, this_.EM_OBMFM_Freight_ID as em_obmf95_255_0_, this_.EM_Obwpl_Generatepicking as em_obwp96_255_0_, this_.Cancelledorder_id as cancell97_255_0_, this_.EM_Fash_Datevalue as em_fash98_255_0_, this_.EM_OBMFM_Weight as em_obmf99_255_0_, this_.EM_Obwpl_Isinpickinglist as em_obw100_255_0_, this_.EM_Fash_Sendbeforedate as em_fas101_255_0_, this_.EM_Obwpl_Readypl as em_obw102_255_0_, this_.EM_Poss_Businessdate as em_pos103_255_0_, this_.Replacedorder_id as replac104_255_0_, this_.EM_Fash_Order_Type_ID as em_fas105_255_0_, this_.Iscancelled as iscanc106_255_0_, this_.EM_OBMFM_Weight_Uom_ID as em_obm107_255_0_, this_.Replacementorder_ID as replac108_255_0_, this_.EM_OBMFM_Set_Weight as em_obm109_255_0_, this_.BPartner_ExtRef as bpartn110_255_0_, this_.C_Alternate_Location_ID as c_alte111_255_0_, this_.EM_Obpos_Applications_ID as em_obp112_255_0_, this_.EM_Obpos_Sendemail as em_obp113_255_0_, this_.EM_Obpos_Email_Status as em_obp114_255_0_, this_.EM_Obpos_App_Cashup_ID as em_obp115_255_0_, this_.EM_Obpos_Createdabsolute as em_obp116_255_0_, this_.EM_OBPOS_NotInvoiceOnCashUp as em_obp117_255_0_, this_.EM_Obpos_Rejected_Quotat_ID as em_obp118_255_0_, this_.EM_Obpos_Isdeleted as em_obp119_255_0_, this_.EM_Obpos_Islayaway as em_obp120_255_0_, this_.EM_Obpos_Prepaymentamt as em_obp121_255_0_, this_.EM_Obpos_Prepaymentlimitamt as em_obp122_255_0_, this_.EM_Fash_Servefrom as em_fas123_255_0_, this_.EM_Obpos_Prepaymentlaylimitamt as em_obp124_255_0_, this_.EM_Obpos_Rounding_Amount as em_obp125_255_0_, this_.EM_Obpos_Sequencename as em_obp126_255_0_, this_.EM_Obpos_Sequencenumber as em_obp127_255_0_, this_.EM_Prpp_Generatepicking as em_prp128_255_0_, this_.EM_Api_Resend as em_api129_255_0_, this_.C_Invoice_Alternate_Loc_ID as c_invo130_255_0_, this_.EM_OBSMAIL_EmailAddress as em_obs131_255_0_, this_.EM_Prouti_Order_Stock as em_pro132_255_0_, this_.EM_Prouti_Pregenerate_Minout as em_pro133_255_0_, this_.EM_Prouti_Sotopo as em_pro134_255_0_, this_.EM_Prouti_Generate_Pick_Inv as em_pro135_255_0_, this_.EM_Prouti_Order_ID as em_pro136_255_0_, this_.EM_Prouti_Grandtotalinitial as em_pro137_255_0_, this_.EM_Prouti_Dateclosed as em_pro138_255_0_, this_.EM_Prouti_Totallinesinitial as em_pro139_255_0_, this_.EM_Prouti_Changebpartner as em_pro140_255_0_, this_.EM_Prouti_Recalculate_Price as em_pro141_255_0_, this_.EM_Prouti_Pricecalculatetdate as em_pro142_255_0_, this_.EM_Prouti_Reactiveorder as em_pro143_255_0_, this_.EM_Izi_Exported as em_izi144_255_0_, this_.EM_Prouti_Totalizations as em_pro145_255_0_, this_.EM_Izijoy_Export_Enjoy as em_izi146_255_0_, this_.EM_Izi_Splio_Exported as em_izi147_255_0_, this_.em_prouti_Invoiced as em_pro148_255_0_, this_.em_prouti_Received as em_pro149_255_0_, this_.em_prouti_initial_received as em_pro150_255_0_, this_.EM_Prouti_Status_Of_Review as em_pro151_255_0_, this_.EM_Prouti_Validate_Order as em_pro152_255_0_, this_.EM_Poss_Orgloc_Locid as em_pos153_255_0_, this_.EM_Prouti_Start_Review as em_pro154_255_0_, this_.EM_Obpos_Skip_Tax_Calculation as em_obp155_255_0_, this_.EM_Prpgr_Ticketno as em_prp156_255_0_, this_.EM_Prouti_Addlines_Btn as em_pro157_255_0_, this_.EM_Prgr_Locator_ID as em_prg158_255_0_, this_.EM_Prrgr_Locator_ID as em_prr159_255_0_, this_.EM_Avisver_Export as em_avi160_255_0_, this_.EM_Prgr_Assigned_ID as em_prg161_255_0_, this_.EM_Prouti_Select_Soline as em_pro162_255_0_, this_.EM_Prgr_Assign as em_prg163_255_0_ from C_Order this_ where this_.EM_Izijoy_Export_Enjoy=$1 and this_.AD_Org_ID in ($2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21) and this_.AD_Client_ID in ($22, $23) and this_.IsActive=$24 |
| b813d9bb61 | select order0_.C_Order_ID as col_0_0_, documentty1_.C_DocType_ID as col_1_0_, order0_.DocStatus as col_2_0_, order0_.DocumentNo as col_3_0_, order0_.Created as col_4_0_, order0_.DateOrdered as col_5_0_, order0_.DateOrdered as col_6_0_, order0_.DateOrdered as col_7_0_, businesspa2_.C_BPartner_ID as col_8_0_, businesspa2_.Name as col_9_0_, order0_.GrandTotal as col_10_0_, order0_.GrandTotal as col_11_0_, order0_.GrandTotal as col_12_0_, order0_.Iscancelled as col_13_0_, organizati3_.AD_Org_ID as col_14_0_, organizati3_.Value as col_15_0_, organizati3_.Name as col_16_0_, organizati5_.AD_Org_ID as col_17_0_, organizati5_.Name as col_18_0_, order0_.IsDelivered as col_19_0_, order0_.BPartner_ExtRef as col_20_0_, (select coalesce(max(orderline6_.EM_Obrdm_Delivery_Mode), $3) from C_OrderLine orderline6_ where order0_.C_Order_ID=orderline6_.C_Order_ID and orderline6_.EM_Obpos_Isdeleted=$4) as col_21_0_, (select min(case when orderline7_.EM_Obrdm_Delivery_Date is null or orderline7_.EM_Obrdm_Delivery_Time is null then $5 else to_timestamp((to_char(orderline7_.EM_Obrdm_Delivery_Date, $6)||$7||to_char(orderline7_.EM_Obrdm_Delivery_Date, $8)||$9||to_char(orderline7_.EM_Obrdm_Delivery_Date, $10)||$11||to_char(orderline7_.EM_Obrdm_Delivery_Time, $12)||$13||to_char(orderline7_.EM_Obrdm_Delivery_Time, $14)), $15) end) from C_OrderLine orderline7_ where order0_.C_Order_ID=orderline7_.C_Order_ID) as col_22_0_, case when documentty1_.C_DocType_ID=organizati3_.EM_Gcnv_C_Doctypegcard_ID then $16 else case when documentty1_.IsReturn=$17 then $18 when documentty1_.DocSubTypeSO=$19 then $20 when order0_.EM_Obpos_Islayaway=$21 then $22 else $23 end end as col_23_0_, order0_.InvoiceRule as col_24_0_, order0_.EM_Prpgr_Ticketno as col_25_0_ from C_Order order0_ inner join C_DocType documentty1_ on order0_.C_DocType_ID=documentty1_.C_DocType_ID inner join C_BPartner businesspa2_ on order0_.C_BPartner_ID=businesspa2_.C_BPartner_ID inner join AD_Org organizati3_ on order0_.AD_Org_ID=organizati3_.AD_Org_ID inner join OBPOS_APPLICATIONS obpos_appl4_ on order0_.EM_Obpos_Applications_ID=obpos_appl4_.Obpos_Applications_ID left outer join AD_Org organizati5_ on order0_.AD_OrgTrx_ID=organizati5_.AD_Org_ID where $24=$25 and order0_.AD_OrgTrx_ID=$1 and order0_.AD_Client_ID=$26 and order0_.EM_Obpos_Isdeleted=$27 and (order0_.DocStatus not in ($28 , $29 , $30 , $31 , $32)) and (order0_.DocStatus<>$33 or order0_.Iscancelled=$34) order by col_4_0_ desc, col_3_0_ desc limit $2 |
| 24e13ace2f | SELECT DISTINCT ON (bp.c_bpartner_id) bp.c_bpartner_id, bp.updated, bp.AD_Language, CAST(bp.birthday AS varchar), bp.is_customer_consent, bp.isactive, usr.created, usr.firstname, usr.lastname, usr.commercialauth, usr.em_izir_updated_optin AS updatedCommercialauth, usr.email, usr.viasms, usr.viaemail, usr.phone, c_country.countrycode AS description /*Replace by countrycode*/, c_location.regionname, c_location.postal, c_location.city, c_location.address1, grt.name, grp.value, created_user.default_ad_org_id AS created_by_org FROM c_bpartner bp LEFT JOIN ad_user usr ON bp.c_bpartner_id = usr.c_bpartner_id LEFT JOIN c_bpartner_location ON bp.c_bpartner_id = c_bpartner_location.c_bpartner_id LEFT JOIN c_location ON c_bpartner_location.c_location_id = c_location.c_location_id LEFT JOIN c_country ON c_country.c_country_id = c_location.c_country_id LEFT JOIN c_greeting grt ON bp.c_greeting_id = grt.c_greeting_id LEFT JOIN c_bp_group grp ON bp.c_bp_group_id = grp.c_bp_group_id LEFT JOIN ad_user created_user ON bp.createdby = created_user.ad_user_id WHERE ( bp.updated >= now() - $1 OR usr.updated >= now() - $2 ) |
| 9455753479 | COMMIT |
| f6ccd5bccc | SELECT AD_COLUMN_IDENTIFIER(p_TableName, p_Record_ID, v_Language ) FROM DUAL |
| d3457bdce0 | SELECT c_country.countrycode as "Code Pays", SUBSTRING(c_order.ad_org_id,$1,$2) as "Code magasin", ad_org.name as "Nom magasin", TO_CHAR(c_order.dateordered::date, $3) as Date, SUM(c_orderline.linenetamt) As "CA HT", $4 As Traffic, COUNT(DISTINCT CASE WHEN subquery.total_linenetamt > $5 THEN c_order.c_order_id ELSE $6 END) - COUNT(DISTINCT CASE WHEN subquery.total_linenetamt < $7 THEN c_order.c_order_id ELSE $8 END) AS "Nombre de tickets" FROM c_orderline INNER JOIN c_order ON c_orderline.c_order_id = c_order.c_order_id LEFT JOIN ad_org ON c_order.ad_org_id = ad_org.ad_org_id LEFT JOIN c_country ON ad_org.em_obretco_dbp_countryid = c_country.c_country_id INNER JOIN ( SELECT c_order_id, SUM(linenetamt) AS total_linenetamt FROM c_orderline GROUP BY c_order_id ) AS subquery ON c_orderline.c_order_id = subquery.c_order_id WHERE c_order.issotrx = $9 AND c_orderline.qtyordered <> $10 AND c_order.dateordered >= CURRENT_DATE - INTERVAL $11 GROUP BY TO_CHAR(c_order.dateordered::date, 'yyyy-mm-dd'), c_country.countrycode, c_order.ad_org_id, ad_org.name |
| 4af3e2b8c4 | select "_"."m_warehouse_id" as "m_warehouse_id", "_"."ad_org_id" as "ad_org_id", "_"."Almacén" as "Entrepot", "_"."Ubicación" as "Emplacement", "_"."m_product_id" as "m_product_id", "_"."Cantidad" as "Qté stock", "_"."Cantidad Reservada" as "Quantite Reserve", "_"."Valoración Inventario" as "Valo PA HT Stock", "_"."last_purchase" as "last_purchase" from ( select w.m_warehouse_id , sd.ad_org_id , w.name as "Almacén" , l.value as "Ubicación" , sd.m_product_id , sd.qtyonhand "Cantidad" , sd.reservedqty "Cantidad Reservada" , round(coalesce(sd.qtyonhand * coalesce(m_get_cost(sd.m_product_id,now()::timestamp,$1,sd.ad_org_id, sd.ad_client_id,$2,$3,$4),$5),$6),$7) as "Valoración Inventario" ,(SELECT coalesce(MAX(m_inout.movementdate), current_date) FROM m_inoutline LEFT JOIN m_inout on m_inoutline.m_inout_id=m_inout.m_inout_id WHERE m_inout.docstatus<>$8 and m_inout.issotrx = $9 and m_inoutline.m_product_id = sd.m_product_id) as "last_purchase" from m_storage_detail sd inner join m_locator l on l.m_locator_id = sd.m_locator_id inner join m_warehouse w on w.m_warehouse_id = l.m_warehouse_id ) "_" |
| c5df179779 | SELECT ot.islegalentity FROM ad_org o JOIN ad_orgtype ot ON o.ad_orgtype_id = ot.ad_orgtype_id WHERE o.ad_org_id = p_org_id |
| d7c0920e78 | select invoice0_.C_Invoice_ID as c_invoic1_239_, invoice0_.AD_Client_ID as ad_clien2_239_, invoice0_.AD_Org_ID as ad_org_i3_239_, invoice0_.IsActive as isactive4_239_, invoice0_.Created as created5_239_, invoice0_.CreatedBy as createdb6_239_, invoice0_.Updated as updated7_239_, invoice0_.UpdatedBy as updatedb8_239_, invoice0_.IsSOTrx as issotrx9_239_, invoice0_.DocumentNo as documen10_239_, invoice0_.DocStatus as docstat11_239_, invoice0_.DocAction as docacti12_239_, invoice0_.Processing as process13_239_, invoice0_.Processed as process14_239_, invoice0_.Posted as posted15_239_, invoice0_.C_DocType_ID as c_docty16_239_, invoice0_.C_DocTypeTarget_ID as c_docty17_239_, invoice0_.C_Order_ID as c_order18_239_, invoice0_.Description as descrip19_239_, invoice0_.IsPrinted as isprint20_239_, invoice0_.SalesRep_ID as salesre21_239_, invoice0_.DateInvoiced as dateinv22_239_, invoice0_.DatePrinted as datepri23_239_, invoice0_.DateAcct as dateacc24_239_, invoice0_.C_BPartner_ID as c_bpart25_239_, invoice0_.C_BPartner_Location_ID as c_bpart26_239_, invoice0_.POReference as porefer27_239_, invoice0_.IsDiscountPrinted as isdisco28_239_, invoice0_.DateOrdered as dateord29_239_, invoice0_.C_Currency_ID as c_curre30_239_, invoice0_.C_PaymentTerm_ID as c_payme31_239_, invoice0_.C_Charge_ID as c_charg32_239_, invoice0_.ChargeAmt as chargea33_239_, invoice0_.TotalLines as totalli34_239_, invoice0_.GrandTotal as grandto35_239_, invoice0_.M_PriceList_ID as m_price36_239_, invoice0_.IsTaxIncluded as istaxin37_239_, invoice0_.C_Campaign_ID as c_campa38_239_, invoice0_.C_Project_ID as c_proje39_239_, invoice0_.C_Activity_ID as c_activ40_239_, invoice0_.CreateFrom as createf41_239_, invoice0_.GenerateTo as generat42_239_, invoice0_.AD_User_ID as ad_user43_239_, invoice0_.CopyFrom as copyfro44_239_, invoice0_.IsSelfService as isselfs45_239_, invoice0_.AD_OrgTrx_ID as ad_orgt46_239_, invoice0_.User1_ID as user47_239_, invoice0_.User2_ID as user48_239_, invoice0_.Withholdingamount as withhol49_239_, invoice0_.Taxdate as taxdate50_239_, invoice0_.C_Withholding_ID as c_withh51_239_, invoice0_.Ispaid as ispaid52_239_, invoice0_.Totalpaid as totalpa53_239_, invoice0_.OutstandingAmt as outstan54_239_, invoice0_.DaysTillDue as daystil55_239_, invoice0_.DueAmt as dueamt56_239_, invoice0_.LastCalculatedOnDate as lastcal57_239_, invoice0_.FIN_Paymentmethod_ID as fin_pay58_239_, invoice0_.FIN_Payment_Priority_ID as fin_pay59_239_, invoice0_.Finalsettlement as finalse60_239_, invoice0_.Daysoutstanding as daysout61_239_, invoice0_.Percentageoverdue as percent62_239_, invoice0_.C_Costcenter_ID as c_costc63_239_, invoice0_.Calculate_Promotions as calcula64_239_, invoice0_.A_Asset_ID as a_asset65_239_, invoice0_.EM_APRM_Addpayment as em_aprm66_239_, invoice0_.Iscashvat as iscashv67_239_, invoice0_.EM_APRM_Processinvoice as em_aprm68_239_, invoice0_.EM_Obcma_C_Poc_Email_ID as em_obcm69_239_, invoice0_.Prepaymentamt as prepaym70_239_, invoice0_.Createfromorders as createf71_239_, invoice0_.Createfrominouts as createf72_239_, invoice0_.Paidamtatinvoicing as paidamt73_239_, invoice0_.BPartner_ExtRef as bpartne74_239_, invoice0_.EM_Obpos_Rounding_Amount as em_obpo75_239_, invoice0_.EM_Obpos_Sequencename as em_obpo76_239_, invoice0_.EM_Obpos_Sequencenumber as em_obpo77_239_, invoice0_.C_Alternate_Location_ID as c_alter78_239_, invoice0_.EM_Prouti_Recalculate_Price as em_prou79_239_, invoice0_.EM_Prouti_Pricecalculatetdate as em_prou80_239_, invoice0_.EM_Poss_Orgloc_Locid as em_poss81_239_, invoice0_.EM_Prouti_Totalizations as em_prou82_239_, invoice0_.Einvoice_Status as einvoic83_239_, invoice0_.Einvoice_Generated as einvoic84_239_, invoice0_.Einvoice_ExternalID as einvoic85_239_, invoice0_.Einvoice_Send_Status as einvoic86_239_, invoice0_.Einvoice_Sent as einvoic87_239_, invoice0_.EM_Fash_Datevalue as em_fash88_239_, invoice0_.EM_Api_Resend as em_api_89_239_ from C_Invoice invoice0_ left outer join FIN_Payment_Schedule finpayment1_ on invoice0_.C_Invoice_ID=finpayment1_.C_Invoice_ID where invoice0_.Processed='Y' and (invoice0_.Ispaid='N' or finpayment1_.Updated>=invoice0_.LastCalculatedOnDate or invoice0_.OutstandingAmt<>0 or invoice0_.Finalsettlement is null) and invoice0_.IsActive='Y' |
| 30c2ffe6a6 | SELECT * FROM (select f.c_invoice_id as referencekey_id, $2 as ad_role_id, $3 as ad_user_id, $4 || f.documentno|| $5 as description, $6 as isActive, f.ad_org_id, f.ad_client_id, now() as created, $7 as createdBy, now() as updated, $8 as updatedBy, ad_column_identifier($9, f.c_invoice_id, $10) AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id=ci.c_order_id where ci.issotrx=$11 and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT($12 FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno)>$13 order by max(dateinvoiced) desc ) as f) AAA where not exists (select $14 from ad_alert a where a.ad_alertrule_id = $1 and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, $15) != $16) |
| 0483033486 | 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 |
| caede7e47b | insert into obmobc_logclient ( obmobc_logclient_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, tstamp, deviceid, context, msg, loglevel, cache_session_id, isonline ) values ( $1, $2, $3, $15, to_timestamp(to_char($4), to_char($16)), $5, to_timestamp(to_char($6), to_char($17)), $7, to_number($8), $9, $10, $11, $12, $13, $14 ) |
| 4f42690015 | insert into c_invoiceline (c_invoiceline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_invoice_id, c_orderline_id, m_inoutline_id, line, description, m_product_id, qtyinvoiced, pricelist, priceactual, pricelimit, linenetamt, c_uom_id, c_tax_id, m_attributesetinstance_id, pricestd, taxbaseamt, line_gross_amount, gross_unit_price, c_bpartner_id, grosspricestd, grosspricelist, a_asset_id, c_project_id, user1_id, user2_id, c_costcenter_id) select get_uuid(), i.ad_client_id, i.ad_org_id, $3, i.created, i.createdby, i.updated, i.updatedby, i.c_invoice_id, ol.c_orderline_id, max(iol.m_inoutline_id), row_number() over (partition by i.c_invoice_id order by o.documentno, ol.line) * $5 as line, ol.description, ol.m_product_id, ol.qtyordered, ol.pricelist, ol.priceactual, ol.pricelimit, ol.linenetamt, ol.c_uom_id, ol.c_tax_id, ol.m_attributesetinstance_id, ol.pricestd, ol.linenetamt , (case when pl.istaxincluded = $6 then ol.line_gross_amount else $7 end), ol.gross_unit_price, ol.c_bpartner_id, ol.grosspricestd, ol.grosspricelist, ol.a_asset_id, ol.c_project_id, ol.user1_id, ol.user2_id, ol.c_costcenter_id from c_order o, m_pricelist pl, obpos_applications ap, ad_org org, c_doctype dt, c_invoice i, c_orderline ol left join m_inoutline iol on ol.c_orderline_id = iol.c_orderline_id where ol.c_order_id = o.c_order_id and o.m_pricelist_id = pl.m_pricelist_id and o.m_pricelist_id = i.m_pricelist_id and o.em_obpos_applications_id = ap.obpos_applications_id and o.ad_org_id = org.ad_org_id and $8=$9 and o.c_doctype_id = dt.c_doctype_id and dt.c_doctypeaggrinvoice_id = i.c_doctype_id and o.em_obpos_app_cashup_id = $1 and o.em_obpos_islayaway = $10 and o.invoicerule = $11 and (ol.qtyordered <> $12 and ol.em_obpos_isdeleted = $13) and o.c_doctype_id in (org.em_obpos_c_doctype_id, org.em_obpos_c_doctyperet_id) and not exists (select $14 from c_orderline ol2 where ol2.qtyinvoiced <> $15 and ol2.c_order_id = o.c_order_id) and o.em_obpos_notinvoiceoncashup = $16 and o.iscashvat = i.iscashvat and i.documentno = $2 and i.c_bpartner_id = o.c_bpartner_id and coalesce(i.bpartner_extref, n$17) = coalesce(o.bpartner_extref, n$18) and i.c_bpartner_location_id = coalesce(o.billto_id, o.c_bpartner_location_id) and coalesce(i.ad_user_id, $19) = coalesce(o.ad_user_id, $20) group by i.ad_client_id, i.ad_org_id, i.created, i.createdby, i.updated, i.updatedby, i.c_invoice_id, ol.c_orderline_id, ol.description, ol.m_product_id, ol.qtyordered, ol.pricelist, ol.priceactual, ol.pricelimit, ol.linenetamt, ol.c_uom_id, ol.c_tax_id, ol.m_attributesetinstance_id, ol.pricestd, ol.linenetamt , ol.line_gross_amount, ol.gross_unit_price, ol.c_bpartner_id, ol.grosspricestd, ol.grosspricelist, ol.a_asset_id, ol.c_project_id, ol.user1_id, ol.user2_id, ol.c_costcenter_id, pl.istaxincluded, o.documentno, ol.line, o.c_order_id, o.ad_user_id, o.bpartner_extref order by o.documentno, ol.line |
| 604436a476 | insert into C_Import_Entry_Archive (AD_Client_ID, AD_Org_ID, Isactive, Created, Createdby, Updated, Updatedby, Imported, Jsoninfo, ImportStatus, Typeofdata, AD_Role_ID, EM_Obpos_Applications_ID, Responseinfo, Isnonblocking, C_Import_Entry_Archive_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16) |
| 74a1d87233 | 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 |
| 382d19fc6d | SELECT * FROM take_sample_subset(1,0) |
| 241cae8477 | select "_"."fin_payment_detail_v_id" as "fin_payment_detail_v_id", "_"."ad_client_id" as "ad_client_id", "_"."ad_org_id" as "ad_org_id", "_"."c_bpartner_id" as "c_bpartner_id", "_"."c_order_id" as "c_order_id", "_"."orderno" as "Comande No.", "_"."invoiceno" as "Facture No.", "_"."paymentno" as "Paiement No.", "_"."duedate" as "Date comptable", "_"."paymentdate" as "Date de paiement", "_"."invoicedamt" as "Montant de la facture", "_"."expected" as "Attendu", "_"."paidamt" as "Montant payé", "_"."expectedconverted" as "Converti attendu", "_"."paidconverted" as "Payé converti", "_"."paymentmethod" as "Mode de paiement", "_"."status" as "Status" from ( select fpdv.fin_payment_detail_v_id , fpdv.ad_client_id , (case when cd.isreturn = $1 then co.ad_orgtrx_id else fpdv.ad_org_id end) ad_org_id , fpdv.c_bpartner_id , fpdv.fin_payment_sched_ord_v_id as "c_order_id" , fpdv.orderno , fpdv.invoiceno , fpdv.paymentno , fpdv.duedate , fpdv.paymentdate , fpdv.invoicedamt , fpdv.expected , fpdv.paidamt , fpdv.expectedconverted , fpdv.paidconverted , fp.name as "paymentmethod" , fpdv.status from fin_payment_detail_v fpdv left join c_order co on co.c_order_id = fpdv.fin_payment_sched_ord_v_id left join c_doctype cd on co.c_doctype_id = cd.c_doctype_id left join fin_paymentmethod fp on fp.fin_paymentmethod_id = fpdv.fin_paymentmethod_id where co.issotrx = $2 ) "_" |
| fe2c4fe6df | select "_"."c_order_id" as "c_order_id", "_"."ad_org_id" as "ad_org_id", "_"."isactive" as "isactive", "_"."issotrx" as "issotrx", "_"."m_pricelist_id" as "m_pricelist_id", "_"."Documento" as "Documento", "_"."Estado Pedido" as "Estado Pedido", "_"."Accion Pedido" as "Accion Pedido", "_"."Tipo Documento" as "Tipo Documento", "_"."Descripción" as "Descripción", "_"."Fecha Pedido" as "Fecha Pedido", "_"."Fecha Comprometida" as "Fecha Comprometida", "_"."c_bpartner_id" as "c_bpartner_id", "_"."Referencia Proveedor" as "Referencia Proveedor", "_"."c_currency_id" as "c_currency_id", "_"."Currency ISO" as "Currency ISO", "_"."m_warehouse_id" as "m_warehouse_id", "_"."Ciudad" as "Ciudad", "_"."Codigo Postal" as "Codigo Postal", "_"."Pais" as "Pais", "_"."Region" as "Region", "_"."TPV Name" as "TPV Name", "_"."Vendedor" as "Vendedor", "_"."Nombre y Apellido Vendedor" as "Nombre y Apellido Vendedor", "_"."salesrep_id" as "salesrep_id", cast("_"."Fecha Pedido" as date) as "t0_0", cast("_"."Fecha Comprometida" as date) as "t1_0" from ( select "c_order_id", "ad_org_id", "isactive", "issotrx", "m_pricelist_id", "Documento", "Estado Pedido", "Accion Pedido", "Tipo Documento", "Descripción", "Fecha Pedido", "Fecha Comprometida", "c_bpartner_id", "Referencia Proveedor", "c_currency_id", "Currency ISO", "m_warehouse_id", "Ciudad", "Codigo Postal", "Pais", "Region", "TPV Name", "Vendedor", "Nombre y Apellido Vendedor", "salesrep_id" from ( SELECT O.c_order_id , (case when DT.isreturn = $1 then O.ad_orgtrx_id else O.ad_org_id end) ad_org_id , O.isactive , O.issotrx , O.m_pricelist_id , O.documentno as "Documento" , O.docstatus as "Estado Pedido" , O.docaction as "Accion Pedido" , O.processed as "Procesado" , DT.name as "Tipo Documento" , O.description as "Descripción" , O.dateordered as "Fecha Pedido" , O.datepromised as "Fecha Comprometida" , O.c_bpartner_id , O.poreference "Referencia Proveedor" , O.c_currency_id , cu.iso_code "Currency ISO" , O.m_warehouse_id , cl.city as "Ciudad" , cl.postal as "Codigo Postal" , cc."name" as "Pais" , cr."name" as "Region" , OA."name" as "TPV Name" , coalesce(au.name,$2) as "Vendedor" , concat(coalesce(au.firstname,$3),$4,coalesce(au.lastname,$5)) as "Nombre y Apellido Vendedor" , O.salesrep_id FROM c_order O LEFT JOIN c_doctype DT on DT.c_doctype_id = O.c_doctype_id INNER JOIN c_currency cu on cu.c_currency_id = o.c_currency_id LEFT JOIN c_bpartner_location cbl on cbl.c_bpartner_location_id = O.c_bpartner_location_id LEFT JOIN c_location cl on cl.c_location_id = cbl.c_location_id LEFT JOIN c_country cc on cc.c_country_id = cl.c_country_id LEFT JOIN c_region cr on cr.c_region_id = cl.c_region_id left join obpos_applications OA on OA.obpos_applications_id = O.em_obpos_applications_id left join ad_user au on au.ad_user_id = O.salesrep_id WHERE $6=$7 AND O.issotrx = $8 AND O.dateordered >= CURRENT_DATE - INTERVAL $9 ) "$Table" ) "_" |
| b52b0c82ea | select "_"."c_bpartner_id" as "c_bpartner_id", "_"."Identificador" as "Code du Tiers", "_"."Nombre Fiscal" as "Nom Fiscal", "_"."Nombre Comercial" as "Nom du Tiers", "_"."Prospecto" as "Prospect", "_"."Proveedor" as "Fournisseur", "_"."Cliente" as "Client", "_"."Empleado" as "Employé", "_"."NIF" as "TAX", "_"."m_pricelist_id" as "m_pricelist_id", "_"."po_pricelist_id" as "po_pricelist_id", "_"."salesrep_id" as "salesrep_id", "_"."location" as "location", "_"."contact" as "contact", "_"."birthday" as "birthday", "_"."created" as "created", "_"."is_customer_consent" as "is_customer_consent", "_"."birthday_partner" as "birthday_partner" from ( SELECT c_bpartner_id , value as "Identificador" , name as "Nombre Fiscal" , name2 as "Nombre Comercial" , isprospect as "Prospecto" , isvendor as "Proveedor" , iscustomer as "Cliente" , isemployee as "Empleado" , taxid as "NIF" , m_pricelist_id , po_pricelist_id , salesrep_id , (select concat(cl.address1,$1, cl.city,$2, cl.postal,$3, cc.name) from c_bpartner_location cbl inner join c_location cl on cbl.c_location_id = cl.c_location_id left join c_country cc on cc.c_country_id = cl.c_country_id where cbl.c_bpartner_id = c_bpartner.c_bpartner_id limit $4) as location , (select concat(u.phone, $5, u.email, $6, u.commercialauth) from ad_user u where u.c_bpartner_id = c_bpartner.c_bpartner_id LIMIT $7) as contact -- ✅ AJOUTÉ , (select birthday from ad_user u where u.c_bpartner_id = c_bpartner.c_bpartner_id LIMIT $8) as birthday , created , is_customer_consent , birthday as birthday_partner FROM c_bpartner ) "_" |
| 9c8be0ed8f | SELECT * FROM (select bp.c_bpartner_id AS REFERENCEKEY_ID, $2 AS AD_ROLE_ID, $3 AS AD_USER_ID, $4 || AD_COLUMN_IDENTIFIER($5, bp.C_BPARTNER_ID, $6) || $7 AS DESCRIPTION, $8 AS ISACTIVE, bp.AD_ORG_ID AS AD_ORG_ID, bp.AD_CLIENT_ID AS AD_CLIENT_ID, now() AS CREATED, $9 AS CREATEDBY, now() AS UPDATED, $10 AS UPDATEDBY, AD_COLUMN_IDENTIFIER($11, bp.C_BPARTNER_ID, $12) AS RECORD_ID from c_bpartner bp where exists (select $13 from c_bpartner_location bpl inner join c_location l on (bpl.c_location_id = l.c_location_id) where bpl.c_bpartner_id = bp.c_bpartner_id and bpl.istaxlocation = $14 group by bpl.c_bpartner_id, bpl.istaxlocation having count(distinct(l.c_country_id)) > $15 )) AAA where not exists (select $16 from ad_alert a where a.ad_alertrule_id = $1 and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, $17) != $18) |
| 33f5216a17 | SELECT count(*) FROM DUAL WHERE EXISTS (SELECT $14 FROM m_costing WHERE datefrom <= p_movementdate AND dateto > p_movementdate AND m_product_id = p_product_id AND COALESCE(m_warehouse_id, p_warehouse_id, $15) = COALESCE(p_warehouse_id, m_warehouse_id, $16) AND ad_org_id IN (v_legal_entity,$17) AND cost IS NOT NULL AND costtype IN ($18, $19) AND costtype = COALESCE(v_CostType, costtype) ) |
| 3e80950586 | SELECT 1 FROM ONLY "public"."c_bpartner" x WHERE "c_bpartner_id"::pg_catalog.text OPERATOR(pg_catalog.=) $1::pg_catalog.text FOR KEY SHARE OF x |
| 6b67fe6923 | insert into M_Transaction (AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, MovementType, M_Locator_ID, M_Product_ID, MovementDate, MovementQty, M_InOutLine_ID, M_AttributeSetInstance_ID, C_UOM_ID, TrxProcessDate, IsCostCalculated, Costing_Status, Checkreservedqty, Isprocessed, Checkpricedifference, EM_Prouti_Exported, Manualcostadjustment, IsCostPermanent, M_Transaction_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) |
| 0a9b2d6035 | SELECT * FROM (SELECT DISTINCT iol.m_product_id as referencekey_id, $2 as ad_role_id, $3 as ad_user_id, $4 || p.name || $5 as description, $6 as isactive, iol.ad_org_id as ad_org_id, iol.ad_client_id as ad_client_id, now() as created, $7 as createdBy, now() as updated, $8 as updatedBy, p.name as RECORD_ID FROM m_inoutline iol JOIN m_inout io ON iol.m_inout_id = io.m_inout_id AND io.issotrx = $9 AND io.docstatus = $10 JOIN m_transaction t ON iol.m_inoutline_id = t.m_inoutline_id JOIN c_bpartner bp ON io.c_bpartner_id = bp.c_bpartner_id JOIN m_product p ON iol.m_product_id = p.m_product_id JOIN m_costing_rule cr ON ad_isorgincluded(io.ad_org_id, cr.ad_org_id, io.ad_client_id) >= $11 AND cr.datefrom <= t.trxprocessdate AND cr.dateto > t.trxprocessdate JOIN m_costing_algorithm ca ON cr.m_costing_algorithm_id = ca.m_costing_algorithm_id AND ca.classname = $12 WHERE NOT EXISTS (SELECT $13 FROM m_matchpo mp WHERE mp.m_inoutline_id = iol.m_inoutline_id AND mp.c_orderline_id IS NOT NULL) AND NOT EXISTS (SELECT $14 FROM m_costing c WHERE c.m_product_id = iol.m_product_id AND c.costtype IN ($15, $16) AND c.datefrom <= t.trxprocessdate AND c.dateto > t.trxprocessdate) AND NOT EXISTS (SELECT $17 FROM m_productprice pp JOIN m_pricelist_version ppv ON pp.m_pricelist_version_id = ppv.m_pricelist_version_id JOIN m_pricelist pl ON pl.m_pricelist_id = ppv.m_pricelist_id WHERE pp.m_product_id = iol.m_product_id AND (bp.po_pricelist_id = ppv.m_pricelist_id OR (bp.po_pricelist_id IS NULL AND pl.issopricelist = $18)) AND ppv.validfrom <= t.trxprocessdate) AND NOT EXISTS (SELECT $19 FROM c_orderline ol JOIN c_order o ON ol.c_order_id = o.c_order_id AND o.issotrx = $20 AND o.processed = $21 WHERE ol.m_product_id = iol.m_product_id AND o.c_bpartner_id = bp.c_bpartner_id AND ad_isorgincluded(o.ad_org_id, cr.ad_org_id, io.ad_client_id) >= $22)) AAA where not exists (select $23 from ad_alert a where a.ad_alertrule_id = $1 and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, $24) != $25) |
| 1eec949137 | 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 |
| 93a759b1da | BEGIN |
| 2239971ca6 | select * from M_UPDATE_INVENTORY ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13) as result |
| 0b24cb5d2f | COPY public.obcfr_ticket (obcfr_ticket_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, documentno, obpos_applications_id, ticketdate, json, seqno, prevhash, hash, hashtime, export) TO stdout |
| 29bf42b1ab | select "_"."m_transaction_id" as "m_transaction_id", "_"."m_locator_id" as "m_locator_id", "_"."m_warehouse_id" as "m_warehouse_id", "_"."ad_client_id" as "ad_client_id", "_"."ad_org_id" as "ad_org_id", "_"."updated" as "updated", "_"."m_product_id" as "m_product_id", "_"."trxprocessdate" as "Date mvt", "_"."Type de mouvement" as "Type mvt", "_"."Quantité de mouvement" as "Qté mvt", "_"."€ Coût de transaction" as "€ Coût de transaction", "_"."€ Coût moyen du produit" as "€ Coût moyen du produit", "_"."Nom de l'inventaire" as "Nom de l'inventaire", "_"."Bon de livraison" as "Bon de livraison", "_"."Document Commande" as "Document Commande", "_"."TPV" as "TPV", "_"."Type de document" as "Type doc" from ( SELECT mt.m_transaction_id , mt.m_locator_id , ml.m_warehouse_id , mt.ad_client_id , mt.ad_org_id , mt.updated , mt.m_product_id , trunc(mt.trxprocessdate) as trxprocessdate , mt.movementtype as "Type de mouvement" , mt.movementqty as "Quantité de mouvement" , mt.transactioncost as "€ Coût de transaction" , m_get_cost(mt.m_product_id, mt.trxprocessdate, $1, mt.ad_org_id, mt.ad_client_id, $2, $3, $4) AS "€ Coût moyen du produit" , coalesce(mi2."name", $5) as "Nom de l'inventaire" , coalesce(mi4."documentno", $6) as "Bon de livraison" , coalesce(o."documentno", $7) as "Document Commande" , coalesce(oa."name", $8) as "TPV" , coalesce(cd."name", $9) as "Type de document" FROM m_transaction mt LEFT JOIN m_locator ml on ml.m_locator_id = mt.m_locator_id left join m_inventoryline mi on mi.m_inventoryline_id = mt.m_inventoryline_id left join m_inventory mi2 on mi2.m_inventory_id = mi.m_inventory_id left join m_inoutline mi3 on mi3.m_inoutline_id = mt.m_inoutline_id left join m_inout mi4 on mi4.m_inout_id = mi3.m_inout_id left join c_orderline ol on ol.c_orderline_id = mi3.c_orderline_id left join c_order o on o.c_order_id = ol.c_order_id left join obpos_applications oa on o.em_obpos_applications_id = oa.obpos_applications_id left join c_doctype cd on cd.c_doctype_id = o.c_doctype_id WHERE mt.isactive = $10 ) "_" |
| f0238ffe1b | COPY public.obcfr_ticketreprint (obcfr_ticketreprint_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, obcfr_ticket_id, documentno, obpos_applications_id, terminal, printdate, json, seqno, prevhash, hash, hashtime, export) TO stdout |
| 24f0f61153 | insert into M_InOut (AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, IsSOTrx, DocumentNo, DocAction, DocStatus, Processing, Processed, C_DocType_ID, Description, C_Order_ID, DateOrdered, IsPrinted, MovementType, MovementDate, DateAcct, C_BPartner_ID, C_BPartner_Location_ID, M_Warehouse_ID, DeliveryRule, FreightCostRule, FreightAmt, DeliveryViaRule, ChargeAmt, PriorityRule, CreateFrom, GenerateTo, AD_User_ID, SalesRep_ID, AD_OrgTrx_ID, UpdateLines, Calculate_Freight, RM_Receipt_PickEdit, RM_Shipment_Pickedit, Process_Goods_Java, Isnettingshipment, Iscompletelyinvoiced, EM_Obwpack_Packing, Invoicefromshipment, EM_Obwpack_Processed, EM_Obwpack_Reactivated, EM_Obwpack_Packingrequired, EM_OBEUCI_Ship, EM_Prouti_Changebpartner, EM_Pruti_Createfrom, EM_Izi_Exported, M_InOut_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40, $41, $42, $43, $44, $45, $46, $47, $48, $49, $50, $51, $52) |
| 27b400c7db | select c_import_e0_.C_IMPORT_ENTRY_ID as c_import1_236_0_, c_import_e0_.AD_Client_ID as ad_clien2_236_0_, c_import_e0_.AD_Org_ID as ad_org_i3_236_0_, c_import_e0_.Isactive as isactive4_236_0_, c_import_e0_.Created as created5_236_0_, c_import_e0_.Createdby as createdb6_236_0_, c_import_e0_.Updated as updated7_236_0_, c_import_e0_.Updatedby as updatedb8_236_0_, c_import_e0_.Imported as imported9_236_0_, c_import_e0_.Jsoninfo as jsoninf10_236_0_, c_import_e0_.ImportStatus as imports11_236_0_, c_import_e0_.Typeofdata as typeofd12_236_0_, c_import_e0_.Errorinfo as errorin13_236_0_, c_import_e0_.AD_Role_ID as ad_role14_236_0_, c_import_e0_.Createdtimestamp as created15_236_0_, c_import_e0_.EM_Obpos_Applications_ID as em_obpo16_236_0_, c_import_e0_.Responseinfo as respons17_236_0_, c_import_e0_.Isnonblocking as isnonbl18_236_0_ from C_IMPORT_ENTRY c_import_e0_ where c_import_e0_.C_IMPORT_ENTRY_ID=$1 |
| 5f8e9d0065 | SELECT 1 FROM ONLY "public"."ad_client" x WHERE "ad_client_id"::pg_catalog.text OPERATOR(pg_catalog.=) $1::pg_catalog.text FOR KEY SHARE OF x |
| 905bffc89c | SELECT profile.take_sample() |
| 313b1ecda9 | insert into C_IMPORT_ENTRY (AD_Client_ID, AD_Org_ID, Isactive, Created, Createdby, Updated, Updatedby, Jsoninfo, ImportStatus, Typeofdata, AD_Role_ID, Createdtimestamp, Isnonblocking, C_IMPORT_ENTRY_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) |
| 616a44c111 | insert into OBCFR_Ticket (AD_Client_ID, AD_Org_ID, Isactive, Created, Createdby, Updated, Updatedby, Obpos_Applications_ID, Ticketdate, Json, Seqno, Prevhash, Hash, Hashtime, Export, Documentno, Obcfr_Ticket_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17) |
| 61aed5765c | select businesspa0_.C_BPartner_Location_ID as col_0_0_, businesspa1_.C_BPartner_ID as col_1_0_, coalesce(location2_.Address1, location2_.Postal, location2_.City, businesspa0_.Name) as col_2_0_, coalesce(location2_.Address2, $11) as col_3_0_, location2_.Postal as col_4_0_, location2_.City as col_5_0_, coalesce((select countrytrl4_.Name from C_Country_Trl countrytrl4_ where countrytrl4_.C_Country_ID=location2_.C_Country_ID and countrytrl4_.AD_Language=$12), country5_.Name) as col_6_0_, location2_.C_Country_ID as col_7_0_, businesspa0_.IsBillTo as col_8_0_, businesspa0_.IsShipTo as col_9_0_, businesspa0_.Isdefault_Shipto as col_10_0_, businesspa0_.Isdefault_Billto as col_11_0_, coalesce(region3_.Name, $13) as col_12_0_, coalesce(region3_.C_Region_ID, $14) as col_13_0_, businesspa0_.Created as col_14_0_, businesspa0_.Updated as col_15_0_, coalesce((location2_.Address1||case when location2_.Address2 is not null then $15 end||location2_.Address2), location2_.Address1, location2_.Address2, location2_.Postal, location2_.City) as col_16_0_, case when businesspa0_.IsActive=$16 and businesspa1_.IsActive=$17 then $18 else $19 end as col_17_0_, now() as col_18_0_ from C_BPartner_Location businesspa0_ inner join C_BPartner businesspa1_ on businesspa0_.C_BPartner_ID=businesspa1_.C_BPartner_ID left outer join C_Location location2_ on businesspa0_.C_Location_ID=location2_.C_Location_ID left outer join C_Region region3_ on location2_.C_Region_ID=region3_.C_Region_ID cross join C_Country country5_ where location2_.C_Country_ID=country5_.C_Country_ID and $20=$21 and businesspa1_.IsCustomer=$22 and (businesspa1_.M_PriceList_ID is not null) and (businesspa0_.Updated>$1 or businesspa1_.Updated>$2 or location2_.Updated>$3) and (businesspa0_.AD_Client_ID in ($23 , $24)) and (businesspa0_.AD_Org_ID in ($4 , $5 , $6 , $7 , $8 , $9)) and $25=$26 order by businesspa0_.C_BPartner_Location_ID limit $10 |
| 3f546d3e2b | select "_"."c_orderline_id" as "c_orderline_id", "_"."c_order_id" as "c_order_id", "_"."ad_org_id" as "ad_org_id", "_"."isactive" as "Actif", "_"."issotrx" as "issotrx", "_"."c_bpartner_id" as "c_bpartner_id", "_"."c_currency_id" as "c_currency_id", "_"."m_product_id" as "m_product_id", "_"."m_warehouse_id" as "m_warehouse_id", "_"."m_product_category_id" as "m_product_category_id", "_"."line" as "line", cast("_"."Fecha Pedido" as date) as "Date Commande", cast("_"."Fecha Comprometida" as date) as "Date de livraison engagée", cast("_"."Fecha Enviada" as date) as "Fecha Enviada", "_"."Descripción" as "Description ligne", "_"."Cantidad Pedido" as "Qté vendue", "_"."Precio Lista" as "Prix List", "_"."Precio Actual" as "Prix Actuel", "_"."Precio Limite" as "Prix Limite", "_"."Importe Linea" as "Montant net ligne", "_"."Importe TTC" as "Importe TTC", "_"."Descuento" as "€ Remise", "_"."Cantidad Recibida" as "Quantite reçue", cast("_"."Fecha Recepción" as date) as "Fecha Recepción", cast("_"."bp_created" as date) as "bp_created", "_"."bp_country" as "bp_country", "_"."isdelivered" as "isdelivered" from ( SELECT OL.c_orderline_id , OL.c_order_id , (case when cd.isreturn = $1 then O.ad_orgtrx_id else OL.ad_org_id end) ad_org_id , OL.isactive , O.issotrx , OL.c_bpartner_id , OL.c_currency_id , OL.m_product_id , OL.m_warehouse_id , P.m_product_category_id , OL.line , OL.dateordered as "Fecha Pedido" , OL.datepromised as "Fecha Comprometida" , OL.datedelivered as "Fecha Enviada" , OL.description as "Descripción" , OL.qtyordered "Cantidad Pedido" , OL.pricelist "Precio Lista" , OL.priceactual "Precio Actual" , OL.pricelimit "Precio Limite" , OL.linenetamt "Importe Linea" , OL.line_gross_amount "Importe TTC" , OL.discount as "Descuento" , (SELECT SUM(movementqty) FROM m_inoutline IOL WHERE IOL.c_orderline_id = OL.c_orderline_id) as "Cantidad Recibida" , (SELECT MAX(movementdate) FROM m_inoutline IOL INNER JOIN m_inout IO on IO.m_inout_id = IOL.m_inout_id WHERE IOL.c_orderline_id = OL.c_orderline_id) as "Fecha Recepción" , BP.created as "bp_created" , (select cc.name from c_bpartner_location cbl inner join c_location cl on cbl.c_location_id = cl.c_location_id left join c_country cc on cc.c_country_id = cl.c_country_id where cbl.c_bpartner_id = BP.c_bpartner_id limit $2) as bp_country , O.isdelivered FROM c_orderline OL LEFT JOIN c_order O on O.c_order_id = OL.c_order_id left join c_doctype cd on O.c_doctype_id = cd.c_doctype_id LEFT JOIN m_product P on P.m_product_id = OL.m_product_id LEFT JOIN c_bpartner BP on BP.c_bpartner_id = O.c_bpartner_id WHERE $3=$4 AND O.issotrx = $5 AND OL.dateordered >= CURRENT_DATE - INTERVAL $6 ) "_" |
| 017d00aa12 | insert into c_invoicelinetax (c_invoicelinetax_id, c_tax_id, c_invoice_id, c_invoiceline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, taxbaseamt, taxamt, line, recalculate) select get_uuid(), olt.c_tax_id, i.c_invoice_id, il.c_invoiceline_id, i.ad_client_id, i.ad_org_id, $2, i.created, i.createdby, i.updated, i.updatedby, olt.taxbaseamt, olt.taxamt, olt.line, $4 from c_order o, c_orderline ol, c_orderlinetax olt, c_invoice i, c_invoiceline il where o.c_order_id = ol.c_order_id and ol.c_orderline_id = olt.c_orderline_id and ol.c_orderline_id = il.c_orderline_id and il.c_invoice_id = i.c_invoice_id and i.documentno = $1 and i.c_bpartner_id = o.c_bpartner_id and i.c_bpartner_location_id = coalesce(o.billto_id, o.c_bpartner_location_id) and coalesce(i.ad_user_id, $6) = coalesce(o.ad_user_id, $7) |
| 225c51d0db | COPY public.c_import_entry_archive (c_import_entry_archive_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, imported, jsoninfo, importstatus, typeofdata, errorinfo, ad_role_id, responseinfo, em_obpos_applications_id, isnonblocking) TO stdout |
| 12a0f36339 | SELECT COALESCE(sum(month_total_amount),$1) AS month_total_amount, COALESCE(sum(week_total_amount),$2) AS week_total_amount, COALESCE(sum(day_total_amount),$3) AS day_total_amount, COALESCE(sum(month_total_units),$4) AS month_total_units, COALESCE(sum(week_total_units),$5) AS week_total_units, COALESCE(sum(day_total_units),$6) AS day_total_units, COALESCE(sum(month_total_amount_ret),$7) AS month_total_amount_ret, COALESCE(sum(week_total_amount_ret),$8) AS week_total_amount_ret, COALESCE(sum(day_total_amount_ret),$9) AS day_total_amount_ret, COALESCE(sum(month_total_units_ret),$10) AS month_total_units_ret, COALESCE(sum(week_total_units_ret),$11) AS week_total_units_ret, COALESCE(sum(day_total_units_ret),$12) AS day_total_units_ret FROM ( SELECT -- Pedidos CASE WHEN ol.line_gross_amount > $13 THEN ol.line_gross_amount END month_total_amount, CASE WHEN ol.line_gross_amount > $14 THEN ol.qtyordered END month_total_units, CASE WHEN o.created >= d.actual_week_date AND ol.line_gross_amount > $15 THEN ol.line_gross_amount END AS week_total_amount, CASE WHEN o.created >= d.actual_week_date AND ol.line_gross_amount > $16 THEN ol.qtyordered END AS week_total_units, CASE WHEN o.created >= d.actual_date AND ol.line_gross_amount > $17 THEN ol.line_gross_amount END AS day_total_amount, CASE WHEN o.created >= d.actual_date AND ol.line_gross_amount > $18 THEN ol.qtyordered END AS day_total_units, -- Devos CASE WHEN ol.line_gross_amount < $19 THEN ol.line_gross_amount END month_total_amount_ret, CASE WHEN ol.line_gross_amount < $20 THEN ol.qtyordered END month_total_units_ret, CASE WHEN o.created >= d.actual_week_date AND ol.line_gross_amount < $21 THEN ol.line_gross_amount END AS week_total_amount_ret, CASE WHEN o.created >= d.actual_week_date AND ol.line_gross_amount < $22 THEN ol.qtyordered END AS week_total_units_ret, CASE WHEN o.created >= d.actual_date AND ol.line_gross_amount < $23 THEN ol.line_gross_amount END AS day_total_amount_ret, CASE WHEN o.created >= d.actual_date AND ol.line_gross_amount < $24 THEN ol.qtyordered END AS day_total_units_ret FROM c_orderline ol LEFT JOIN c_order o ON ol.c_order_id = o.c_order_id LEFT JOIN c_doctype cd ON cd.c_doctype_id=o.c_doctypetarget_id , ( SELECT trunc(now()) actual_date, date_trunc($25,now()) actual_week_date, date_trunc($26,now()) actual_month_date FROM dual) d WHERE o.ad_org_id = $27 AND o.created >= d.actual_month_date AND cd.docsubtypeso<>$28 AND o.issotrx=$29 ) AS f1 |
| 3ca20ddb6c | select adlanguage0_.AD_Language_ID as ad_langu1_51_0_, adlanguage0_.AD_Language as ad_langu2_51_0_, adlanguage0_.AD_Client_ID as ad_clien3_51_0_, adlanguage0_.AD_Org_ID as ad_org_i4_51_0_, adlanguage0_.IsActive as isactive5_51_0_, adlanguage0_.Created as created6_51_0_, adlanguage0_.CreatedBy as createdb7_51_0_, adlanguage0_.Updated as updated8_51_0_, adlanguage0_.UpdatedBy as updatedb9_51_0_, adlanguage0_.Name as name10_51_0_, adlanguage0_.LanguageISO as languag11_51_0_, adlanguage0_.CountryCode as country12_51_0_, adlanguage0_.IsBaseLanguage as isbasel13_51_0_, adlanguage0_.IsSystemLanguage as issyste14_51_0_, adlanguage0_.Processing as process15_51_0_, adlanguage0_.Pixelsize as pixelsi16_51_0_, adlanguage0_.Translatedby as transla17_51_0_, adlanguage0_.Isrtl as isrtl18_51_0_ from AD_Language adlanguage0_ where adlanguage0_.AD_Language=$1 |
| 08db126a91 | select "_"."c_orderline_id" as "c_orderline_id", "_"."c_order_id" as "c_order_id", "_"."ad_org_id" as "ad_org_id", "_"."isactive" as "Actif", "_"."issotrx" as "issotrx", "_"."c_bpartner_id" as "c_bpartner_id", "_"."c_currency_id" as "c_currency_id", "_"."m_product_id" as "m_product_id", "_"."m_warehouse_id" as "m_warehouse_id", "_"."m_product_category_id" as "m_product_category_id", "_"."line" as "line", cast("_"."Fecha Pedido" as date) as "Date Commande", cast("_"."Fecha Comprometida" as date) as "Date de livraison engagée", cast("_"."Fecha Enviada" as date) as "Fecha Enviada", "_"."Descripción" as "Description ligne", "_"."Cantidad Pedido" as "Qté Commandée", "_"."Precio Lista" as "Prix List", "_"."Precio Actual" as "Prix Actuel", "_"."Precio Limite" as "Prix Limite", "_"."Importe Linea" as "Montant net ligne", "_"."Descuento" as "€ Remise", "_"."Cantidad Recibida" as "Quantite reçue", cast("_"."Fecha Recepción" as date) as "Fecha Recepción" from ( SELECT OL.c_orderline_id , OL.c_order_id , OL.ad_org_id , OL.isactive , O.issotrx , OL.c_bpartner_id , OL.c_currency_id , OL.m_product_id , OL.m_warehouse_id , P.m_product_category_id , OL.line , OL.dateordered as "Fecha Pedido" , OL.datepromised as "Fecha Comprometida" , OL.datedelivered as "Fecha Enviada" , OL.description as "Descripción" , OL.qtyordered "Cantidad Pedido" , OL.pricelist "Precio Lista" , OL.priceactual "Precio Actual" , OL.pricelimit "Precio Limite" , OL.linenetamt "Importe Linea" , OL.discount as "Descuento" , (SELECT SUM(movementqty) FROM m_inoutline IOL WHERE IOL.c_orderline_id = OL.c_orderline_id) as "Cantidad Recibida" , (SELECT MAX(movementdate) FROM m_inoutline IOL INNER JOIN m_inout IO on IO.m_inout_id = IOL.m_inout_id WHERE IOL.c_orderline_id = OL.c_orderline_id) as "Fecha Recepción" FROM c_orderline OL LEFT JOIN c_order O on O.c_order_id = OL.c_order_id LEFT JOIN m_product P on P.m_product_id = OL.m_product_id WHERE $1=$2 AND O.issotrx <> $3 AND OL.dateordered >= CURRENT_DATE - INTERVAL $4 ) "_" |
| 8e8235137e | SELECT 1 FROM ONLY "public"."ad_org" x WHERE "ad_org_id"::pg_catalog.text OPERATOR(pg_catalog.=) $1::pg_catalog.text FOR KEY SHARE OF x |
| 528c231cbe | UPDATE M_STORAGE_DETAIL SET QTYONHAND=QTYONHAND + COALESCE(p_qty, $20), QTYORDERONHAND=QTYORDERONHAND + v_qtyorder, DATELASTINVENTORY=COALESCE(p_datelastinventory, DATELASTINVENTORY), PREQTYONHAND=PREQTYONHAND + COALESCE(p_preqty, $21), PREQTYORDERONHAND=PREQTYORDERONHAND + v_preqtyorder, AD_CLIENT_ID=p_client, UPDATED=TO_DATE(NOW()), UPDATEDBY=p_user WHERE M_PRODUCT_ID=p_product AND M_LOCATOR_ID=p_locator AND M_ATTRIBUTESETINSTANCE_ID=v_attributesetinstance AND C_UOM_ID=p_uom AND COALESCE(M_PRODUCT_UOM_ID, $22)=COALESCE(p_product_uom, $23) |
| 2d19e5b311 | insert into OBCFR_TicketReprint (AD_Client_ID, AD_Org_ID, Isactive, Created, Createdby, Updated, Updatedby, Obcfr_Ticket_ID, Obpos_Applications_ID, Printdate, Json, Prevhash, Hash, Hashtime, Documentno, Terminal, Seqno, Export, Obcfr_Ticketreprint_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19) |
| 7e35c14916 | select distinct aduser0_.Name as col_0_0_, aduser0_.UserName as col_1_0_, aduser0_.AD_User_ID as col_2_0_, aduser0_.Firstname as col_3_0_, aduser0_.Lastname as col_4_0_ from AD_User aduser0_ cross join AD_User_Roles aduserrole1_ cross join AD_Role adrole2_ cross join AD_Form_Access adformacce3_ cross join OBPOS_APPLICATIONS obpos_appl4_ cross join AD_Role_OrgAccess adroleorga5_ where aduser0_.IsActive=$21 and (aduser0_.UserName is not null) and (aduser0_.Password is not null) and aduserrole1_.IsActive=$22 and adrole2_.IsActive=$23 and obpos_appl4_.Value=$1 and aduser0_.AD_User_ID=aduserrole1_.AD_User_ID and aduserrole1_.AD_Role_ID=adrole2_.AD_Role_ID and adrole2_.IsPortal=$24 and (adformacce3_.IsActive=$25 and adrole2_.AD_Role_ID=adformacce3_.AD_Role_ID and adformacce3_.AD_Form_ID=$2 or adrole2_.IsManual=$26) and (adroleorga5_.AD_Role_ID=adrole2_.AD_Role_ID and adroleorga5_.AD_Org_ID=obpos_appl4_.AD_Org_ID and adroleorga5_.IsActive=$27 or adrole2_.IsManual=$28 and not (exists (select adroleorga6_.AD_Role_OrgAccess_ID from AD_Role_OrgAccess adroleorga6_ where adroleorga6_.AD_Role_ID=adrole2_.AD_Role_ID and adroleorga6_.IsActive=$29 and (adroleorga6_.AD_Org_ID in ($3 , $4 , $5 , $6 , $7 , $8))))) and (aduser0_.AD_Org_ID in ($9 , $10 , $11 , $12 , $13 , $14) or obpos_appl4_.AD_Org_ID in ($15 , $16 , $17 , $18 , $19 , $20)) and ( not (exists (select obpos_term7_.Obpos_Userterminal_Access_ID from OBPOS_Userterminal_Access obpos_term7_ where obpos_term7_.AD_User_ID=aduser0_.AD_User_ID)) or exists (select obpos_term8_.Obpos_Userterminal_Access_ID from OBPOS_Userterminal_Access obpos_term8_ where obpos_term8_.AD_User_ID=aduser0_.AD_User_ID and obpos_term8_.Obpos_Applications_ID=obpos_appl4_.Obpos_Applications_ID)) order by aduser0_.Name |
| 5a0394da1d | 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 |
| bb4767275d | SELECT coalesce(ad_language,$1) FROM AD_CLIENT WHERE ad_client_id=$2 |
| d1e21ddf3e | SELECT REPLACE(REPLACE(SQL_RECORD_IDENTIFIER, $4, $5 || p_Language || $6), $7, p_Record_ID) FROM AD_TABLE WHERE UPPER(TABLENAME)=UPPER(p_TableName) |
| f314672ade | 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 |
| d3dcdac298 | SELECT AD_LEGALENTITY_ORG_ID FROM AD_Org WHERE AD_Org_ID = p_org_id |
| 19825253ef | select c_import_e0_.C_IMPORT_ENTRY_ID as c_import1_236_, c_import_e0_.AD_Client_ID as ad_clien2_236_, c_import_e0_.AD_Org_ID as ad_org_i3_236_, c_import_e0_.Isactive as isactive4_236_, c_import_e0_.Created as created5_236_, c_import_e0_.Createdby as createdb6_236_, c_import_e0_.Updated as updated7_236_, c_import_e0_.Updatedby as updatedb8_236_, c_import_e0_.Imported as imported9_236_, c_import_e0_.Jsoninfo as jsoninf10_236_, c_import_e0_.ImportStatus as imports11_236_, c_import_e0_.Typeofdata as typeofd12_236_, c_import_e0_.Errorinfo as errorin13_236_, c_import_e0_.AD_Role_ID as ad_role14_236_, c_import_e0_.Createdtimestamp as created15_236_, c_import_e0_.EM_Obpos_Applications_ID as em_obpo16_236_, c_import_e0_.Responseinfo as respons17_236_, c_import_e0_.Isnonblocking as isnonbl18_236_ from C_IMPORT_ENTRY c_import_e0_ where c_import_e0_.Typeofdata=$1 and c_import_e0_.ImportStatus=$3 order by c_import_e0_.Created, c_import_e0_.Createdtimestamp limit $2 |
| 4f9621bcb7 | insert into C_Order (AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, IsSOTrx, DocumentNo, DocStatus, DocAction, Processing, Processed, C_DocType_ID, C_DocTypeTarget_ID, Description, IsDelivered, IsInvoiced, IsPrinted, IsSelected, SalesRep_ID, DateOrdered, DatePromised, DateAcct, C_BPartner_ID, BillTo_ID, C_BPartner_Location_ID, IsDiscountPrinted, C_Currency_ID, PaymentRule, C_PaymentTerm_ID, InvoiceRule, DeliveryRule, FreightCostRule, DeliveryViaRule, ChargeAmt, PriorityRule, TotalLines, GrandTotal, M_Warehouse_ID, M_PriceList_ID, IsTaxIncluded, Posted, AD_User_ID, CopyFrom, IsSelfService, AD_OrgTrx_ID, Generatetemplate, CopyFromPO, FIN_Paymentmethod_ID, RM_PickFromShipment, RM_ReceiveMaterials, RM_CreateInvoice, RM_AddOrphanLine, Calculate_Promotions, Convertquotation, Create_POLines, EM_Obdisc_Addpack, Iscashvat, EM_OBMFM_Selectfreight, RM_Pickfromreceipt, Cancelandreplace, EM_APRM_AddPayment, Confirmcancelandreplace, EM_Obwpl_Generatepicking, EM_Obwpl_Isinpickinglist, EM_Fash_Sendbeforedate, EM_Obwpl_Readypl, EM_Poss_Businessdate, Iscancelled, EM_OBMFM_Set_Weight, EM_Obpos_Applications_ID, EM_Obpos_Sendemail, EM_Obpos_App_Cashup_ID, EM_Obpos_Createdabsolute, EM_OBPOS_NotInvoiceOnCashUp, EM_Obpos_Isdeleted, EM_Obpos_Islayaway, EM_Obpos_Prepaymentamt, EM_Obpos_Prepaymentlimitamt, EM_Obpos_Prepaymentlaylimitamt, EM_Obpos_Rounding_Amount, EM_Obpos_Sequencename, EM_Obpos_Sequencenumber, EM_Prpp_Generatepicking, EM_Api_Resend, EM_OBSMAIL_EmailAddress, EM_Prouti_Order_Stock, EM_Prouti_Pregenerate_Minout, EM_Prouti_Sotopo, EM_Prouti_Generate_Pick_Inv, EM_Prouti_Changebpartner, EM_Prouti_Recalculate_Price, EM_Prouti_Reactiveorder, EM_Izi_Exported, EM_Izijoy_Export_Enjoy, EM_Izi_Splio_Exported, em_prouti_Invoiced, em_prouti_Received, em_prouti_initial_received, EM_Prouti_Status_Of_Review, EM_Prouti_Validate_Order, EM_Prouti_Start_Review, EM_Obpos_Skip_Tax_Calculation, EM_Prouti_Addlines_Btn, EM_Avisver_Export, EM_Prouti_Select_Soline, EM_Prgr_Assign, C_Order_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40, $41, $42, $43, $44, $45, $46, $47, $48, $49, $50, $51, $52, $53, $54, $55, $56, $57, $58, $59, $60, $61, $62, $63, $64, $65, $66, $67, $68, $69, $70, $71, $72, $73, $74, $75, $76, $77, $78, $79, $80, $81, $82, $83, $84, $85, $86, $87, $88, $89, $90, $91, $92, $93, $94, $95, $96, $97, $98, $99, $100, $101, $102, $103, $104, $105, $106, $107, $108, $109) |
| 8cb37f78ee | insert into C_OrderLine (AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, C_Order_ID, Line, C_BPartner_ID, DateOrdered, Description, M_Product_ID, M_Warehouse_ID, DirectShip, C_UOM_ID, QtyOrdered, QtyDelivered, C_Currency_ID, PriceList, PriceActual, LineNetAmt, Discount, ChargeAmt, C_Tax_ID, IsDescription, PriceStd, CANCELPRICEAD, Iseditlinenetamt, Gross_Unit_Price, Line_Gross_Amount, GrossPriceList, grosspricestd, Manage_Reservation, Manage_Prereservation, Explode, EM_OBMFM_IsFreightAmt, EM_Phieco_Deeenet, Print_Description, EM_Obwpl_Readypl, EM_Phieco_Deanet, EM_Phieco_Deeegross, Relate_Orderline, EM_Obrdm_Delivery_Mode, EM_Phieco_Deagross, em_fash_prodset_isvalidate, EM_Fash_Exclude_Productset, EM_Obpos_Isdeleted, EM_Obpos_Service_Proposed, EM_Prouti_Closeline, EM_Obpos_Canbedelivered, EM_Obpos_Ispaid, EM_Phieco_Pmcbnet, EM_Phieco_Pmcbgross, Salesrep_ID, EM_Izi_Splio_Exported, EM_Prouti_Recalculate_Qtyinit, C_OrderLine_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40, $41, $42, $43, $44, $45, $46, $47, $48, $49, $50, $51, $52, $53, $54, $55, $56, $57, $58) |
| b2ca99ce15 | select "_"."c_order_id" as "c_order_id", "_"."ad_org_id" as "ad_org_id", "_"."isactive" as "isactive", "_"."issotrx" as "issotrx", "_"."m_pricelist_id" as "m_pricelist_id", "_"."Documento" as "Documento", "_"."Estado Pedido" as "Estado Pedido", "_"."Accion Pedido" as "Accion Pedido", "_"."Tipo Documento" as "Tipo Documento", "_"."Descripción" as "Descripción", "_"."Fecha Pedido" as "Fecha Pedido", "_"."Fecha Comprometida" as "Fecha Comprometida", "_"."c_bpartner_id" as "c_bpartner_id", "_"."Referencia Proveedor" as "Referencia Proveedor", "_"."c_currency_id" as "c_currency_id", "_"."Currency ISO" as "Currency ISO", "_"."m_warehouse_id" as "m_warehouse_id", "_"."Ciudad" as "Ciudad", "_"."Codigo Postal" as "Codigo Postal", "_"."Pais" as "Pais", "_"."Region" as "Region", "_"."TPV Name" as "TPV Name", cast("_"."Fecha Pedido" as date) as "t0_0", cast("_"."Fecha Comprometida" as date) as "t1_0" from ( select "c_order_id", "ad_org_id", "isactive", "issotrx", "m_pricelist_id", "Documento", "Estado Pedido", "Accion Pedido", "Tipo Documento", "Descripción", "Fecha Pedido", "Fecha Comprometida", "c_bpartner_id", "Referencia Proveedor", "c_currency_id", "Currency ISO", "m_warehouse_id", "Ciudad", "Codigo Postal", "Pais", "Region", "TPV Name" from ( SELECT O.c_order_id , O.ad_org_id , O.isactive , O.issotrx , O.m_pricelist_id , O.documentno as "Documento" , O.docstatus as "Estado Pedido" , O.docaction as "Accion Pedido" , O.processed as "Procesado" , DT.name as "Tipo Documento" , O.description as "Descripción" , O.dateordered as "Fecha Pedido" , O.datepromised as "Fecha Comprometida" , O.c_bpartner_id , O.poreference "Referencia Proveedor" , O.c_currency_id , cu.iso_code "Currency ISO" , O.m_warehouse_id , cl.city as "Ciudad" , cl.postal as "Codigo Postal" , cc."name" as "Pais" , cr."name" as "Region" , OA."name" as "TPV Name" FROM c_order O LEFT JOIN c_doctype DT on DT.c_doctype_id = O.c_doctype_id INNER JOIN c_currency cu on cu.c_currency_id = o.c_currency_id LEFT JOIN c_bpartner_location cbl on cbl.c_bpartner_location_id = O.c_bpartner_location_id LEFT JOIN c_location cl on cl.c_location_id = cbl.c_location_id LEFT JOIN c_country cc on cc.c_country_id = cl.c_country_id LEFT JOIN c_region cr on cr.c_region_id = cl.c_region_id left join obpos_applications OA on OA.obpos_applications_id = O.em_obpos_applications_id WHERE $1=$2 AND O.issotrx <> $3 AND O.dateordered >= CURRENT_DATE - INTERVAL $4 ) "$Table" ) "_" |
| 018c5dd71e | select c_bpartner_id , trunc(created) as created , (select cc.name from c_bpartner_location cbl inner join c_location cl on cbl.c_location_id = cl.c_location_id left join c_country cc on cc.c_country_id = cl.c_country_id where cbl.c_bpartner_id = c_bpartner.c_bpartner_id limit $1) as bp_country from c_bpartner where $2=$3 and isactive = $4 |
| 48f140c821 | update c_orderline set qtyinvoiced=qtyordered where c_orderline_id in ( select ol.c_orderline_id from c_order o, c_orderline ol, c_orderlinetax olt, c_invoice i, c_invoiceline il where o.c_order_id = ol.c_order_id and ol.c_orderline_id = olt.c_orderline_id and ol.c_orderline_id = il.c_orderline_id and il.c_invoice_id = i.c_invoice_id and i.documentno = $1 and i.c_bpartner_id = o.c_bpartner_id and i.c_bpartner_location_id = coalesce(o.billto_id, o.c_bpartner_location_id) and coalesce(i.ad_user_id, $2) = coalesce(o.ad_user_id, $3)) |
| f398687456 | insert into C_Order (AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, IsSOTrx, DocumentNo, DocStatus, DocAction, Processing, Processed, C_DocType_ID, C_DocTypeTarget_ID, Description, IsDelivered, IsInvoiced, IsPrinted, IsSelected, SalesRep_ID, DateOrdered, DatePromised, DateAcct, C_BPartner_ID, BillTo_ID, C_BPartner_Location_ID, IsDiscountPrinted, C_Currency_ID, PaymentRule, C_PaymentTerm_ID, InvoiceRule, DeliveryRule, FreightCostRule, DeliveryViaRule, ChargeAmt, PriorityRule, TotalLines, GrandTotal, M_Warehouse_ID, M_PriceList_ID, IsTaxIncluded, Posted, AD_User_ID, CopyFrom, IsSelfService, AD_OrgTrx_ID, Generatetemplate, CopyFromPO, FIN_Paymentmethod_ID, RM_PickFromShipment, RM_ReceiveMaterials, RM_CreateInvoice, RM_AddOrphanLine, Calculate_Promotions, Convertquotation, Create_POLines, EM_Obdisc_Addpack, Iscashvat, EM_OBMFM_Selectfreight, RM_Pickfromreceipt, Cancelandreplace, EM_APRM_AddPayment, Confirmcancelandreplace, EM_Obwpl_Generatepicking, EM_Obwpl_Isinpickinglist, EM_Fash_Sendbeforedate, EM_Obwpl_Readypl, EM_Poss_Businessdate, Iscancelled, EM_OBMFM_Set_Weight, EM_Obpos_Applications_ID, EM_Obpos_Sendemail, EM_Obpos_App_Cashup_ID, EM_Obpos_Createdabsolute, EM_OBPOS_NotInvoiceOnCashUp, EM_Obpos_Isdeleted, EM_Obpos_Islayaway, EM_Obpos_Prepaymentamt, EM_Obpos_Prepaymentlimitamt, EM_Obpos_Prepaymentlaylimitamt, EM_Obpos_Rounding_Amount, EM_Obpos_Sequencename, EM_Obpos_Sequencenumber, EM_Prpp_Generatepicking, EM_Api_Resend, EM_Prouti_Order_Stock, EM_Prouti_Pregenerate_Minout, EM_Prouti_Sotopo, EM_Prouti_Generate_Pick_Inv, EM_Prouti_Changebpartner, EM_Prouti_Recalculate_Price, EM_Prouti_Reactiveorder, EM_Izi_Exported, EM_Izijoy_Export_Enjoy, EM_Izi_Splio_Exported, em_prouti_Invoiced, em_prouti_Received, em_prouti_initial_received, EM_Prouti_Status_Of_Review, EM_Prouti_Validate_Order, EM_Prouti_Start_Review, EM_Obpos_Skip_Tax_Calculation, EM_Prouti_Addlines_Btn, EM_Avisver_Export, EM_Prouti_Select_Soline, EM_Prgr_Assign, C_Order_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40, $41, $42, $43, $44, $45, $46, $47, $48, $49, $50, $51, $52, $53, $54, $55, $56, $57, $58, $59, $60, $61, $62, $63, $64, $65, $66, $67, $68, $69, $70, $71, $72, $73, $74, $75, $76, $77, $78, $79, $80, $81, $82, $83, $84, $85, $86, $87, $88, $89, $90, $91, $92, $93, $94, $95, $96, $97, $98, $99, $100, $101, $102, $103, $104, $105, $106, $107, $108) |
| 70caf7bb1e | insert into OBCFR_TicketTax (AD_Client_ID, AD_Org_ID, Isactive, Created, Createdby, Updated, Updatedby, Obcfr_Ticket_ID, Obpos_Applications_ID, Taxrate, Taxbase, Taxamt, Prevhash, Hash, Hashtime, Documentno, Terminal, Seqno, Export, Obcfr_Tickettax_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20) |
| fe62dd3708 | INSERT INTO m_stock_proposed ( m_stock_proposed_id, ad_client_id, ad_org_id, isactive, created , createdby, updated, updatedby, ad_pinstance_id, priority, m_storage_detail_id, quantity, qtyorder, isfinal ) VALUES ( get_uuid(), v_ClientID, v_OrgID, $60, TO_DATE(NOW()), v_AD_User_ID, TO_DATE(NOW()), v_AD_User_ID, p_uuid, v_Count, Cur_Stock.M_STORAGE_DETAIL_ID, Cur_Stock.Qty, Cur_Stock.QtyOrder, $61 ) |
| 50e85a5d5e | SELECT * FROM M_GET_STOCK_PARAM($1, $2, TO_NUMBER($3), $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, TO_NUMBER($17), $18, $19, $20, $21, $22, $23) |
| DB | Tablespace | Schema | Table | ~SeqBytes | SeqScan | IxScan | IxFet | Ins | Upd | Del | Upd(HOT) |
|---|---|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | c_order | 89 GB | 97 | 6335116 | 50291643 | 815 | 1330 | ||
| c_order(TOAST) | |||||||||||
| openbravo | pg_default | public | c_bpartner | 28 GB | 168 | 1031620 | 1043786 | 249 | 18 | 2 | |
| c_bpartner(TOAST) | |||||||||||
| openbravo | pg_default | public | ad_orgtype | 27 GB | 3492903 | 364 | 364 | ||||
| openbravo | pg_default | public | fin_payment | 13 GB | 21 | 23299 | 23107 | 756 | 2316 | 648 | |
| fin_payment(TOAST) | |||||||||||
| openbravo | pg_default | public | fin_payment_schedule | 10 GB | 24 | 5768476 | 6093610 | 1173 | 1170 | 7 | 148 |
| fin_payment_schedule(TOAST) | |||||||||||
| openbravo | pg_default | public | ad_user | 8767 MB | 80 | 5643209 | 5642060 | 289 | 322 | 277 | |
| ad_user(TOAST) | |||||||||||
| openbravo | pg_default | public | m_inout | 7484 MB | 17 | 520850669 | 520850669 | 768 | 768 | ||
| m_inout(TOAST) | 4247 | 64040 | |||||||||
| openbravo | pg_default | public | m_transaction | 7436 MB | 12 | 200982 | 482172 | 1316 | |||
| m_transaction(TOAST) | |||||||||||
| openbravo | pg_default | pg_catalog | pg_class | 6185 MB | 7132 | 803947 | 802930 | ||||
| openbravo | pg_default | public | m_inoutline | 3932 MB | 6 | 22469670 | 545917526 | 1355 | |||
| m_inoutline(TOAST) | |||||||||||
| openbravo | pg_default | public | c_location | 3256 MB | 48 | 15422786 | 33143945 | 226 | 226 | ||
| c_location(TOAST) | |||||||||||
| openbravo | pg_default | public | c_invoice | 3149 MB | 12 | 7721 | 347913 | 435 | 493 | ||
| c_invoice(TOAST) | |||||||||||
| openbravo | pg_default | profile | last_stat_database | 2805 MB | 123233 | 92 | 92 | ||||
| openbravo | pg_default | public | ad_table | 1789 MB | 2516 | 600 | 600 | ||||
| ad_table(TOAST) | |||||||||||
| openbravo | pg_default | pg_catalog | pg_proc | 1592 MB | 825 | 62024 | 89296 | ||||
| pg_proc(TOAST) | 1766 | 4853 | |||||||||
| openbravo | pg_default | public | c_orderline | 1185 MB | 1 | 587521 | 36284360 | 1438 | 2750 | 1117 | |
| c_orderline(TOAST) | |||||||||||
| openbravo | pg_default | public | obcfr_ticketreprint | 966 MB | 1 | 818 | 818 | 818 | |||
| obcfr_ticketreprint(TOAST) | 5533 | 5818 | 20 | ||||||||
| openbravo | pg_default | public | m_product | 959 MB | 242 | 3097078 | 3227876 | ||||
| m_product(TOAST) | |||||||||||
| openbravo | pg_default | public | obcfr_ticket | 927 MB | 1 | 3488 | 3619 | 815 | |||
| obcfr_ticket(TOAST) | 3255 | 3570 | 12 | ||||||||
| openbravo | pg_default | profile | last_stat_tablespaces | 683 MB | 43733 | 46 | 46 | ||||
| last_stat_tablespaces(TOAST) | |||||||||||
| DB | Tablespace | Schema | Table | Heap | Ix | TOAST | TOAST-Ix | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Blks | %Total | Blks | %Total | Blks | %Total | Blks | %Total | ||||
| openbravo | pg_default | public | m_inout | 521847584 | 16.13 | 1569182118 | 48.50 | 19148 | 0.00 | 104628 | 0.00 |
| openbravo | pg_default | public | m_inoutline | 528224196 | 16.33 | 71490059 | 2.21 | ||||
| openbravo | pg_default | public | c_bpartner_location | 35178635 | 1.09 | 52655303 | 1.63 | ||||
| openbravo | pg_default | public | c_location | 33561296 | 1.04 | 46476294 | 1.44 | ||||
| openbravo | pg_default | public | c_order | 49766263 | 1.54 | 22074600 | 0.68 | ||||
| openbravo | pg_default | public | ad_org | 28662804 | 0.89 | 28439579 | 0.88 | 25093 | 0.00 | 75456 | 0.00 |
| openbravo | pg_default | public | c_orderline | 29107017 | 0.90 | 2755039 | 0.09 | ||||
| openbravo | pg_default | public | m_costing | 27935702 | 0.86 | ||||||
| openbravo | pg_default | public | c_country | 13323670 | 0.41 | 13323179 | 0.41 | ||||
| openbravo | pg_default | public | fin_payment_schedule | 7468510 | 0.23 | 17368750 | 0.54 | ||||
| openbravo | pg_default | public | ad_user | 6785071 | 0.21 | 16976167 | 0.52 | ||||
| openbravo | pg_default | public | fin_payment_detail | 10795274 | 0.33 | 122166 | 0.00 | ||||
| openbravo | pg_default | public | m_matchpo | 2592708 | 0.08 | 7820010 | 0.24 | ||||
| openbravo | pg_default | public | m_product | 3328527 | 0.10 | 6321915 | 0.20 | ||||
| openbravo | pg_default | public | c_bpartner | 4682731 | 0.14 | 3110452 | 0.10 | ||||
| openbravo | pg_default | public | fin_payment_scheduledetail | 5805568 | 0.18 | 161259 | 0.00 | ||||
| openbravo | pg_default | profile | last_stat_tables | 4723188 | 0.15 | 134293 | 0.00 | ||||
| openbravo | pg_default | public | c_import_entry | 3211696 | 0.10 | 1061309 | 0.03 | 109164 | 0.00 | 232312 | 0.01 |
| openbravo | pg_default | public | ad_orgtype | 3493267 | 0.11 | 384 | 0.00 | ||||
| openbravo | pg_default | pg_catalog | pg_class | 1556444 | 0.05 | 1628697 | 0.05 | ||||
| DB | Tablespace | Schema | Table | Heap | Ix | TOAST | TOAST-Ix | Hit(%) | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Blks | %Total | Blks | %Total | Blks | %Total | Blks | %Total | |||||
| openbravo | pg_default | public | c_orderline | 197 | 0.10 | 32346 | 16.88 | 99.90 | ||||
| openbravo | pg_default | public | c_order | 276 | 0.14 | 28345 | 14.79 | 99.96 | ||||
| openbravo | pg_default | public | m_inoutline | 97 | 0.05 | 23557 | 12.29 | 100.00 | ||||
| openbravo | pg_default | public | fin_payment_schedule | 90 | 0.05 | 12401 | 6.47 | 99.95 | ||||
| openbravo | pg_default | public | obmobc_logclient | 2609 | 1.36 | 6952 | 3.63 | 99.00 | ||||
| openbravo | pg_default | public | fin_payment_scheduledetail | 67 | 0.03 | 9482 | 4.95 | 99.84 | ||||
| openbravo | pg_default | public | m_inout | 90 | 0.05 | 7188 | 3.75 | 100.00 | ||||
| openbravo | pg_default | public | fin_payment_detail | 35 | 0.02 | 5799 | 3.03 | 99.95 | ||||
| openbravo | pg_default | public | c_invoiceline | 92 | 0.05 | 4991 | 2.60 | 94.96 | ||||
| openbravo | pg_default | public | ad_user | 30 | 0.02 | 4126 | 2.15 | 99.98 | ||||
| openbravo | pg_default | public | c_orderlinetax | 74 | 0.04 | 3928 | 2.05 | 89.99 | ||||
| openbravo | pg_default | public | obcfr_tickettax | 68 | 0.04 | 3842 | 2.00 | 86.38 | ||||
| openbravo | pg_default | public | c_import_entry_archive | 248 | 0.13 | 1022 | 0.53 | 2465 | 1.29 | 87 | 0.05 | 99.70 |
| openbravo | pg_default | public | c_invoice | 93 | 0.05 | 3402 | 1.78 | 99.58 | ||||
| openbravo | pg_default | public | c_invoicelinetax | 59 | 0.03 | 3083 | 1.61 | 85.37 | ||||
| openbravo | pg_default | public | c_bpartner | 28 | 0.01 | 3059 | 1.60 | 99.96 | ||||
| openbravo | pg_default | public | obcfr_ticketreprint | 188 | 0.10 | 2837 | 1.48 | 8 | 0.00 | 98.54 | ||
| openbravo | pg_default | public | c_bpartner_location | 20 | 0.01 | 2803 | 1.46 | 100.00 | ||||
| openbravo | pg_default | public | fin_finacc_transaction | 81 | 0.04 | 2729 | 1.42 | 97.68 | ||||
| openbravo | pg_default | public | obcfr_ticket | 179 | 0.09 | 2200 | 1.15 | 5 | 0.00 | 98.80 | ||
| DB | Tablespace | Schema | Table | Ins | Upd | Del | Upd(HOT) | SeqScan | SeqFet | IxScan | IxFet |
|---|---|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | profile | last_stat_indexes | 67298 | 1633 | 67298 | 2 | 183 | 1070916 | 41217 | 408347 |
| openbravo | pg_default | profile | last_stat_tables | 39238 | 4356 | 39238 | 54 | 184 | 627808 | 9482 | 4180815 |
| openbravo | pg_default | public | c_import_entry | 7787 | 7787 | 7787 | 359273 | 207501 | |||
| c_import_entry(TOAST) | 11849 | 11849 | 18966 | 60627 | |||||||
| openbravo | pg_default | public | obmobc_logclient | 44250 | |||||||
| obmobc_logclient(TOAST) | |||||||||||
| openbravo | pg_default | profile | last_stat_user_functions | 9039 | 909 | 9039 | 48 | 391 | 271170 | ||
| last_stat_user_functions(TOAST) | |||||||||||
| openbravo | pg_default | public | c_import_entry_archive | 3285 | 1 | 125471 | 7778 | ||||
| c_import_entry_archive(TOAST) | 10849 | 97751 | 422364 | ||||||||
| openbravo | pg_default | pg_catalog | pg_statistic | 11067 | 9509 | 295140 | 245580 | ||||
| pg_statistic(TOAST) | 1409 | 1410 | 28587 | 59106 | |||||||
| openbravo | pg_default | profile | sample_stat_tables | 4356 | 4558 | 23 | 717044 | 147 | 4749 | ||
| openbravo | pg_default | public | c_orderline | 1438 | 2750 | 1117 | 1 | 1966111 | 587521 | 36284360 | |
| c_orderline(TOAST) | |||||||||||
| openbravo | pg_default | public | fin_payment | 756 | 2316 | 648 | 21 | 15083775 | 23299 | 23107 | |
| fin_payment(TOAST) | |||||||||||
| openbravo | pg_default | profile | sample_stat_indexes | 1404 | 1624 | 20 | 234221 | 154 | 1675 | ||
| openbravo | pg_default | public | fin_payment_scheduledetail | 756 | 2258 | 729 | 25277 | 5769866 | |||
| fin_payment_scheduledetail(TOAST) | |||||||||||
| openbravo | pg_default | profile | sample_statements | 1282 | 1411 | 40 | 433770 | 97 | 1411 | ||
| sample_statements(TOAST) | |||||||||||
| openbravo | pg_default | public | fin_finacc_transaction | 818 | 1569 | 4932 | 8143 | ||||
| fin_finacc_transaction(TOAST) | |||||||||||
| openbravo | pg_default | public | fin_payment_schedule | 1173 | 1170 | 7 | 148 | 24 | 30727719 | 5768476 | 6093610 |
| fin_payment_schedule(TOAST) | |||||||||||
| openbravo | pg_default | public | ad_sequence | 2286 | 2189 | 28 | 28 | 4753 | 4753 | ||
| ad_sequence(TOAST) | |||||||||||
| openbravo | pg_default | public | c_order | 815 | 1330 | 97 | 79916396 | 6335116 | 50291643 | ||
| c_order(TOAST) | |||||||||||
| openbravo | pg_default | public | obpos_applications | 1920 | 1776 | 146 | 9198 | 150720 | 127507 | ||
| obpos_applications(TOAST) | |||||||||||
| openbravo | pg_default | public | m_inout | 768 | 768 | 17 | 12392263 | 520850669 | 520850669 | ||
| m_inout(TOAST) | 4247 | 64040 | |||||||||
| openbravo | pg_default | public | c_orderlinetax | 1438 | 2447 | 2447 | |||||
| c_orderlinetax(TOAST) | |||||||||||
| DB | Tablespace | Schema | Table | Upd | Upd(HOT) | Del | Vacuum | AutoVacuum | Analyze | AutoAnalyze |
|---|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | profile | last_stat_indexes | 1633 | 2 | 67298 | 35 | 46 | 23 | |
| openbravo | pg_default | profile | last_stat_tables | 4356 | 54 | 39238 | 35 | 46 | 23 | |
| openbravo | pg_default | public | c_import_entry | 7787 | 7787 | 77 | 96 | |||
| c_import_entry(TOAST) | 11849 | 58 | ||||||||
| openbravo | pg_default | pg_catalog | pg_statistic | 11067 | 9509 | 1 | ||||
| pg_statistic(TOAST) | 1410 | 3 | ||||||||
| openbravo | pg_default | profile | last_stat_user_functions | 909 | 48 | 9039 | 35 | 46 | 23 | |
| last_stat_user_functions(TOAST) | ||||||||||
| openbravo | pg_default | profile | sample_stat_tables | 4558 | 2 | |||||
| openbravo | pg_default | public | c_orderline | 2750 | 1117 | |||||
| c_orderline(TOAST) | ||||||||||
| openbravo | pg_default | public | fin_payment | 2316 | 648 | |||||
| fin_payment(TOAST) | ||||||||||
| openbravo | pg_default | public | ad_sequence | 2286 | 2189 | 1 | 19 | |||
| ad_sequence(TOAST) | ||||||||||
| openbravo | pg_default | public | fin_payment_scheduledetail | 2258 | 729 | |||||
| fin_payment_scheduledetail(TOAST) | ||||||||||
| openbravo | pg_default | public | obpos_applications | 1920 | 1776 | 16 | 31 | |||
| obpos_applications(TOAST) | ||||||||||
| openbravo | pg_default | profile | sample_stat_indexes | 1624 | 2 | |||||
| openbravo | pg_default | public | fin_finacc_transaction | 1569 | ||||||
| fin_finacc_transaction(TOAST) | ||||||||||
| openbravo | pg_default | public | m_storage_detail | 1414 | 13 | |||||
| m_storage_detail(TOAST) | ||||||||||
| openbravo | pg_default | profile | sample_statements | 1411 | 2 | |||||
| sample_statements(TOAST) | ||||||||||
| openbravo | pg_default | public | c_order | 1330 | ||||||
| c_order(TOAST) | ||||||||||
| openbravo | pg_default | public | fin_payment_schedule | 1170 | 148 | 7 | ||||
| fin_payment_schedule(TOAST) | ||||||||||
| openbravo | pg_default | public | obpos_app_cashup | 942 | 117 | |||||
| obpos_app_cashup(TOAST) | ||||||||||
| openbravo | pg_default | public | m_inout | 768 | ||||||
| m_inout(TOAST) | ||||||||||
| openbravo | pg_default | profile | sample_stat_user_functions | 767 | 2 |
| DB | Tablespace | Schema | Table | Size | Growth | Ins | Upd | Del | Upd(HOT) |
|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | profile | sample_stat_tables | 9312 kB | 1160 kB | 4356 | 4558 | ||
| openbravo | pg_default | public | m_inoutline | 656 MB | 944 kB | 1355 | |||
| m_inoutline(TOAST) | |||||||||
| openbravo | pg_default | profile | last_stat_indexes | 1936 kB | 928 kB | 67298 | 1633 | 67298 | 2 |
| openbravo | pg_default | pg_catalog | pg_statistic | 4968 kB | 832 kB | 11067 | 9509 | ||
| pg_statistic(TOAST) | 3728 kB | 80 kB | 1409 | 1410 | |||||
| openbravo | pg_default | profile | last_stat_tables | 1488 kB | 744 kB | 39238 | 4356 | 39238 | 54 |
| openbravo | pg_default | profile | sample_statements | 3144 kB | 320 kB | 1282 | 1411 | ||
| sample_statements(TOAST) | |||||||||
| openbravo | pg_default | profile | sample_stat_indexes | 1784 kB | 208 kB | 1404 | 1624 | ||
| openbravo | pg_default | public | ad_process_run | 2744 kB | 152 kB | 305 | 305 | ||
| ad_process_run(TOAST) | 864 kB | 40 kB | 22 | ||||||
| openbravo | pg_default | profile | last_stat_user_functions | 256 kB | 144 kB | 9039 | 909 | 9039 | 48 |
| last_stat_user_functions(TOAST) | |||||||||
| openbravo | pg_default | profile | sample_stat_user_functions | 632 kB | 80 kB | 616 | 767 | ||
| openbravo | pg_default | profile | sample_stat_tables_total | 344 kB | 56 kB | 120 | 136 | ||
| openbravo | pg_default | public | ad_ep_instance_para | 48 kB | 40 kB | 68 | 68 | ||
| ad_ep_instance_para(TOAST) | |||||||||
| openbravo | pg_default | profile | sample_stat_database | 232 kB | 40 kB | 56 | 60 | ||
| openbravo | pg_default | profile | last_stat_database | 40 kB | 32 kB | 92 | 92 | ||
| openbravo | pg_default | profile | indexes_list | 136 kB | 32 kB | 20 | 15 | ||
| openbravo | pg_default | profile | sample_statements_total | 136 kB | 32 kB | 45 | 54 | ||
| sample_statements_total(TOAST) | |||||||||
| openbravo | pg_default | public | ad_process_request | 96 kB | 8192 bytes | 304 | 300 | ||
| ad_process_request(TOAST) | 184 kB | ||||||||
| DB | Tablespace | Schema | Table | Index | Scans | Blks | %Total |
|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | m_inout | m_inout_key | 520849419 | 1569129011 | 48.50 |
| openbravo | pg_default | public | m_inoutline | m_inoutline_orderline | 21802397 | 65800691 | 2.03 |
| openbravo | pg_default | public | c_bpartner_location | c_bplocation_bpartner | 17419401 | 52381856 | 1.62 |
| openbravo | pg_default | public | c_location | c_location_key | 15422786 | 46474754 | 1.44 |
| openbravo | pg_default | public | ad_org | ad_org_key | 28436371 | 28436558 | 0.88 |
| openbravo | pg_default | public | m_costing | m_costing_product_date | 27934766 | 27935000 | 0.86 |
| openbravo | pg_default | public | c_order | c_order_key | 6323748 | 19127360 | 0.59 |
| openbravo | pg_default | public | fin_payment_schedule | fin_payment_schedule_key | 5758370 | 17319802 | 0.54 |
| openbravo | pg_default | public | ad_user | ad_user_partner | 5509207 | 16568093 | 0.51 |
| openbravo | pg_default | public | c_country | c_country_key | 13316684 | 13316821 | 0.41 |
| openbravo | pg_default | public | m_matchpo | m_matchpo_inout | 2600472 | 7819968 | 0.24 |
| openbravo | pg_default | public | m_product | m_product_key | 3083209 | 6183799 | 0.19 |
| openbravo | pg_default | public | m_inoutline | m_inoutline_product | 635085 | 5557129 | 0.17 |
| openbravo | pg_default | public | c_bpartner | c_bpartner_key | 1021354 | 3068658 | 0.09 |
| openbravo | pg_default | public | c_order | c_order_client_org_date_docno | 212 | 2618638 | 0.08 |
| openbravo | pg_default | public | c_orderline | em_obpos_orderedqty | 522491 | 2250378 | 0.07 |
| openbravo | pg_default | pg_catalog | pg_class | pg_class_oid_index | 756643 | 1526272 | 0.05 |
| openbravo | pg_default | pg_catalog | pg_attribute | pg_attribute_relid_attnum_index | 578080 | 1171231 | 0.04 |
| openbravo | pg_default | public | m_storage_detail | m_storage_detail_un | 200253 | 608721 | 0.02 |
| openbravo | pg_default | public | m_transaction | m_transaction_inoutline | 200950 | 606726 | 0.02 |
| DB | Tablespace | Schema | Table | Index | Scans | Blk Reads | %Total | Hits(%) |
|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | c_order | c_order_client_org_date_docno | 212 | 15152 | 7.91 | 99.42 |
| openbravo | pg_default | public | c_orderline | em_obpos_orderedqty | 522491 | 14171 | 7.39 | 99.37 |
| openbravo | pg_default | public | c_orderline | c_orderline_key | 9697 | 14096 | 7.36 | 84.05 |
| openbravo | pg_default | public | m_inoutline | m_inoutline_product | 635085 | 10880 | 5.68 | 99.80 |
| openbravo | pg_default | public | m_inoutline | m_inoutline_orderline | 21802397 | 10871 | 5.67 | 99.98 |
| openbravo | pg_default | public | fin_payment_schedule | fin_payment_schedule_key | 5758370 | 9228 | 4.82 | 99.95 |
| openbravo | pg_default | public | c_order | c_order_dateordered_id | 38 | 5296 | 2.76 | 66.43 |
| openbravo | pg_default | public | m_inout | m_inout_key | 520849419 | 5249 | 2.74 | 100.00 |
| openbravo | pg_default | public | fin_payment_scheduledetail | fin_pymt_schdet_det_idx | 2724 | 5169 | 2.70 | 81.49 |
| openbravo | pg_default | public | fin_payment_detail | fin_payment_detail_key | 1812 | 5132 | 2.68 | 75.35 |
| openbravo | pg_default | public | c_order | c_order_ad_orgtrx | 81 | 4746 | 2.48 | 86.90 |
| openbravo | pg_default | public | obmobc_logclient | obmobc_logclient_pk | 4463 | 2.33 | 95.95 | |
| openbravo | pg_default | public | ad_user | ad_user_partner | 5509207 | 2455 | 1.28 | 99.99 |
| openbravo | pg_default | public | c_bpartner_location | c_bplocation_location | 505 | 2445 | 1.28 | 96.37 |
| openbravo | pg_default | public | c_bpartner | c_bpartner_key | 1021354 | 2418 | 1.26 | 99.92 |
| openbravo | pg_default | public | fin_payment_schedule | fin_paym_sch_inv_idx | 541 | 2287 | 1.19 | 62.92 |
| openbravo | pg_default | public | c_invoice | c_invoice_key | 5087 | 2020 | 1.05 | 90.19 |
| openbravo | pg_default | public | fin_payment_scheduledetail | fin_pay_scheduledetail_or | 12848 | 1630 | 0.85 | 96.37 |
| openbravo | pg_default | public | c_orderlinetax | c_orderlinetax_orderline | 2447 | 1520 | 0.79 | 90.26 |
| openbravo | pg_default | public | c_orderlinetax | c_orderlinetax_key | 1496 | 0.78 | 74.22 |
| DB | Tablespace | Schema | Table | Index | Index | Table | |||
|---|---|---|---|---|---|---|---|---|---|
| Size | Growth | Ins | Upd | Del | |||||
| openbravo | pg_default | profile | last_stat_indexes | pk_last_stat_indexes | 504 kB | 368 kB | 67298 | 1631 | 67298 |
| openbravo | pg_default | profile | sample_statements | ix_sample_stmts_qid | 1056 kB | 360 kB | 893 | 1022 | |
| openbravo | pg_default | public | ad_process_run | ad_process_run_key | 752 kB | 184 kB | 287 | 287 | |
| openbravo | pg_default | profile | last_stat_tables | pk_last_stat_tables | 288 kB | 136 kB | 39238 | 4302 | 39238 |
| openbravo | pg_default | profile | sample_stat_tables | pk_sample_stat_tables | 1112 kB | 80 kB | 2253 | 2605 | |
| openbravo | pg_default | public | ad_process_run | ad_process_run_ad_prequest_id | 608 kB | 48 kB | 231 | 231 | |
| openbravo | pg_default | profile | sample_stat_indexes | pk_sample_stat_indexes | 432 kB | 32 kB | 912 | 1193 | |
| openbravo | pg_default | profile | sample_statements | pk_sample_statements_n | 504 kB | 32 kB | 649 | 837 | |
| openbravo | pg_default | public | ad_process_run | ad_process_run_status | 240 kB | 24 kB | 249 | 249 | |
| openbravo | pg_default | pg_catalog | pg_statistic(TOAST) | pg_toast_2619_index | 80 kB | 8192 bytes | 1304 | 1294 | |
| openbravo | pg_default | profile | sample_stat_user_functions | pk_sample_stat_user_functions | 264 kB | 8192 bytes | 298 | 355 | |
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 | |||||
| openbravo | pg_default | public | ad_process_run | ad_process_run_ould_be_killed | 8192 bytes | 191 | 191 | ||
| DB | Schema | Function | Executions | Time (s) | |||
|---|---|---|---|---|---|---|---|
| Total | Self | Mean | Mean self | ||||
| openbravo | public | m_get_cost | 13967383 | 2185.91 | 77.04 | 0.000 | 0.000 |
| openbravo | public | m_get_cost | 13967383 | 2108.87 | 193.00 | 0.000 | 0.000 |
| openbravo | public | m_get_no_trx_product_cost | 13967383 | 1344.66 | 68.51 | 0.000 | 0.000 |
| openbravo | public | m_get_no_trx_product_cost | 13967383 | 1276.16 | 967.02 | 0.000 | 0.000 |
| openbravo | public | m_get_product_cost | 13967383 | 366.75 | 366.75 | 0.000 | 0.000 |
| openbravo | public | ad_get_org_le_bu | 13764651 | 309.18 | 309.18 | 0.000 | 0.000 |
| openbravo | public | trunc | 16597226 | 183.18 | 183.18 | 0.000 | 0.000 |
| openbravo | public | to_date | 13972994 | 111.73 | 111.73 | 0.000 | 0.000 |
| openbravo | public | c_currency_convert_precision | 13967383 | 92.81 | 92.81 | 0.000 | 0.000 |
| openbravo | public | substract_days | 28566673 | 37.69 | 37.69 | 0.000 | 0.000 |
| openbravo | profile | take_sample | 23 | 34.06 | 0.03 | 1.481 | 0.001 |
| openbravo | profile | take_sample_subset | 23 | 34.03 | 0.09 | 1.480 | 0.004 |
| openbravo | profile | take_sample | 23 | 33.94 | 2.52 | 1.476 | 0.109 |
| openbravo | public | retstk_product_stock_json | 400 | 22.17 | 18.49 | 0.055 | 0.046 |
| openbravo | profile | dblink | 621 | 19.56 | 19.56 | 0.031 | 0.031 |
| openbravo | profile | collect_obj_stats | 23 | 14.98 | 4.25 | 0.651 | 0.185 |
| openbravo | public | retstk_product_stock_json_loc | 400 | 12.36 | 8.87 | 0.031 | 0.022 |
| openbravo | public | ad_column_identifier_std | 14264 | 8.41 | 0.47 | 0.001 | 0.000 |
| openbravo | public | ad_column_identifier | 14278 | 7.97 | 7.87 | 0.001 | 0.001 |
| openbravo | public | m_get_stock_param | 1328 | 7.07 | 6.92 | 0.005 | 0.005 |
| DB | Schema | Function | Executions | Time (s) | |||
|---|---|---|---|---|---|---|---|
| Total | Self | Mean | Mean self | ||||
| openbravo | public | substract_days | 28566673 | 37.69 | 37.69 | 0.000 | 0.000 |
| openbravo | public | trunc | 16597226 | 183.18 | 183.18 | 0.000 | 0.000 |
| openbravo | public | to_date | 13972994 | 111.73 | 111.73 | 0.000 | 0.000 |
| openbravo | public | c_currency_convert_precision | 13967383 | 92.81 | 92.81 | 0.000 | 0.000 |
| openbravo | public | m_get_cost | 13967383 | 2185.91 | 77.04 | 0.000 | 0.000 |
| openbravo | public | m_get_cost | 13967383 | 2108.87 | 193.00 | 0.000 | 0.000 |
| openbravo | public | m_get_no_trx_product_cost | 13967383 | 1344.66 | 68.51 | 0.000 | 0.000 |
| openbravo | public | m_get_no_trx_product_cost | 13967383 | 1276.16 | 967.02 | 0.000 | 0.000 |
| openbravo | public | m_get_product_cost | 13967383 | 366.75 | 366.75 | 0.000 | 0.000 |
| openbravo | public | ad_get_org_le_bu | 13764651 | 309.18 | 309.18 | 0.000 | 0.000 |
| openbravo | public | trunc | 1585132 | 5.93 | 5.93 | 0.000 | 0.000 |
| openbravo | public | to_char | 131133 | 0.41 | 0.41 | 0.000 | 0.000 |
| openbravo | public | ad_istriggerenabled | 98281 | 0.99 | 0.99 | 0.000 | 0.000 |
| openbravo | public | to_number | 46912 | 0.41 | 0.41 | 0.000 | 0.000 |
| openbravo | public | ad_isorgincluded | 19652 | 0.42 | 0.42 | 0.000 | 0.000 |
| openbravo | public | uuid_generate_v4 | 15726 | 0.10 | 0.10 | 0.000 | 0.000 |
| openbravo | public | ad_column_identifier | 14278 | 7.97 | 7.87 | 0.001 | 0.001 |
| openbravo | public | ad_column_identifier_std | 14264 | 8.41 | 0.47 | 0.001 | 0.000 |
| openbravo | public | retstk_basic_json | 11188 | 5.53 | 0.18 | 0.000 | 0.000 |
| openbravo | public | retstk_basic_json_lang | 11188 | 5.35 | 0.22 | 0.000 | 0.000 |
| DB | Schema | Function | Executions | Time (s) | |||
|---|---|---|---|---|---|---|---|
| Total | Self | Mean | Mean self | ||||
| openbravo | public | c_orderline2_trg | 4188 | 0.59 | 0.53 | 0.000 | 0.000 |
| openbravo | public | fash_orderline_check_status | 4188 | 0.40 | 0.38 | 0.000 | 0.000 |
| openbravo | public | c_ordline_chk_restrictions_trg | 4188 | 0.32 | 0.29 | 0.000 | 0.000 |
| openbravo | public | c_bpartner_trg | 311 | 0.26 | 0.25 | 0.001 | 0.001 |
| openbravo | public | aprm_fin_pmt_check_trg | 3054 | 0.25 | 0.20 | 0.000 | 0.000 |
| openbravo | public | c_orderline_trg2 | 4188 | 0.24 | 0.20 | 0.000 | 0.000 |
| openbravo | public | fash_copy_c_orderline | 4188 | 0.21 | 0.09 | 0.000 | 0.000 |
| openbravo | public | fash_update_fshordline_trg | 4188 | 0.21 | 0.18 | 0.000 | 0.000 |
| openbravo | public | aprm_fin_pmt_detail_check_trg | 1512 | 0.20 | 0.17 | 0.000 | 0.000 |
| openbravo | public | m_transaction_trg | 1316 | 0.19 | 0.14 | 0.000 | 0.000 |
| openbravo | public | c_order_chk_restrinctions_trg | 1876 | 0.19 | 0.13 | 0.000 | 0.000 |
| openbravo | public | phieco_orderline_trg | 4188 | 0.19 | 0.16 | 0.000 | 0.000 |
| openbravo | public | c_orderline_trg | 4188 | 0.18 | 0.15 | 0.000 | 0.000 |
| openbravo | public | intr_c_orderline_trg | 4188 | 0.17 | 0.14 | 0.000 | 0.000 |
| openbravo | public | aprm_fin_finacc_tran_check_trg | 1550 | 0.15 | 0.13 | 0.000 | 0.000 |
| openbravo | public | c_bpartner_location_trg | 543 | 0.14 | 0.07 | 0.000 | 0.000 |
| openbravo | public | obcfr_obpos_applications_trg | 1788 | 0.10 | 0.07 | 0.000 | 0.000 |
| openbravo | public | fash_set_qtyinitial | 4188 | 0.08 | 0.06 | 0.000 | 0.000 |
| openbravo | public | fin_financial_account_trg2 | 716 | 0.08 | 0.07 | 0.000 | 0.000 |
| openbravo | public | c_order_trg | 1328 | 0.07 | 0.04 | 0.000 | 0.000 |
| DB | Tablespace | Schema | Table | Vacuum count | Autovacuum count | Ins | Upd | Del | Upd(HOT) |
|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | c_import_entry | 77 | 7787 | 7787 | 7787 | ||
| openbravo | pg_default | profile | last_stat_tables | 35 | 39238 | 4356 | 39238 | 54 | |
| openbravo | pg_default | profile | last_stat_indexes | 35 | 67298 | 1633 | 67298 | 2 | |
| openbravo | pg_default | profile | last_stat_user_functions | 35 | 9039 | 909 | 9039 | 48 | |
| openbravo | pg_default | public | obpos_applications | 16 | 1920 | 1776 | |||
| openbravo | pg_default | pg_catalog | pg_statistic | 1 | 11067 | 9509 | |||
| openbravo | pg_default | public | ad_ep_instance_para | 1 | 68 | 68 | |||
| openbravo | pg_default | public | ad_sequence | 1 | 2286 | 2189 | |||
| openbravo | pg_default | profile | last_stat_database | 1 | 92 | 92 |
| DB | Tablespace | Schema | Table | Analyze count | Autoanalyze count | Ins | Upd | Del | Upd(HOT) |
|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | c_import_entry | 96 | 7787 | 7787 | 7787 | ||
| openbravo | pg_default | profile | last_stat_tables | 46 | 23 | 39238 | 4356 | 39238 | 54 |
| openbravo | pg_default | profile | last_stat_indexes | 46 | 23 | 67298 | 1633 | 67298 | 2 |
| openbravo | pg_default | profile | last_stat_user_functions | 46 | 23 | 9039 | 909 | 9039 | 48 |
| openbravo | pg_default | public | obpos_applications | 31 | 1920 | 1776 | |||
| openbravo | pg_default | profile | last_stat_tablespaces | 23 | 46 | 46 | |||
| openbravo | pg_default | public | ad_sequence | 19 | 2286 | 2189 | |||
| openbravo | pg_default | public | ad_process_request | 8 | 304 | 300 | |||
| openbravo | pg_default | public | fin_financial_account | 8 | 726 | 701 | |||
| openbravo | pg_default | profile | last_stat_database | 3 | 92 | 92 | |||
| openbravo | pg_default | public | ad_ep_instance_para | 2 | 68 | 68 | |||
| openbravo | pg_default | profile | sample_stat_tables | 2 | 4356 | 4558 | |||
| openbravo | pg_default | profile | sample_stat_indexes | 2 | 1404 | 1624 | |||
| openbravo | pg_default | profile | sample_statements | 2 | 1282 | 1411 | |||
| openbravo | pg_default | profile | sample_stat_user_functions | 2 | 616 | 767 | |||
| openbravo | pg_default | profile | sample_stat_tablespaces | 1 | 26 | 32 | |||
| openbravo | pg_default | profile | sample_stat_database | 1 | 56 | 60 | |||
| openbravo | pg_default | profile | sample_stat_tables_total | 1 | 120 | 136 | |||
| openbravo | pg_default | profile | sample_stat_indexes_total | 1 | 60 | 68 | |||
| openbravo | pg_default | profile | sample_statements_total | 1 | 45 | 54 |
| DB | Tablespace | Schema | Table | Index | ~Vacuum bytes | Vacuum cnt | Autovacuum cnt | IX size | Relsize |
|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | profile | last_stat_indexes | pk_last_stat_indexes | 17 MB | 35 | 486 kB | 1936 kB | |
| openbravo | pg_default | public | c_import_entry | c_import_entry_key | 13 MB | 77 | 159 kB | 1336 kB | |
| openbravo | pg_default | public | c_import_entry | c_import_entry_type_status_idx | 12 MB | 77 | 141 kB | 1336 kB | |
| openbravo | pg_default | profile | last_stat_tables | pk_last_stat_tables | 9920 kB | 35 | 281 kB | 1483 kB | |
| openbravo | pg_default | public | c_import_entry | em_obpos_application_fk | 9472 kB | 77 | 108 kB | 1336 kB | |
| openbravo | pg_default | public | c_import_entry | c_import_entry_idx | 9144 kB | 77 | 104 kB | 1336 kB | |
| openbravo | pg_default | public | c_import_entry(TOAST) | pg_toast_53108_index | 4584 kB | 58 | 71 kB | 2334 kB | |
| openbravo | pg_default | pg_catalog | pg_statistic | pg_statistic_relid_att_inh_index | 272 kB | 1 | 272 kB | 4968 kB | |
| openbravo | pg_default | public | obpos_applications | obpos_app_prefix | 256 kB | 16 | 16 kB | 158 kB | |
| openbravo | pg_default | public | obpos_applications | obpos_terminal_key_id_un | 256 kB | 16 | 16 kB | 158 kB | |
| openbravo | pg_default | public | obpos_applications | obpos_value_un | 256 kB | 16 | 16 kB | 158 kB | |
| openbravo | pg_default | public | obpos_applications | obpos_app_pk | 256 kB | 16 | 16 kB | 158 kB | |
| openbravo | pg_default | public | obpos_applications | obpos_app_tertype | 256 kB | 16 | 16 kB | 158 kB | |
| openbravo | pg_default | public | obpos_applications | obpos_applications_name | 256 kB | 16 | 16 kB | 158 kB | |
| openbravo | pg_default | pg_catalog | pg_statistic(TOAST) | pg_toast_2619_index | 240 kB | 3 | 80 kB | 3709 kB | |
| openbravo | pg_default | public | obpos_applications | obpos_applications_master_idx | 128 kB | 16 | 8192 bytes | 158 kB | |
| openbravo | pg_default | public | ad_sequence | ad_sequence_name | 104 kB | 1 | 104 kB | 240 kB | |
| openbravo | pg_default | public | ad_sequence | ad_sequence_key | 56 kB | 1 | 56 kB | 240 kB | |
| openbravo | pg_default | public | ad_ep_instance_para | ad_ep_instance_para_key | 16 kB | 1 | 16 kB | 48 kB | |
| openbravo | pg_default | profile | last_stat_database | pk_last_stat_database | 16 kB | 1 | 16 kB | 40 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 |
|---|---|---|---|---|---|---|---|
| openbravo | profile | sample_stat_tables | 31078 | 4558 | 12 | 2026-07-17 23:00:56.394842+02 | 9312 kB |
| openbravo | pg_catalog | pg_attribute | 35057 | 310 | 0 | 2026-07-19 03:13:30.46086+02 | 5184 kB |
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 |
|---|---|---|---|---|---|---|---|---|
| openbravo | profile | sample_stat_tables | 31078 | 4558 | 2245 | 6 | 2026-07-19 20:01:03.274239+02 | 9312 kB |
| openbravo | pg_catalog | pg_attribute | 35057 | 310 | 620 | 1 | 2026-07-19 03:13:30.814358+02 | 5184 kB |
| openbravo | public | m_inoutline | 1511289 | 0 | 1355 | 0 | 656 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 | 9830400 | 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 | ||
| listen_addresses | * | /etc/postgresql/10/main/postgresql.conf:59 | ||
| 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 | 2097152 | kB | /etc/postgresql/10/main/postgresql.conf:123 | |
| max_connections | 200 | /etc/postgresql/10/main/postgresql.conf:64 | ||
| max_locks_per_transaction | 128 | /etc/postgresql/10/main/conf.d/01-openbravo-standard-postgres10.conf:17 | ||
| max_stack_depth | 2048 | kB | ||
| min_wal_size | 4096 | MB | /etc/postgresql/10/main/postgresql.conf:210 | |
| pg_conf_load_time | 2026-07-19 03:00:05.329789+02 | |||
| pg_postmaster_start_time | 2026-07-19 03:00:05.874892+02 | |||
| pg_stat_statements.max | 10000 | /etc/postgresql/10/main/postgresql.conf:660 | ||
| pg_stat_statements.track | all | /etc/postgresql/10/main/postgresql.conf:661 | ||
| random_page_cost | 1.1 | /etc/postgresql/10/main/postgresql.conf:307 | ||
| server_encoding | UTF8 | |||
| shared_buffers | 3276800 | 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 | 32768 | 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 | |||
| 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_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_wal_size | 1024 | MB | /etc/postgresql/10/main/postgresql.conf:209 | |
| 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 | 7083440090454890352 | |||
| 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 | |||