pg_profile version 0.3.6
Server name: local
Report interval: 2026-07-17 04:00:02+02 - 2026-07-18 03:00:01+02
Warning!Report includes 23 sample(s) with setting pg_stat_statements.track = all.Value of %Total columns may be incorrect.
| Database | Transactions | Block statistics | Tuples | Temp files | Size | Growth | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Commits | Rollbacks | Deadlocks | Hit(%) | Read | Hit | Ret | Fet | Ins | Upd | Del | Size | Files | |||
| openbravo | 126551 | 1638 | 100.00 | 59496 | 3298438520 | 1838006912 | 1364749551 | 263762 | 73899 | 154017 | 24 GB | 17217907 | 20 GB | 139 MB | |
| postgres | 11705 | 100.00 | 658385 | 1901667 | 348048 | 6367 kB | |||||||||
| Total | 138256 | 1638 | 100.00 | 59496 | 3299096905 | 1839908579 | 1365097599 | 263762 | 73899 | 154017 | 24 GB | 17217907 | 20 GB | 139 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 | 58103759 | 17774.64 | 19.52 | 3468814947 | 520027 | 37061383 | 19846714 | 20638 | ||||||
| postgres | 5612 | 11.41 | 86779 | 345 | ||||||||||
| template1 | 6348 | 6.13 | 7176 | 276 | ||||||||||
| Total | 58115719 | 17792.19 | 19.52 | 3468908902 | 520027 | 37061383 | 19846714 | 21259 | ||||||
| Metric | Value |
|---|---|
| Scheduled checkpoints | 276 |
| Requested checkpoints | |
| Checkpoint write time (s) | 32132.58 |
| Checkpoint sync time (s) | 6.81 |
| Checkpoints buffers written | 410325 |
| Background buffers written | |
| Backend buffers written | 19557 |
| Backend fsync count | |
| Bgwriter interrupts (too many buffers) | |
| Number of buffers allocated | 59496 |
| WAL generated | 2664 MB |
| WAL segments archived | |
| WAL segments archive failed |
| Tablespace | Path | Size | Growth |
|---|---|---|---|
| pg_default | 21 GB | 139 MB | |
| pg_global | 766 kB |
| Query ID | Database | Exec (s) | %Total | Rows | Execution times (ms) | Executions | |||
|---|---|---|---|---|---|---|---|---|---|
| Mean | Min | Max | StdErr | ||||||
[7d43ad7e] | openbravo | 8827.20 | 49.61 | 13295959 | 1103400.432 | 1094809.806 | 1113962.358 | 5952.954 | 8 |
[26c6f357] | openbravo | 5577.92 | 31.35 | 634623 | 697239.769 | 683423.995 | 711387.385 | 7954.610 | 8 |
[a0643fcb] | openbravo | 463.34 | 2.60 | 7846468 | 57917.018 | 56654.538 | 60358.358 | 1254.768 | 8 |
[4c390f69] | openbravo | 250.68 | 1.41 | 5110966 | 31334.838 | 20970.622 | 40243.831 | 6664.882 | 8 |
[42430e3c] | openbravo | 219.59 | 1.23 | 5721885 | 27448.250 | 20622.606 | 34025.192 | 4545.470 | 8 |
[2870663b] | openbravo | 179.96 | 1.01 | 13930582 | 0.013 | 0.006 | 9.240 | 0.006 | 13930582 |
[4f5926de] | openbravo | 167.42 | 0.94 | 2716783 | 20927.128 | 14614.553 | 29969.682 | 4698.876 | 8 |
[3933d71e] | openbravo | 143.18 | 0.80 | 258 | 2603.328 | 14.832 | 22493.708 | 6841.876 | 55 |
[85673f33] | openbravo | 136.15 | 0.77 | 216 | 630.318 | 6.092 | 6003.672 | 1332.583 | 216 |
[b0ebb687] | openbravo | 125.29 | 0.70 | 3040760 | 15661.328 | 13457.798 | 17148.657 | 1172.486 | 8 |
[806faf8c] | openbravo | 77.50 | 0.44 | 592350 | 77495.638 | 77495.638 | 77495.638 | 1 | |
[eb509fc7] | openbravo | 75.37 | 0.42 | 2716735 | 9421.619 | 9066.896 | 10571.908 | 469.576 | 8 |
[738f9776] | openbravo | 74.94 | 0.42 | 587104 | 74938.795 | 74938.795 | 74938.795 | 1 | |
[9c0a6d60] | openbravo | 68.54 | 0.39 | 521 | 1958.384 | 1914.272 | 2160.986 | 47.579 | 35 |
[ce4e88c2] | openbravo | 60.57 | 0.34 | 13727988 | 0.004 | 0.003 | 5.562 | 0.003 | 13727988 |
[5b59cf42] | openbravo | 60.13 | 0.34 | 13930582 | 0.004 | 0.003 | 8.228 | 0.003 | 13930582 |
[1e425839] | openbravo | 58.35 | 0.33 | 22727 | 2083.993 | 2056.499 | 2262.237 | 36.490 | 28 |
[be51200d] | openbravo | 49.94 | 0.28 | 2067 | 466.704 | 434.047 | 548.461 | 17.332 | 107 |
[61e8ee09] | openbravo | 46.21 | 0.26 | 100 | 11552.785 | 11456.158 | 11651.753 | 73.781 | 4 |
[ab242de4] | openbravo | 45.26 | 0.25 | 142199 | 45257.224 | 45257.224 | 45257.224 | 1 | |
| Query ID | Database | Executions | %Total | Rows | Mean(ms) | Min(ms) | Max(ms) | StdErr(ms) | Elapsed(s) |
|---|---|---|---|---|---|---|---|---|---|
[2870663b] | openbravo | 13930582 | 23.97 | 13930582 | 0.013 | 0.006 | 9.240 | 0.006 | 180.0 |
[5b59cf42] | openbravo | 13930582 | 23.97 | 13930582 | 0.004 | 0.003 | 8.228 | 0.003 | 60.1 |
[196c6f74] | openbravo | 13930582 | 23.97 | 13930582 | 0.003 | 0.002 | 1.840 | 0.001 | 39.6 |
[ce4e88c2] | openbravo | 13727988 | 23.62 | 13727988 | 0.004 | 0.003 | 5.562 | 0.003 | 60.6 |
[cf182c3a] | openbravo | 380320 | 0.65 | 10592 | 0.028 | 0.007 | 8.506 | 0.057 | 10.6 |
[b19ed954] | openbravo | 128517 | 0.22 | 128517 | 0.009 | 0.003 | 3.651 | 0.016 | 1.1 |
[8e21a910] | openbravo | 124168 | 0.21 | 124168 | 0.007 | 0.002 | 1.219 | 0.009 | 0.9 |
[3cb4d968] | openbravo | 122545 | 0.21 | 122545 | 0.003 | 0.002 | 8.026 | 0.024 | 0.4 |
[2e63909b] | openbravo | 99954 | 0.17 | 34021 | 0.005 | 0.003 | 0.756 | 0.004 | 0.5 |
[6f9b1a85] | openbravo | 94211 | 0.16 | 0.002 | 0.000 | 0.325 | 0.002 | 0.1 | |
[2049516b] | openbravo | 92592 | 0.16 | 0.001 | 0.000 | 0.234 | 0.001 | 0.1 | |
[3051ec96] | openbravo | 56523 | 0.10 | 56523 | 0.245 | 0.105 | 152.744 | 1.952 | 13.9 |
[6b7612aa] | openbravo | 41689 | 0.07 | 41689 | 0.003 | 0.002 | 0.058 | 0.001 | 0.1 |
[afe3cf8b] | openbravo | 39735 | 0.07 | 39735 | 0.024 | 0.011 | 1.451 | 0.025 | 1.0 |
[5c26872c] | openbravo | 23503 | 0.04 | 23503 | 0.015 | 0.007 | 0.855 | 0.012 | 0.4 |
[9e09aee4] | openbravo | 18098 | 0.03 | 18098 | 0.049 | 0.012 | 3.425 | 0.037 | 0.9 |
[c78d8d00] | openbravo | 17768 | 0.03 | 17768 | 0.407 | 0.033 | 16.611 | 0.235 | 7.2 |
[8a770ed5] | openbravo | 17286 | 0.03 | 17286 | 0.084 | 0.016 | 5.915 | 0.118 | 1.4 |
[231ef314] | openbravo | 16613 | 0.03 | 16613 | 0.731 | 0.157 | 17.216 | 0.413 | 12.1 |
[c28fb106] | openbravo | 16613 | 0.03 | 16613 | 0.004 | 0.002 | 0.482 | 0.005 | 0.1 |
| Query ID | Database | blks fetched | %Total | Hits(%) | Elapsed(s) | Rows | Executions |
|---|---|---|---|---|---|---|---|
[26c6f357] | openbravo | 2545438050 | 73.38 | 100.00 | 5577.9 | 634623 | 8 |
[a0643fcb] | openbravo | 189142248 | 5.45 | 100.00 | 463.3 | 7846468 | 8 |
[7d43ad7e] | openbravo | 122899236 | 3.54 | 100.00 | 8827.2 | 13295959 | 8 |
[42430e3c] | openbravo | 76032358 | 2.19 | 100.00 | 219.6 | 5721885 | 8 |
[3933d71e] | openbravo | 58944616 | 1.70 | 100.00 | 143.2 | 258 | 55 |
[85673f33] | openbravo | 58630970 | 1.69 | 100.00 | 136.1 | 216 | 216 |
[4f5926de] | openbravo | 49151663 | 1.42 | 100.00 | 167.4 | 2716783 | 8 |
[b0ebb687] | openbravo | 48064180 | 1.39 | 100.00 | 125.3 | 3040760 | 8 |
[2870663b] | openbravo | 41791746 | 1.20 | 100.00 | 180.0 | 13930582 | 13930582 |
[ce4e88c2] | openbravo | 27455976 | 0.79 | 100.00 | 60.6 | 13727988 | 13727988 |
[eb509fc7] | openbravo | 27378741 | 0.79 | 100.00 | 75.4 | 2716735 | 8 |
[9c0a6d60] | openbravo | 24756946 | 0.71 | 100.00 | 68.5 | 521 | 35 |
[4c390f69] | openbravo | 21895151 | 0.63 | 100.00 | 250.7 | 5110966 | 8 |
[be089ba] | openbravo | 16476892 | 0.47 | 100.00 | 34.1 | 6 | |
[196c6f74] | openbravo | 13930582 | 0.40 | 100.00 | 39.6 | 13930582 | 13930582 |
[5b59cf42] | openbravo | 13930582 | 0.40 | 100.00 | 60.1 | 13930582 | 13930582 |
[68af0d51] | openbravo | 11156267 | 0.32 | 100.00 | 20.5 | 6 | |
[acae3908] | openbravo | 10881460 | 0.31 | 100.00 | 40.7 | 171 | 171 |
[4fe628d8] | openbravo | 6924090 | 0.20 | 100.00 | 12.6 | 5 | |
[cf182c3a] | openbravo | 6774111 | 0.20 | 100.00 | 10.6 | 10592 | 380320 |
| Query ID | Database | Reads | %Total | Hits(%) | Elapsed(s) | Rows | Executions |
|---|---|---|---|---|---|---|---|
[3051ec96] | openbravo | 7714 | 10.84 | 99.49 | 13.9 | 56523 | 56523 |
[b76c5e2] | openbravo | 3224 | 4.53 | 95.87 | 1.8 | 1887 | 1887 |
[4ae26da8] | openbravo | 2868 | 4.03 | 99.38 | 5.1 | 8 | 8 |
[67d29389] | openbravo | 2868 | 4.03 | 99.38 | 5.1 | 8 | 8 |
[a852adf9] | openbravo | 2766 | 3.89 | 96.85 | 1.1 | 1786 | 36 |
[e2543c48] | openbravo | 2507 | 3.52 | 98.93 | 2.9 | 1664 | 1664 |
[38c3f6e1] | openbravo | 2356 | 3.31 | 98.77 | 1.6 | 1786 | 36 |
[b34f1d1f] | openbravo | 2322 | 3.26 | 94.44 | 2.0 | 1046 | 1046 |
[3afdf1db] | openbravo | 2060 | 2.89 | 98.20 | 1.1 | 2817 | 2817 |
[f7c054b4] | openbravo | 2060 | 2.89 | 94.98 | 1.4 | 1060 | 1060 |
[32f116de] | openbravo | 1791 | 2.52 | 99.74 | 1.5 | 15 | 2 |
[ee4ba68d] | openbravo | 1737 | 2.44 | 97.05 | 0.8 | 1194 | 1194 |
[97aab45d] | openbravo | 1705 | 2.40 | 95.35 | 1.3 | 1022 | 1022 |
[e81c3c12] | openbravo | 1549 | 2.18 | 94.85 | 0.9 | 1027 | 1027 |
[ca50d0e4] | openbravo | 1274 | 1.79 | 98.42 | 1.0 | 1100 | 1100 |
[84a8bcfc] | openbravo | 1260 | 1.77 | 98.80 | 1.2 | 878 | 878 |
[d37bd6d7] | openbravo | 1183 | 1.66 | 97.54 | 0.7 | 865 | 865 |
[a1b7c5f] | openbravo | 1026 | 1.44 | 99.17 | 1.9 | 1391 | 1391 |
[5d2e4e6c] | openbravo | 969 | 1.36 | 99.07 | 1.3 | 1252 | 1252 |
[978c2f22] | openbravo | 951 | 1.34 | 99.52 | 3.8 | 6987 | 6987 |
| Query ID | Database | Dirtied | %Total | Hits(%) | Elapsed(s) | Rows | Executions |
|---|---|---|---|---|---|---|---|
[3051ec96] | openbravo | 127304 | 24.48 | 99.49 | 13.9 | 56523 | 56523 |
[40fd3671] | openbravo | 18914 | 3.64 | 100.00 | 39.2 | 23 | |
[92975a8e] | openbravo | 18914 | 3.64 | 100.00 | 39.2 | 23 | 23 |
[4ae26da8] | openbravo | 13790 | 2.65 | 99.38 | 5.1 | 8 | 8 |
[67d29389] | openbravo | 13790 | 2.65 | 99.38 | 5.1 | 8 | 8 |
[fed47e50] | openbravo | 10052 | 1.93 | 99.97 | 9.4 | 1641 | 1641 |
[38c3f6e1] | openbravo | 9815 | 1.89 | 98.77 | 1.6 | 1786 | 36 |
[e2543c48] | openbravo | 9728 | 1.87 | 98.93 | 2.9 | 1664 | 1664 |
[b1de800e] | openbravo | 8708 | 1.67 | 99.76 | 1.0 | 5080 | 5080 |
[edb3cd2d] | openbravo | 8206 | 1.58 | 99.85 | 0.7 | 1777 | 35 |
[ddcc675a] | openbravo | 7976 | 1.53 | 99.39 | 1.5 | 514 | 514 |
[978c2f22] | openbravo | 7361 | 1.42 | 99.52 | 3.8 | 6987 | 6987 |
[fcea205c] | openbravo | 7201 | 1.38 | 98.88 | 0.7 | 1502 | 1502 |
[84a8bcfc] | openbravo | 6038 | 1.16 | 98.80 | 1.2 | 878 | 878 |
[a1b7c5f] | openbravo | 5790 | 1.11 | 99.17 | 1.9 | 1391 | 1391 |
[ce600362] | openbravo | 5682 | 1.09 | 99.33 | 1.5 | 1101 | 1101 |
[ca50d0e4] | openbravo | 5595 | 1.08 | 98.42 | 1.0 | 1100 | 1100 |
[b34f1d1f] | openbravo | 5578 | 1.07 | 94.44 | 2.0 | 1046 | 1046 |
[97aab45d] | openbravo | 5345 | 1.03 | 95.35 | 1.3 | 1022 | 1022 |
[b76c5e2] | openbravo | 5307 | 1.02 | 95.87 | 1.8 | 1887 | 1887 |
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 | 17834103 | 89.86 | 35047989 | 94.57 | 8827.2 | 13295959 | 8 | ||||||
[42430e3c] | openbravo | 1135780 | 5.72 | 1136404 | 3.07 | 219.6 | 5721885 | 8 | ||||||
[be51200d] | openbravo | 309669 | 1.56 | 309562 | 0.84 | 49.9 | 2067 | 107 | ||||||
[1e425839] | openbravo | 258904 | 1.30 | 259072 | 0.70 | 58.4 | 22727 | 28 | ||||||
[4c390f69] | openbravo | 157163 | 0.79 | 157259 | 0.42 | 250.7 | 5110966 | 8 | ||||||
[61e8ee09] | openbravo | 141355 | 0.71 | 141351 | 0.38 | 46.2 | 100 | 4 | ||||||
[25bcd965] | openbravo | 9740 | 0.05 | 9746 | 0.03 | 4.2 | 851 | 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) |
| 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 |
| 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 ) |
| f35b64cb44 | select aduser0_.AD_User_ID as ad_user_1_128_, aduser0_.AD_Client_ID as ad_clien2_128_, aduser0_.AD_Org_ID as ad_org_i3_128_, aduser0_.IsActive as isactive4_128_, aduser0_.Created as created5_128_, aduser0_.CreatedBy as createdb6_128_, aduser0_.Updated as updated7_128_, aduser0_.UpdatedBy as updatedb8_128_, aduser0_.Name as name9_128_, aduser0_.Description as descrip10_128_, aduser0_.Password as passwor11_128_, aduser0_.Email as email12_128_, aduser0_.Supervisor_ID as supervi13_128_, aduser0_.C_BPartner_ID as c_bpart14_128_, aduser0_.Processing as process15_128_, aduser0_.EmailUser as emailus16_128_, aduser0_.EmailUserPW as emailus17_128_, aduser0_.C_BPartner_Location_ID as c_bpart18_128_, aduser0_.C_Greeting_ID as c_greet19_128_, aduser0_.Title as title20_128_, aduser0_.Comments as comment21_128_, aduser0_.Phone as phone22_128_, aduser0_.Phone2 as phone23_128_, aduser0_.Fax as fax24_128_, aduser0_.LastContact as lastcon25_128_, aduser0_.LastResult as lastres26_128_, aduser0_.Birthday as birthda27_128_, aduser0_.AD_OrgTrx_ID as ad_orgt28_128_, aduser0_.Firstname as firstna29_128_, aduser0_.Lastname as lastnam30_128_, aduser0_.UserName as usernam31_128_, aduser0_.Default_Ad_Client_ID as default32_128_, aduser0_.Default_Ad_Language as default33_128_, aduser0_.Default_Ad_Org_ID as default34_128_, aduser0_.Default_Ad_Role_ID as default35_128_, aduser0_.Default_M_Warehouse_ID as default36_128_, aduser0_.IsLocked as islocke37_128_, aduser0_.AD_Image_ID as ad_imag38_128_, aduser0_.Grant_Portal_Access as grant_p39_128_, aduser0_.LastPasswordUpdate as lastpas40_128_, aduser0_.Isexpiredpassword as isexpir41_128_, aduser0_.Commercialauth as commerc42_128_, aduser0_.EM_OBPOS_Default_Pos_Role as em_obpo43_128_, aduser0_.Viasms as viasms44_128_, aduser0_.Viaemail as viaemai45_128_, aduser0_.Update_Password as update_46_128_, aduser0_.EM_Izir_Updated_Optin as em_izir47_128_, aduser0_.Issalesrep as issales48_128_, aduser0_.EM_Izir_Updated_Optout as em_izir49_128_, aduser0_.EM_Pruti_Isbillingcontact as em_prut50_128_, aduser0_.EM_Pruti_Isordercontact as em_prut51_128_, aduser0_.EM_Pruti_Ispurchaseordcontact as em_prut52_128_, aduser0_.EM_OBRETCO_Default_Pos_Contact as em_obre53_128_ from AD_User aduser0_ where (upper(aduser0_.Email) like upper($1) escape $62) and (aduser0_.C_BPartner_ID is null or exists (select businesspa1_.C_BPartner_ID from C_BPartner businesspa1_ where businesspa1_.C_BPartner_ID=aduser0_.C_BPartner_ID and (businesspa1_.IsEmployee=$63 or businesspa1_.SalesRep_ID=$64))) and (aduser0_.AD_Org_ID in ($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)) and (aduser0_.AD_Client_ID in ($59 , $60)) order by aduser0_.Name, aduser0_.AD_User_ID limit $61 |
| 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 |
| a3d3811d66 | SELECT retstk_product_stock_json($1, $2, f.m_product_id) as stk FROM ( SELECT distinct coalesce(generic_product_id, m_product_id) as m_product_id FROM m_product WHERE EXISTS (SELECT $3 FROM obretco_prol_product WHERE obretco_productlist_id = $4 AND obretco_prol_product.m_product_id = m_product.m_product_id) AND isactive = $5 AND isstocked = $6 AND producttype = $7 AND (sku ilike $8 OR name ilike $9 OR value ilike $10 OR description ilike $11) ) as f |
| 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 ) "_" |
| f3f57fdf42 | SELECT * FROM M_InOut_Post0($1) |
| 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) |
| fb45d4a61f | select orderline0_.M_Product_ID as col_0_0_, product1_.Name as col_1_0_, sum(orderline0_.QtyOrdered) as col_2_0_, uom3_.Name as col_3_0_, product1_.C_UOM_ID as col_4_0_ from C_OrderLine orderline0_ cross join M_Product product1_ cross join C_UOM uom3_ cross join C_Order order5_ cross join M_Product product7_ where orderline0_.M_Product_ID=product1_.M_Product_ID and product1_.C_UOM_ID=uom3_.C_UOM_ID and orderline0_.C_Order_ID=order5_.C_Order_ID and orderline0_.M_Product_ID=product7_.M_Product_ID and order5_.DocStatus=$61 and order5_.IsSOTrx=$62 and $63=$64 and orderline0_.AD_Client_ID=$1 and (product7_.Name like $2) and (orderline0_.AD_Org_ID in ($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)) group by product1_.Name , uom3_.Name , orderline0_.M_Product_ID , product1_.C_UOM_ID order by sum(orderline0_.QtyOrdered) desc limit $60 |
| a874297fd2 | SELECT M_INOUT_POST(PInstance_ID, $2) |
| 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 |
| 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) |
| 9149f0fdfa | SELECT row_to_json(f) FROM ( SELECT prod.m_product_id as id, ad_column_identifier_std($7, prod.m_product_id) as identifier, CASE WHEN prod.isgeneric = $8 THEN $9 ELSE $10 END as "isGeneric", concat(prod.value, $11, prod.name) as name, $12 as show, cast(retstk_basic_json($13, prod.m_brand_id) as json) as brand, cast(retstk_basic_json($14, prod.m_product_category_id) as json) as "productCategory", (CASE WHEN prod.isgeneric = $15 AND (SELECT count($16) FROM m_product_ch pch LEFT JOIN m_characteristic ch ON ch.m_characteristic_id = pch.m_characteristic_id WHERE pch.m_product_id = p_product_id AND ch.em_retstk_horizontal_axis = $17 AND EXISTS (SELECT $18 FROM m_product bprod WHERE bprod.generic_product_id = prod.m_product_id) ) > $19 THEN ( SELECT array_to_json(array_agg(row_to_json(d))) FROM ( SELECT chv.m_ch_value_id as id, chv.name as identifier, chv.skcode as label_skcode, chv.name as label_name, cast(retstk_basic_json($20, chv.m_characteristic_id) as json) as characteristic FROM m_product_ch_value pchv LEFT JOIN m_ch_value chv ON chv.m_ch_value_id = pchv.m_ch_value_id LEFT JOIN m_characteristic ch ON ch.m_characteristic_id = chv.m_characteristic_id WHERE pchv.m_product_id IN (SELECT m_product_id FROM m_product WHERE generic_product_id = p_product_id) AND ch.em_retstk_horizontal_axis = $21 GROUP BY chv.m_ch_value_id ORDER BY coalesce(chv.em_retstk_seqno, $22) asc, chv.name asc ) d ) ELSE ( SELECT array_to_json(array_agg(row_to_json(d))) FROM (SELECT $23 as id, $24 as label_skcode, $25 as label_name FROM dual) d ) END) as "horizontalValues", (CASE WHEN prod.isgeneric = $26 AND (SELECT count($27) FROM m_product_ch pch LEFT JOIN m_characteristic ch ON ch.m_characteristic_id = pch.m_characteristic_id WHERE pch.m_product_id = prod.m_product_id AND ch.em_retstk_horizontal_axis != $28 AND CASE WHEN v_hideVariantCh = $29 THEN pch.isvariant = $30 ELSE $31=$32 END) > $33 THEN ( SELECT array_to_json(array_agg(row_to_json(vv))) FROM ( SELECT v.id as id, p_product_id as "genericId", v.description as description, (SELECT array_to_json(array_agg(row_to_json(d))) FROM ( SELECT m_ch_value_id as id, name as identifier, skcode as label_skcode, name as label_name, cast(retstk_basic_json($34, m_characteristic_id) as json) as characteristic FROM m_ch_value WHERE m_ch_value_id = ANY (string_to_array(variantcombinations,$35)) ORDER BY m_ch_value_id ) d) as values, (SELECT array_to_json(array_agg(row_to_json(s))) FROM ( SELECT ( SELECT row_to_json(f) FROM (SELECT m_warehouse.m_warehouse_id as id, m_warehouse.name as identifier, coalesce(m_warehouse.em_retstk_htmlcolor, $36) as "htmlColor", $37 as "show" FROM m_warehouse WHERE m_warehouse.m_warehouse_id = stk.m_warehouse_id ) as f) as warehouse, stk.stock FROM ( SELECT r.m_warehouse_id, array_to_json(array_agg(row_to_json(r))) as stock FROM ( SELECT wh.m_warehouse_id, CASE WHEN (SELECT count($38) FROM m_product_ch pch LEFT JOIN m_characteristic ch ON ch.m_characteristic_id = pch.m_characteristic_id WHERE pch.m_product_id = p_product_id AND ch.em_retstk_horizontal_axis = $39 ) > $40 THEN pchv.m_ch_value_id ELSE $41 END as size, sum(qtyonhand) as qtyonhand, sum(preqtyonhand) as preqtyonhand, coalesce((SELECT sum(ol.qtyordered - ol.qtydelivered) FROM c_orderline ol LEFT JOIN c_order o ON o.c_order_id = ol.c_order_id WHERE o.issotrx = $42 AND o.docstatus = $43 AND o.m_warehouse_id = wh.m_warehouse_id AND ol.m_product_id = p_product_id),$44)+ sum((case when mi.available = $45 then qtyonhand else $46 end)) as qtypending FROM m_storage_detail sd LEFT JOIN m_locator bin ON bin.m_locator_id = sd.m_locator_id LEFT JOIN m_inventorystatus mi ON mi.m_inventorystatus_id=bin.m_inventorystatus_id LEFT JOIN m_warehouse wh ON wh.m_warehouse_id = bin.m_warehouse_id LEFT JOIN m_product p ON p.m_product_id = sd.m_product_id LEFT JOIN m_product_ch_value pchv ON p.m_product_id = pchv.m_product_id LEFT JOIN m_characteristic ch ON ch.m_characteristic_id = pchv.m_characteristic_id WHERE wh.em_retstk_breakbylocator=$47 AND EXISTS (SELECT $48 FROM m_product WHERE m_product_id = sd.m_product_id AND generic_product_id = p_product_id) AND (SELECT count($49) FROM m_product_ch_value WHERE m_product_id = sd.m_product_id AND m_ch_value_id = ANY (string_to_array(variantcombinations,$50))) = array_length(string_to_array(variantcombinations,$51), $52) AND CASE WHEN (SELECT count($53) FROM m_product_ch pch LEFT JOIN m_characteristic ch ON ch.m_characteristic_id = pch.m_characteristic_id WHERE pch.m_product_id = p_product_id AND ch.em_retstk_horizontal_axis = $54 ) > $55 THEN ch.em_retstk_horizontal_axis = $56 ELSE $57 = $58 END AND wh.m_warehouse_id IN ( SELECT wh.m_warehouse_id FROM m_warehouse wh WHERE CASE WHEN coalesce((SELECT em_retstk_org_filters FROM ad_org WHERE ad_org_id = p_org_id), $59) = $60 THEN EXISTS (SELECT $61 FROM retstk_org_warehouse WHERE m_warehouse_id = wh.m_warehouse_id AND ad_org_id = p_org_id) ELSE NOT EXISTS (SELECT $62 FROM retstk_org_warehouse WHERE m_warehouse_id = wh.m_warehouse_id AND ad_org_id = p_org_id) AND ad_client_id = p_client_id END ) GROUP BY wh.m_warehouse_id, pchv.m_ch_value_id) as r GROUP BY r.m_warehouse_id ) as stk ) as s) as stock, ( SELECT array_to_json(array_agg(row_to_json(var))) FROM ( SELECT p.m_product_id as productid, $63 as productimg FROM m_product p WHERE p.generic_product_id = p_product_id ) as var ) as variantsproducts FROM ( SELECT replace(variantcombinations,$64,$65) as id, variantcombinations, (SELECT string_agg(m_ch_value.name, $66 ORDER BY m_characteristic.name ASC) FROM m_ch_value JOIN m_characteristic ON m_characteristic.m_characteristic_id=m_ch_value.m_characteristic_id WHERE m_ch_value_id = ANY (string_to_array(variantcombinations,$67))) as description FROM (SELECT p.m_product_id, string_agg(chval.m_ch_value_id, $68 ORDER BY chval.m_ch_value_id) AS variantcombinations FROM m_product_ch_value chval LEFT JOIN m_product p ON chval.m_product_id = p.m_product_id LEFT JOIN m_product_ch pch ON chval.m_product_id = pch.m_product_id AND pch.m_characteristic_id = chval.m_characteristic_id WHERE p.generic_product_id = p_product_id AND p.isactive = $69 AND chval.m_characteristic_id NOT IN (SELECT m_characteristic_id FROM m_characteristic WHERE em_retstk_horizontal_axis = $70) AND CASE WHEN v_hideVariantCh = $71 THEN pch.isvariant = $72 ELSE $73=$74 END GROUP BY p.m_product_id ) AS principal GROUP BY variantcombinations ) as v ) As vv ) WHEN prod.isgeneric = $75 THEN (SELECT array_to_json(array_agg(row_to_json(vv))) FROM ( SELECT v.id as id, p_product_id as "genericId", v.description as description, (SELECT array_to_json(array_agg(row_to_json(d))) FROM ( SELECT m_ch_value_id as id, name as identifier, skcode as label_skcode, name as label_name, cast(retstk_basic_json($76, m_characteristic_id) as json) as characteristic FROM m_ch_value WHERE m_ch_value_id = ANY (string_to_array(variantcombinations,$77)) ORDER BY m_ch_value_id ) d) as values, (SELECT array_to_json(array_agg(row_to_json(s))) FROM ( SELECT ( SELECT row_to_json(f) FROM (SELECT m_warehouse.m_warehouse_id as id, m_warehouse.name as identifier, coalesce(m_warehouse.em_retstk_htmlcolor, $78) as "htmlColor", $79 as "show" FROM m_warehouse WHERE m_warehouse.m_warehouse_id = stk.m_warehouse_id ) as f) as warehouse, stk.stock FROM ( SELECT r.m_warehouse_id, array_to_json(array_agg(row_to_json(r))) as stock FROM ( SELECT wh.m_warehouse_id, CASE WHEN (SELECT count($80) FROM m_product_ch pch LEFT JOIN m_characteristic ch ON ch.m_characteristic_id = pch.m_characteristic_id WHERE pch.m_product_id = p_product_id AND ch.em_retstk_horizontal_axis = $81 ) > $82 THEN pchv.m_ch_value_id ELSE $83 END as size, sum(qtyonhand) as qtyonhand, sum(preqtyonhand) as preqtyonhand, greatest(coalesce((SELECT sum(ol.qtyordered - ol.qtydelivered) FROM c_orderline ol LEFT JOIN c_order o ON o.c_order_id = ol.c_order_id WHERE o.issotrx = $84 AND o.docstatus = $85 AND o.m_warehouse_id = wh.m_warehouse_id AND ol.m_product_id = ANY (string_to_array(string_agg(sd.m_product_id, $86), $87))),$88),$89)+ sum((case when mi.available = $90 then qtyonhand else $91 end)) as qtypending FROM m_storage_detail sd LEFT JOIN m_locator bin ON bin.m_locator_id = sd.m_locator_id LEFT JOIN m_inventorystatus mi ON mi.m_inventorystatus_id=bin.m_inventorystatus_id LEFT JOIN m_warehouse wh ON wh.m_warehouse_id = bin.m_warehouse_id LEFT JOIN m_product p ON p.m_product_id = sd.m_product_id LEFT JOIN m_product_ch_value pchv ON p.m_product_id = pchv.m_product_id LEFT JOIN m_characteristic ch ON ch.m_characteristic_id = pchv.m_characteristic_id WHERE wh.em_retstk_breakbylocator=$92 AND EXISTS (SELECT $93 FROM m_product WHERE m_product_id = sd.m_product_id AND generic_product_id = p_product_id) --AND (SELECT count(1) FROM m_product_ch_value WHERE m_product_id = sd.m_product_id AND m_ch_value_id = ANY (string_to_array(variantcombinations,'/'))) = array_length(string_to_array(variantcombinations,'/'), 1) AND CASE WHEN (SELECT count($94) FROM m_product_ch pch LEFT JOIN m_characteristic ch ON ch.m_characteristic_id = pch.m_characteristic_id WHERE pch.m_product_id = p_product_id AND ch.em_retstk_horizontal_axis = $95 ) > $96 THEN ch.em_retstk_horizontal_axis = $97 ELSE $98 = $99 END AND wh.m_warehouse_id IN ( SELECT wh.m_warehouse_id FROM m_warehouse wh WHERE CASE WHEN coalesce((SELECT em_retstk_org_filters FROM ad_org WHERE ad_org_id = p_org_id), $100) = $101 THEN EXISTS (SELECT $102 FROM retstk_org_warehouse WHERE m_warehouse_id = wh.m_warehouse_id AND ad_org_id = p_org_id) ELSE NOT EXISTS (SELECT $103 FROM retstk_org_warehouse WHERE m_warehouse_id = wh.m_warehouse_id AND ad_org_id = p_org_id) AND ad_client_id = p_client_id END ) GROUP BY wh.m_warehouse_id, pchv.m_ch_value_id) as r GROUP BY r.m_warehouse_id ) as stk ) as s) as stock, ( SELECT array_to_json(array_agg(row_to_json(var))) FROM ( SELECT p.m_product_id as productid, $104 as productimg FROM m_product p WHERE p.generic_product_id = p_product_id ) as var ) as variantsproducts FROM ( SELECT replace(variantcombinations,$105,$106) as id, variantcombinations, $107 as description FROM (SELECT p.generic_product_id, string_agg(chval.m_ch_value_id, $108 ORDER BY chval.m_ch_value_id) AS variantcombinations FROM m_product_ch_value chval LEFT JOIN m_product p ON chval.m_product_id = p.m_product_id LEFT JOIN m_product_ch pch ON chval.m_product_id = pch.m_product_id AND pch.m_characteristic_id = chval.m_characteristic_id WHERE p.generic_product_id = p_product_id AND p.isactive = $109 AND CASE WHEN v_hideVariantCh = $110 THEN pch.isvariant = $111 ELSE $112=$113 END --AND chval.m_characteristic_id NOT IN (SELECT m_characteristic_id FROM m_characteristic WHERE em_retstk_horizontal_axis = 'Y') GROUP BY p.generic_product_id ) AS principal GROUP BY variantcombinations ) as v ) As vv) ELSE (SELECT array_to_json(array_agg(row_to_json(s))) FROM ( SELECT ( SELECT row_to_json(f) FROM (SELECT m_warehouse.m_warehouse_id as id, m_warehouse.name as identifier, coalesce(m_warehouse.em_retstk_htmlcolor, $114) as "htmlColor", $115 as "show" FROM m_warehouse WHERE m_warehouse.m_warehouse_id = stk.m_warehouse_id ) as f) as warehouse, stk.stock FROM ( SELECT r.m_warehouse_id, array_to_json(array_agg(row_to_json(r))) as stock FROM ( SELECT wh.m_warehouse_id, $116 as "isStandardProduct", ( SELECT row_to_json(var) FROM ( SELECT p.m_product_id as productid, $117 as productimg FROM m_product p WHERE p.m_product_id = p_product_id ) as var ) as product, ( SELECT row_to_json(f) FROM (SELECT m_warehouse.m_warehouse_id as id, m_warehouse.name as identifier, coalesce(m_warehouse.em_retstk_htmlcolor, $118) as "htmlColor", $119 as "show" FROM m_warehouse WHERE m_warehouse.m_warehouse_id = wh.m_warehouse_id ) as f) as warehouse, sum(qtyonhand) as qtyonhand, sum(preqtyonhand) as preqtyonhand, coalesce((SELECT sum(ol.qtyordered - ol.qtydelivered) FROM c_orderline ol LEFT JOIN c_order o ON o.c_order_id = ol.c_order_id WHERE o.issotrx = $120 AND o.docstatus = $121 AND o.m_warehouse_id = wh.m_warehouse_id AND ol.m_product_id = p_product_id),$122)+ sum((case when mi.available = $123 then qtyonhand else $124 end)) as qtypending FROM m_storage_detail sd LEFT JOIN m_locator bin ON bin.m_locator_id = sd.m_locator_id LEFT JOIN m_inventorystatus mi ON mi.m_inventorystatus_id=bin.m_inventorystatus_id LEFT JOIN m_warehouse wh ON wh.m_warehouse_id = bin.m_warehouse_id LEFT JOIN m_product p ON p.m_product_id = sd.m_product_id WHERE wh.em_retstk_breakbylocator=$125 AND (sd.m_product_id = p_product_id OR sd.m_product_id IN (SELECT m_product_id FROM m_product WHERE generic_product_id = p_product_id)) AND wh.m_warehouse_id IN ( SELECT wh.m_warehouse_id FROM m_warehouse wh WHERE CASE WHEN coalesce((SELECT em_retstk_org_filters FROM ad_org WHERE ad_org_id = p_org_id), $126) = $127 THEN EXISTS (SELECT $128 FROM retstk_org_warehouse WHERE m_warehouse_id = wh.m_warehouse_id AND ad_org_id = p_org_id) ELSE NOT EXISTS (SELECT $129 FROM retstk_org_warehouse WHERE m_warehouse_id = wh.m_warehouse_id AND ad_org_id = p_org_id) AND ad_client_id = p_client_id END ) GROUP BY wh.m_warehouse_id) as r GROUP BY r.m_warehouse_id ) as stk ) as s) END) as "verticalValues" FROM m_product prod WHERE prod.m_product_id = p_product_id ) As f |
| 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 |
| bf60147669 | SELECT COUNT(*) AS TOTAL FROM AD_SESSION WHERE AD_SESSION_ID = $1 AND SESSION_ACTIVE = $2 AND ISACTIVE = $3 |
| 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, 0), QTYORDERONHAND=QTYORDERONHAND + v_qtyorder, DATELASTINVENTORY=COALESCE(p_datelastinventory, DATELASTINVENTORY), PREQTYONHAND=PREQTYONHAND + COALESCE(p_preqty, 0), 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, '-1')=COALESCE(p_product_uom, '-1') |
| 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 |
| bb4767275d | SELECT coalesce(ad_language,'en_US') FROM AD_CLIENT WHERE ad_client_id='0' |
| d1e21ddf3e | SELECT REPLACE(REPLACE(SQL_RECORD_IDENTIFIER, ':c_language', '''' || p_Language || ''''), ':c_ID', p_Record_ID) FROM AD_TABLE WHERE UPPER(TABLENAME)=UPPER(p_TableName) |
| 68de33d5d7 | INSERT INTO M_MATCHPO ( M_MatchPO_ID, AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, M_InOutLine_ID, C_OrderLine_ID, M_Product_ID, DateTrx, Qty, Processing, Processed, Posted ) VALUES ( v_MatchPO_ID, Cur_SLines.AD_Client_ID, Cur_SLines.AD_Org_ID, $260, TO_DATE(NOW()), v_User, TO_DATE(NOW()), v_User, Cur_SLines.M_InOutLine_ID, Cur_SLines.C_OrderLine_ID, Cur_SLines.M_Product_ID, TO_DATE(NOW()), v_Qty, $261, $262, $263 ) |
| d3dcdac298 | SELECT AD_LEGALENTITY_ORG_ID FROM AD_Org WHERE AD_Org_ID = p_org_id |
| 659ec453a2 | INSERT INTO M_TRANSACTION ( M_Transaction_ID, M_InOutLine_ID, AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, MovementType, M_Locator_ID, M_Product_ID, M_AttributeSetInstance_ID, MovementDate, MovementQty, M_Product_UOM_ID, QuantityOrder, C_UOM_ID ) VALUES ( v_NextNo, Cur_InOutLine.M_InOutLine_ID, Cur_InOutLine.AD_Client_ID, Cur_InOutLine.AD_Org_ID, $219, TO_DATE(NOW()), v_User, TO_DATE(NOW()), v_User, Cur_InOut.MovementType, Cur_InOutLine.M_Locator_ID, Cur_InOutLine.M_Product_ID, COALESCE(Cur_InOutLine.M_AttributeSetInstance_ID, $220), Cur_InOut.MovementDate, v_Qty, Cur_InOutLine.M_Product_UOM_ID, v_QuantityOrder, Cur_InOutLine.C_UOM_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='Initial' order by c_import_e0_.Created, c_import_e0_.Createdtimestamp limit $2 |
| 66bc870e45 | insert into FIN_Payment_ScheduleDetail (AD_Client_ID, AD_Org_ID, Created, Createdby, Updated, Updatedby, FIN_Payment_Schedule_Order, Amount, Isactive, Writeoffamt, Iscanceled, C_Bpartner_ID, DoubtfulDebt_Amount, Isinvoicepaid, FIN_Payment_Scheduledetail_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) |
| 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) |
| 3ff50f5232 | insert into C_OrderTax (C_Order_ID, C_Tax_ID, AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, TaxBaseAmt, TaxAmt, Line, C_OrderTax_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13) |
| 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)) |
| 8d633ecaab | insert into C_Import_Entry_Archive (AD_Client_ID, AD_Org_ID, Isactive, Created, Createdby, Updated, Updatedby, Imported, Jsoninfo, ImportStatus, Typeofdata, AD_Role_ID, Responseinfo, Isnonblocking, C_Import_Entry_Archive_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) |
| 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, 'Y', 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, 'Y' ) |
| 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_bpartner | 126 GB | 764 | 843958 | 859474 | 301 | 39 | 9 | |
| c_bpartner(TOAST) | |||||||||||
| openbravo | pg_default | public | c_order | 99 GB | 108 | 17113905 | 57789092 | 1037 | 1644 | 637 | |
| c_order(TOAST) | |||||||||||
| openbravo | pg_default | public | fin_payment | 15 GB | 24 | 26063 | 25917 | 973 | 3002 | 840 | |
| fin_payment(TOAST) | |||||||||||
| openbravo | pg_default | public | m_inout | 13 GB | 31 | 519354807 | 519441133 | 987 | 1047 | 29 | |
| m_inout(TOAST) | 1114 | 20544 | 435 | 291 | |||||||
| openbravo | pg_default | public | c_orderline | 12 GB | 10 | 541473 | 47054855 | 2467 | 6524 | 1476 | |
| c_orderline(TOAST) | |||||||||||
| openbravo | pg_default | public | fin_payment_schedule | 11 GB | 25 | 5755331 | 6079149 | 1492 | 1486 | 14 | 185 |
| fin_payment_schedule(TOAST) | |||||||||||
| openbravo | pg_default | public | m_transaction | 8657 MB | 14 | 201573 | 481663 | 3036 | |||
| m_transaction(TOAST) | |||||||||||
| openbravo | pg_default | public | ad_user | 8323 MB | 76 | 5636206 | 7138859 | 309 | 361 | 311 | |
| ad_user(TOAST) | |||||||||||
| openbravo | pg_default | public | ad_table | 6485 MB | 9122 | 1331 | 1331 | ||||
| ad_table(TOAST) | |||||||||||
| openbravo | pg_default | pg_catalog | pg_class | 6043 MB | 6785 | 806528 | 843476 | ||||
| openbravo | pg_default | profile | last_stat_database | 4817 MB | 123304 | 92 | 92 | ||||
| openbravo | pg_default | public | m_inoutline | 4583 MB | 7 | 22515072 | 544390529 | 3910 | 1 | 1100 | 1 |
| m_inoutline(TOAST) | |||||||||||
| openbravo | pg_default | public | c_invoice | 3930 MB | 15 | 9875 | 350071 | 613 | 671 | ||
| c_invoice(TOAST) | |||||||||||
| openbravo | pg_default | public | c_location | 3053 MB | 45 | 15393426 | 34765134 | 235 | 235 | ||
| c_location(TOAST) | |||||||||||
| openbravo | pg_default | public | m_product | 2804 MB | 681 | 3158056 | 4611150 | ||||
| m_product(TOAST) | |||||||||||
| openbravo | pg_default | profile | last_stat_tablespaces | 2049 MB | 43721 | 46 | 46 | ||||
| last_stat_tablespaces(TOAST) | |||||||||||
| openbravo | pg_default | pg_catalog | pg_proc | 1945 MB | 1008 | 75710 | 108304 | ||||
| pg_proc(TOAST) | 2335 | 6381 | |||||||||
| openbravo | pg_default | public | ad_org | 1513 MB | 6457 | 28477736 | 28604478 | 56 | 38 | ||
| ad_org(TOAST) | 33869 | 33869 | |||||||||
| openbravo | pg_default | public | ad_client | 758 MB | 48484 | 692 | 692 | ||||
| ad_client(TOAST) | |||||||||||
| openbravo | pg_default | public | c_orderlinetax | 618 MB | 1 | 6192 | 5612 | 2467 | |||
| c_orderlinetax(TOAST) | |||||||||||
| DB | Tablespace | Schema | Table | Heap | Ix | TOAST | TOAST-Ix | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Blks | %Total | Blks | %Total | Blks | %Total | Blks | %Total | ||||
| openbravo | pg_default | public | m_inout | 521005242 | 15.79 | 1564904228 | 47.42 | 6987 | 0.00 | 38160 | 0.00 |
| openbravo | pg_default | public | m_inoutline | 526917441 | 15.97 | 71660711 | 2.17 | ||||
| openbravo | pg_default | public | c_order | 59998473 | 1.82 | 55044488 | 1.67 | ||||
| openbravo | pg_default | public | c_bpartner_location | 36813240 | 1.12 | 52556984 | 1.59 | ||||
| openbravo | pg_default | public | c_location | 35156551 | 1.07 | 46385658 | 1.41 | ||||
| openbravo | pg_default | public | ad_org | 28757099 | 0.87 | 28476748 | 0.86 | 33869 | 0.00 | 101877 | 0.00 |
| openbravo | pg_default | public | c_orderline | 40825051 | 1.24 | 2915878 | 0.09 | ||||
| openbravo | pg_default | public | m_costing | 27862100 | 0.84 | ||||||
| openbravo | pg_default | public | c_country | 13340212 | 0.40 | 13339838 | 0.40 | ||||
| openbravo | pg_default | public | ad_user | 8216812 | 0.25 | 16967565 | 0.51 | ||||
| openbravo | pg_default | public | fin_payment_schedule | 7515839 | 0.23 | 17335090 | 0.53 | ||||
| openbravo | pg_default | public | fin_payment_detail | 15071004 | 0.46 | 177631 | 0.01 | ||||
| openbravo | pg_default | public | m_matchpo | 2598642 | 0.08 | 7833175 | 0.24 | ||||
| openbravo | pg_default | public | m_product | 3819661 | 0.12 | 6495042 | 0.20 | ||||
| openbravo | pg_default | public | c_import_entry | 6038846 | 0.18 | 1317506 | 0.04 | 124374 | 0.00 | 309144 | 0.01 |
| openbravo | pg_default | public | c_bpartner | 4729092 | 0.14 | 2551323 | 0.08 | ||||
| openbravo | pg_default | public | fin_payment_scheduledetail | 5800950 | 0.18 | 184210 | 0.01 | ||||
| openbravo | pg_default | profile | last_stat_tables | 4898902 | 0.15 | 135335 | 0.00 | ||||
| openbravo | pg_default | public | m_storage_detail | 2811483 | 0.09 | 1077013 | 0.03 | ||||
| openbravo | pg_default | pg_catalog | pg_class | 1582322 | 0.05 | 1633534 | 0.05 | ||||
| DB | Tablespace | Schema | Table | Heap | Ix | TOAST | TOAST-Ix | Hit(%) | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Blks | %Total | Blks | %Total | Blks | %Total | Blks | %Total | |||||
| openbravo | pg_default | public | obmobc_logclient | 3306 | 5.56 | 4412 | 7.42 | 99.37 | ||||
| openbravo | pg_default | public | c_import_entry_archive | 314 | 0.53 | 198 | 0.33 | 3432 | 5.77 | 120 | 0.20 | 99.72 |
| openbravo | pg_default | public | c_orderlinetax | 122 | 0.21 | 3924 | 6.60 | 97.43 | ||||
| openbravo | pg_default | public | c_orderline | 513 | 0.86 | 3405 | 5.72 | 99.99 | ||||
| openbravo | pg_default | public | c_invoiceline | 123 | 0.21 | 2958 | 4.97 | 98.58 | ||||
| openbravo | pg_default | public | c_invoicelinetax | 77 | 0.13 | 2671 | 4.49 | 90.44 | ||||
| openbravo | pg_default | public | c_order | 301 | 0.51 | 2395 | 4.03 | 100.00 | ||||
| openbravo | pg_default | public | m_transaction | 167 | 0.28 | 2321 | 3.90 | 99.87 | ||||
| openbravo | pg_default | public | ad_user | 27 | 0.05 | 2418 | 4.06 | 99.99 | ||||
| openbravo | pg_default | public | fin_payment_scheduledetail | 76 | 0.13 | 2336 | 3.93 | 99.96 | ||||
| openbravo | pg_default | public | m_inoutline | 223 | 0.37 | 2157 | 3.63 | 100.00 | ||||
| openbravo | pg_default | public | obcfr_ticketreprint | 245 | 0.41 | 2083 | 3.50 | 7 | 0.01 | 92.63 | ||
| openbravo | pg_default | public | obcfr_tickettax | 81 | 0.14 | 1966 | 3.30 | 93.82 | ||||
| openbravo | pg_default | public | m_inout | 113 | 0.19 | 1494 | 2.51 | 107 | 0.18 | 24 | 0.04 | 100.00 |
| openbravo | pg_default | public | obcfr_ticket | 234 | 0.39 | 1482 | 2.49 | 4 | 0.01 | 96.46 | ||
| openbravo | pg_default | public | c_import_entry | 274 | 0.46 | 4 | 0.01 | 1416 | 2.38 | 4 | 0.01 | 99.98 |
| openbravo | pg_default | public | c_ordertax | 84 | 0.14 | 1396 | 2.35 | 98.06 | ||||
| openbravo | pg_default | public | fin_finacc_transaction | 100 | 0.17 | 1159 | 1.95 | 99.60 | ||||
| openbravo | pg_default | public | m_matchpo | 51 | 0.09 | 1163 | 1.95 | 99.99 | ||||
| openbravo | pg_default | public | c_invoice | 126 | 0.21 | 814 | 1.37 | 99.90 | ||||
| DB | Tablespace | Schema | Table | Ins | Upd | Del | Upd(HOT) | SeqScan | SeqFet | IxScan | IxFet |
|---|---|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | profile | last_stat_indexes | 67298 | 1607 | 67298 | 2 | 184 | 1076768 | 41190 | 405395 |
| openbravo | pg_default | profile | last_stat_tables | 39238 | 4345 | 39238 | 59 | 185 | 631220 | 9567 | 4333716 |
| openbravo | pg_default | public | c_import_entry | 9923 | 9924 | 9923 | 1 | 436474 | 289712 | ||
| c_import_entry(TOAST) | 15881 | 15881 | 25122 | 81205 | |||||||
| openbravo | pg_default | public | obmobc_logclient | 56545 | |||||||
| obmobc_logclient(TOAST) | |||||||||||
| openbravo | pg_default | profile | last_stat_user_functions | 9039 | 1018 | 9039 | 54 | 388 | 268812 | ||
| last_stat_user_functions(TOAST) | |||||||||||
| openbravo | pg_default | public | c_import_entry_archive | 4262 | 1 | 142199 | 9886 | ||||
| c_import_entry_archive(TOAST) | 14577 | 111098 | 474914 | ||||||||
| openbravo | pg_default | pg_catalog | pg_statistic | 12859 | 12385 | 441892 | 368412 | ||||
| pg_statistic(TOAST) | 1755 | 1753 | 41408 | 88845 | |||||||
| openbravo | pg_default | public | c_orderline | 2467 | 6524 | 1476 | 10 | 19619284 | 541473 | 47054855 | |
| c_orderline(TOAST) | |||||||||||
| openbravo | pg_default | profile | sample_stat_tables | 3966 | 4276 | 167 | 93826 | ||||
| openbravo | pg_default | public | m_storage_detail | 62 | 5401 | 2 | 1623 | 8 | 634623 | 299900 | 9514173 |
| m_storage_detail(TOAST) | |||||||||||
| openbravo | pg_default | public | m_inoutline | 3910 | 1 | 1100 | 1 | 7 | 10543280 | 22515072 | 544390529 |
| m_inoutline(TOAST) | |||||||||||
| openbravo | pg_default | public | fin_payment | 973 | 3002 | 840 | 24 | 17182143 | 26063 | 25917 | |
| fin_payment(TOAST) | |||||||||||
| openbravo | pg_default | public | fin_payment_scheduledetail | 973 | 2984 | 939 | 28711 | 5754434 | |||
| fin_payment_scheduledetail(TOAST) | |||||||||||
| openbravo | pg_default | public | fin_finacc_transaction | 1083 | 2068 | 34668 | 88974 | ||||
| fin_finacc_transaction(TOAST) | |||||||||||
| openbravo | pg_default | public | m_transaction | 3036 | 14 | 13295965 | 201573 | 481663 | |||
| m_transaction(TOAST) | |||||||||||
| openbravo | pg_default | public | fin_payment_schedule | 1492 | 1486 | 14 | 185 | 25 | 31916715 | 5755331 | 6079149 |
| fin_payment_schedule(TOAST) | |||||||||||
| openbravo | pg_default | public | ad_sequence | 2986 | 2933 | 33 | 643 | 6207 | 6207 | ||
| ad_sequence(TOAST) | |||||||||||
| openbravo | pg_default | public | m_inout | 987 | 1047 | 29 | 31 | 19559884 | 519354807 | 519441133 | |
| m_inout(TOAST) | 435 | 291 | 1114 | 20544 | |||||||
| openbravo | pg_default | profile | sample_stat_indexes | 1240 | 1465 | 154 | 39041 | ||||
| openbravo | pg_default | public | c_order | 1037 | 1644 | 637 | 108 | 84771429 | 17113905 | 57789092 | |
| c_order(TOAST) | |||||||||||
| DB | Tablespace | Schema | Table | Upd | Upd(HOT) | Del | Vacuum | AutoVacuum | Analyze | AutoAnalyze |
|---|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | profile | last_stat_indexes | 1607 | 2 | 67298 | 35 | 46 | 23 | |
| openbravo | pg_default | profile | last_stat_tables | 4345 | 59 | 39238 | 35 | 46 | 23 | |
| openbravo | pg_default | public | c_import_entry | 9924 | 1 | 9923 | 72 | 120 | ||
| c_import_entry(TOAST) | 15881 | 48 | ||||||||
| openbravo | pg_default | pg_catalog | pg_statistic | 12859 | 12385 | 1 | ||||
| pg_statistic(TOAST) | 1753 | 5 | ||||||||
| openbravo | pg_default | profile | last_stat_user_functions | 1018 | 54 | 9039 | 35 | 46 | 23 | |
| last_stat_user_functions(TOAST) | ||||||||||
| openbravo | pg_default | public | c_orderline | 6524 | 1476 | |||||
| c_orderline(TOAST) | ||||||||||
| openbravo | pg_default | public | m_storage_detail | 5401 | 1623 | 2 | ||||
| m_storage_detail(TOAST) | ||||||||||
| openbravo | pg_default | profile | sample_stat_tables | 4276 | 1 | 3 | ||||
| openbravo | pg_default | public | fin_payment | 3002 | 840 | |||||
| fin_payment(TOAST) | ||||||||||
| openbravo | pg_default | public | ad_sequence | 2986 | 2933 | 1 | 26 | |||
| ad_sequence(TOAST) | ||||||||||
| openbravo | pg_default | public | fin_payment_scheduledetail | 2984 | 939 | |||||
| fin_payment_scheduledetail(TOAST) | ||||||||||
| openbravo | pg_default | public | obpos_applications | 2433 | 2331 | 18 | 40 | |||
| obpos_applications(TOAST) | ||||||||||
| openbravo | pg_default | public | fin_finacc_transaction | 2068 | ||||||
| fin_finacc_transaction(TOAST) | ||||||||||
| openbravo | pg_default | public | m_storage_pending | 1662 | 186 | |||||
| m_storage_pending(TOAST) | ||||||||||
| openbravo | pg_default | public | c_order | 1644 | 637 | |||||
| c_order(TOAST) | ||||||||||
| openbravo | pg_default | public | fin_payment_schedule | 1486 | 185 | 14 | ||||
| fin_payment_schedule(TOAST) | ||||||||||
| openbravo | pg_default | profile | sample_stat_indexes | 1465 | 1 | 2 | ||||
| openbravo | pg_default | public | m_inout | 1047 | 29 | |||||
| m_inout(TOAST) | 291 | |||||||||
| openbravo | pg_default | profile | sample_statements | 1233 | 1 | 2 | ||||
| sample_statements(TOAST) | ||||||||||
| openbravo | pg_default | public | obpos_app_cashup | 1194 | 137 | 1 | ||||
| obpos_app_cashup(TOAST) | ||||||||||
| DB | Tablespace | Schema | Table | Size | Growth | Ins | Upd | Del | Upd(HOT) |
|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | ad_process_run | 3536 kB | 128 kB | 268 | 268 | ||
| ad_process_run(TOAST) | 1136 kB | 48 kB | 19 | ||||||
| openbravo | pg_default | public | obcfr_terminalmonitor | 80 MB | 72 kB | 69 | |||
| openbravo | pg_default | public | ad_treenode | 78 MB | 64 kB | 72 | |||
| openbravo | pg_default | public | obpos_userterminal_access | 136 kB | 32 kB | 3 | 3 | ||
| openbravo | pg_default | profile | last_stat_cluster | 40 kB | 32 kB | 23 | 23 | ||
| openbravo | pg_default | profile | last_stat_archiver | 48 kB | 32 kB | 23 | 23 | ||
| last_stat_archiver(TOAST) | |||||||||
| openbravo | pg_default | profile | last_stat_user_functions | 264 kB | 24 kB | 9039 | 1018 | 9039 | 54 |
| last_stat_user_functions(TOAST) | |||||||||
| openbravo | pg_default | pg_catalog | pg_statistic | 5032 kB | 8192 bytes | 12859 | 12385 | ||
| pg_statistic(TOAST) | 3792 kB | 1755 | 1753 | ||||||
| openbravo | pg_default | profile | sample_stat_tablespaces | 64 kB | 8192 bytes | 30 | 32 | ||
| openbravo | pg_default | profile | sample_statements_total | 160 kB | 8192 bytes | 27 | 30 | ||
| sample_statements_total(TOAST) | |||||||||
| openbravo | pg_default | profile | sample_stat_user_func_total | 64 kB | 8192 bytes | 28 | 32 |
| DB | Tablespace | Schema | Table | Index | Scans | Blks | %Total |
|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | m_inout | m_inout_key | 519350011 | 1564816228 | 47.42 |
| openbravo | pg_default | public | m_inoutline | m_inoutline_orderline | 21817496 | 65850880 | 2.00 |
| openbravo | pg_default | public | c_bpartner_location | c_bplocation_bpartner | 17372417 | 52240194 | 1.58 |
| openbravo | pg_default | public | c_order | c_order_key | 17101617 | 51605649 | 1.56 |
| openbravo | pg_default | public | c_location | c_location_key | 15393426 | 46384034 | 1.41 |
| openbravo | pg_default | public | ad_org | ad_org_key | 28475082 | 28473682 | 0.86 |
| openbravo | pg_default | public | m_costing | m_costing_product_date | 27861164 | 27861398 | 0.84 |
| openbravo | pg_default | public | fin_payment_schedule | fin_payment_schedule_key | 5743717 | 17277084 | 0.52 |
| openbravo | pg_default | public | ad_user | ad_user_partner | 5484458 | 16493512 | 0.50 |
| openbravo | pg_default | public | c_country | c_country_key | 13333246 | 13333405 | 0.40 |
| openbravo | pg_default | public | m_matchpo | m_matchpo_inout | 2597862 | 7813324 | 0.24 |
| openbravo | pg_default | public | m_product | m_product_key | 3153567 | 6343480 | 0.19 |
| openbravo | pg_default | public | m_inoutline | m_inoutline_product | 635296 | 5549048 | 0.17 |
| openbravo | pg_default | public | c_order | c_order_client_org_date_docno | 245 | 3113899 | 0.09 |
| openbravo | pg_default | public | c_bpartner | c_bpartner_key | 831019 | 2496273 | 0.08 |
| openbravo | pg_default | public | c_orderline | em_obpos_orderedqty | 443653 | 1974389 | 0.06 |
| openbravo | pg_default | pg_catalog | pg_attribute | pg_attribute_relid_attnum_index | 737492 | 1491042 | 0.05 |
| openbravo | pg_default | pg_catalog | pg_class | pg_class_oid_index | 706714 | 1425735 | 0.04 |
| openbravo | pg_default | public | m_storage_detail | m_storage_detail_un | 261727 | 814397 | 0.02 |
| openbravo | pg_default | pg_catalog | pg_statistic | pg_statistic_relid_att_inh_index | 376553 | 761710 | 0.02 |
| DB | Tablespace | Schema | Table | Index | Scans | Blk Reads | %Total | Hits(%) |
|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | ad_user | ad_user_name_id | 7 | 1806 | 3.04 | 86.20 |
| openbravo | pg_default | public | m_transaction | m_transaction_key | 1724 | 2.90 | 81.27 | |
| openbravo | pg_default | public | obmobc_logclient | obmobc_logclient_pk | 1650 | 2.77 | 99.06 | |
| openbravo | pg_default | public | c_orderlinetax | c_orderlinetax_key | 1531 | 2.57 | 84.62 | |
| openbravo | pg_default | public | c_orderlinetax | c_orderlinetax_orderline | 6192 | 1517 | 2.55 | 95.64 |
| openbravo | pg_default | public | m_inoutline | m_inoutline_key | 15707 | 1434 | 2.41 | 97.49 |
| openbravo | pg_default | public | obmobc_logclient | obmobc_logclient_context | 1198 | 2.01 | 99.60 | |
| openbravo | pg_default | public | c_invoiceline | c_invoiceline_inoutline | 2201 | 1171 | 1.97 | 90.24 |
| openbravo | pg_default | public | c_invoicelinetax | c_invoicelinetax_key | 1074 | 1.81 | 79.90 | |
| openbravo | pg_default | public | c_invoicelinetax | c_invoicelinetax_invoiceline | 1070 | 1.80 | 79.97 | |
| openbravo | pg_default | public | c_invoiceline | c_invoiceline_key | 1816 | 1063 | 1.79 | 90.15 |
| openbravo | pg_default | public | c_orderline | c_orderline_order2 | 912 | 1.53 | 97.11 | |
| openbravo | pg_default | public | c_orderline | c_orderline_order | 910 | 1.53 | 97.10 | |
| openbravo | pg_default | public | c_orderline | em_obpos_deliveredqty | 910 | 1.53 | 97.13 | |
| openbravo | pg_default | public | fin_payment_scheduledetail | fin_pay_scheduledetail_in | 1636 | 839 | 1.41 | 91.47 |
| openbravo | pg_default | public | c_orderlinetax | c_orderlinetax_orderid | 817 | 1.37 | 91.27 | |
| openbravo | pg_default | public | obcfr_tickettax | obcfr_tickettax_term_hash | 733 | 1.23 | 80.80 | |
| openbravo | pg_default | public | obcfr_ticketreprint | obcfr_ticketreprint_term_hash | 718 | 1.21 | 80.25 | |
| openbravo | pg_default | public | c_order | c_order_bpartner_dateordered | 830 | 710 | 1.19 | 89.54 |
| openbravo | pg_default | public | obcfr_ticket | obcfr_ticket_term_hash | 674 | 1.13 | 80.33 |
| DB | Tablespace | Schema | Table | Index | Index | Table | |||
|---|---|---|---|---|---|---|---|---|---|
| Size | Growth | Ins | Upd | Del | |||||
| openbravo | pg_default | public | ad_process_run | ad_process_run_ad_prequest_id | 824 kB | 32 kB | 193 | 193 | |
| openbravo | pg_default | profile | sample_statements | pk_sample_statements_n | 624 kB | 24 kB | 717 | 774 | |
| openbravo | pg_default | profile | last_stat_tables | pk_last_stat_tables | 304 kB | 16 kB | 39238 | 4286 | 39238 |
| openbravo | pg_default | profile | sample_stat_user_functions | pk_sample_stat_user_functions | 336 kB | 16 kB | 327 | 457 | |
| openbravo | pg_default | public | ad_process_run | ad_process_run_key | 1200 kB | 16 kB | 174 | 174 | |
| openbravo | pg_default | public | ad_process_run | ad_process_run_status | 304 kB | 16 kB | 174 | 174 | |
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 | 132 | 132 | ||
| DB | Schema | Function | Executions | Time (s) | |||
|---|---|---|---|---|---|---|---|
| Total | Self | Mean | Mean self | ||||
| openbravo | public | m_get_cost | 13930582 | 2179.79 | 75.00 | 0.000 | 0.000 |
| openbravo | public | m_get_cost | 13930582 | 2104.78 | 191.89 | 0.000 | 0.000 |
| openbravo | public | m_get_no_trx_product_cost | 13930582 | 1342.84 | 67.85 | 0.000 | 0.000 |
| openbravo | public | m_get_no_trx_product_cost | 13930582 | 1275.00 | 968.64 | 0.000 | 0.000 |
| openbravo | public | m_get_product_cost | 13930582 | 370.36 | 370.36 | 0.000 | 0.000 |
| openbravo | public | ad_get_org_le_bu | 13728612 | 306.43 | 306.43 | 0.000 | 0.000 |
| openbravo | public | trunc | 17402877 | 178.71 | 178.70 | 0.000 | 0.000 |
| openbravo | public | retstk_product_stock_json | 284 | 144.60 | 142.62 | 0.509 | 0.502 |
| openbravo | public | to_date | 13951100 | 108.66 | 108.66 | 0.000 | 0.000 |
| openbravo | public | c_currency_convert_precision | 13930582 | 91.28 | 91.28 | 0.000 | 0.000 |
| openbravo | profile | take_sample | 23 | 39.19 | 0.02 | 1.704 | 0.001 |
| openbravo | profile | take_sample_subset | 23 | 39.17 | 0.08 | 1.703 | 0.003 |
| openbravo | profile | take_sample | 23 | 39.09 | 2.43 | 1.700 | 0.105 |
| openbravo | public | substract_days | 28503164 | 36.74 | 36.74 | 0.000 | 0.000 |
| openbravo | profile | dblink | 621 | 24.63 | 24.63 | 0.040 | 0.040 |
| openbravo | public | ad_column_identifier | 19881 | 14.80 | 14.63 | 0.001 | 0.001 |
| openbravo | profile | collect_obj_stats | 22 | 14.57 | 4.11 | 0.662 | 0.187 |
| openbravo | public | ad_column_identifier_std | 18539 | 14.21 | 0.69 | 0.001 | 0.000 |
| openbravo | profile | collect_pg_stat_statements_stats | 21 | 10.80 | 0.47 | 0.515 | 0.023 |
| openbravo | public | m_get_stock_param | 1663 | 9.43 | 9.23 | 0.006 | 0.006 |
| DB | Schema | Function | Executions | Time (s) | |||
|---|---|---|---|---|---|---|---|
| Total | Self | Mean | Mean self | ||||
| openbravo | public | substract_days | 28503164 | 36.74 | 36.74 | 0.000 | 0.000 |
| openbravo | public | trunc | 17402877 | 178.71 | 178.70 | 0.000 | 0.000 |
| openbravo | public | to_date | 13951100 | 108.66 | 108.66 | 0.000 | 0.000 |
| openbravo | public | c_currency_convert_precision | 13930582 | 91.28 | 91.28 | 0.000 | 0.000 |
| openbravo | public | m_get_cost | 13930582 | 2179.79 | 75.00 | 0.000 | 0.000 |
| openbravo | public | m_get_cost | 13930582 | 2104.78 | 191.89 | 0.000 | 0.000 |
| openbravo | public | m_get_no_trx_product_cost | 13930582 | 1342.84 | 67.85 | 0.000 | 0.000 |
| openbravo | public | m_get_no_trx_product_cost | 13930582 | 1275.00 | 968.64 | 0.000 | 0.000 |
| openbravo | public | m_get_product_cost | 13930582 | 370.36 | 370.36 | 0.000 | 0.000 |
| openbravo | public | ad_get_org_le_bu | 13728612 | 306.43 | 306.43 | 0.000 | 0.000 |
| openbravo | public | trunc | 1355388 | 4.96 | 4.95 | 0.000 | 0.000 |
| openbravo | public | to_number | 237111 | 0.98 | 0.98 | 0.000 | 0.000 |
| openbravo | public | to_char | 199691 | 0.55 | 0.55 | 0.000 | 0.000 |
| openbravo | public | ad_istriggerenabled | 181253 | 1.78 | 1.78 | 0.000 | 0.000 |
| openbravo | public | ad_isorgincluded | 101991 | 2.25 | 2.25 | 0.000 | 0.000 |
| openbravo | public | uuid_generate_v4 | 31347 | 0.21 | 0.21 | 0.000 | 0.000 |
| openbravo | public | ad_column_identifier | 19881 | 14.80 | 14.63 | 0.001 | 0.001 |
| openbravo | public | ad_column_identifier_std | 18539 | 14.21 | 0.69 | 0.001 | 0.000 |
| openbravo | public | to_char | 16823 | 0.05 | 0.05 | 0.000 | 0.000 |
| openbravo | public | obequals | 16227 | 0.13 | 0.13 | 0.000 | 0.000 |
| DB | Schema | Function | Executions | Time (s) | |||
|---|---|---|---|---|---|---|---|
| Total | Self | Mean | Mean self | ||||
| openbravo | public | intr_m_inoutline_trg | 3682 | 2.96 | 0.24 | 0.001 | 0.000 |
| openbravo | public | c_orderline_trg2 | 8991 | 2.02 | 0.91 | 0.000 | 0.000 |
| openbravo | public | m_inoutline_trg | 4713 | 1.66 | 0.70 | 0.000 | 0.000 |
| openbravo | public | intr_c_orderline_trg | 8991 | 1.29 | 0.30 | 0.000 | 0.000 |
| openbravo | public | c_orderline2_trg | 8991 | 1.20 | 1.08 | 0.000 | 0.000 |
| openbravo | public | m_transaction_trg | 2971 | 1.08 | 0.48 | 0.000 | 0.000 |
| openbravo | public | fash_orderline_check_status | 8991 | 1.03 | 0.97 | 0.000 | 0.000 |
| openbravo | public | c_ordline_chk_restrictions_trg | 8991 | 0.69 | 0.63 | 0.000 | 0.000 |
| openbravo | public | c_orderline_trg | 8991 | 0.53 | 0.45 | 0.000 | 0.000 |
| openbravo | public | fash_copy_c_orderline | 8991 | 0.50 | 0.19 | 0.000 | 0.000 |
| openbravo | public | fash_update_fshordline_trg | 8991 | 0.46 | 0.39 | 0.000 | 0.000 |
| openbravo | public | c_bpartner_trg | 385 | 0.39 | 0.38 | 0.001 | 0.001 |
| openbravo | public | phieco_orderline_trg | 8991 | 0.39 | 0.33 | 0.000 | 0.000 |
| openbravo | public | m_matchpo_trg | 1100 | 0.37 | 0.15 | 0.000 | 0.000 |
| openbravo | public | aprm_fin_pmt_check_trg | 3920 | 0.34 | 0.27 | 0.000 | 0.000 |
| openbravo | public | c_orderlinetax_trg | 1275 | 0.33 | 0.24 | 0.000 | 0.000 |
| openbravo | public | m_ioline_chk_restrictions_trg | 4151 | 0.32 | 0.25 | 0.000 | 0.000 |
| openbravo | public | aprm_fin_pmt_detail_check_trg | 1928 | 0.26 | 0.23 | 0.000 | 0.000 |
| openbravo | public | m_storage_detail_trg | 4954 | 0.26 | 0.20 | 0.000 | 0.000 |
| openbravo | public | fash_set_qtyinitial | 8991 | 0.25 | 0.19 | 0.000 | 0.000 |
| DB | Tablespace | Schema | Table | Vacuum count | Autovacuum count | Ins | Upd | Del | Upd(HOT) |
|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | c_import_entry | 72 | 9923 | 9924 | 9923 | 1 | |
| openbravo | pg_default | profile | last_stat_tables | 35 | 39238 | 4345 | 39238 | 59 | |
| openbravo | pg_default | profile | last_stat_indexes | 35 | 67298 | 1607 | 67298 | 2 | |
| openbravo | pg_default | profile | last_stat_user_functions | 35 | 9039 | 1018 | 9039 | 54 | |
| openbravo | pg_default | public | obpos_applications | 18 | 2433 | 2331 | |||
| openbravo | pg_default | public | ad_ep_instance_para | 4 | 181 | 181 | |||
| openbravo | pg_default | profile | last_stat_database | 2 | 92 | 92 | |||
| openbravo | pg_default | pg_catalog | pg_statistic | 1 | 12859 | 12385 | |||
| openbravo | pg_default | public | ad_sequence | 1 | 2986 | 2933 | |||
| openbravo | pg_default | profile | last_stat_cluster | 1 | 23 | 23 | |||
| openbravo | pg_default | profile | last_stat_archiver | 1 | 23 | 23 | |||
| openbravo | pg_default | profile | sample_stat_tablespaces | 1 | 30 | 32 | |||
| openbravo | pg_default | profile | last_stat_tablespaces | 1 | 46 | 46 | |||
| openbravo | pg_default | profile | sample_stat_tables | 1 | 3966 | 4276 | |||
| openbravo | pg_default | profile | sample_stat_indexes | 1 | 1240 | 1465 | |||
| openbravo | pg_default | profile | sample_statements | 1 | 1040 | 1233 | |||
| openbravo | pg_default | profile | sample_statements_total | 1 | 27 | 30 | |||
| openbravo | pg_default | profile | sample_stat_user_functions | 1 | 612 | 755 | |||
| openbravo | pg_default | profile | sample_stat_user_func_total | 1 | 28 | 32 |
| DB | Tablespace | Schema | Table | Analyze count | Autoanalyze count | Ins | Upd | Del | Upd(HOT) |
|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | c_import_entry | 120 | 9923 | 9924 | 9923 | 1 | |
| openbravo | pg_default | profile | last_stat_tables | 46 | 23 | 39238 | 4345 | 39238 | 59 |
| openbravo | pg_default | profile | last_stat_indexes | 46 | 23 | 67298 | 1607 | 67298 | 2 |
| openbravo | pg_default | profile | last_stat_user_functions | 46 | 23 | 9039 | 1018 | 9039 | 54 |
| openbravo | pg_default | public | obpos_applications | 40 | 2433 | 2331 | |||
| openbravo | pg_default | public | ad_sequence | 26 | 2986 | 2933 | |||
| openbravo | pg_default | profile | last_stat_tablespaces | 23 | 46 | 46 | |||
| openbravo | pg_default | public | fin_financial_account | 10 | 1019 | 1013 | |||
| openbravo | pg_default | public | ad_process_request | 7 | 287 | 286 | |||
| openbravo | pg_default | public | ad_ep_instance_para | 6 | 181 | 181 | |||
| openbravo | pg_default | profile | last_stat_database | 4 | 92 | 92 | |||
| openbravo | pg_default | public | ad_session | 3 | 60 | 522 | 449 | ||
| openbravo | pg_default | profile | sample_stat_tables | 3 | 3966 | 4276 | |||
| openbravo | pg_default | profile | sample_stat_tables_total | 2 | 104 | 104 | |||
| openbravo | pg_default | profile | sample_stat_indexes | 2 | 1240 | 1465 | |||
| openbravo | pg_default | profile | sample_statements | 2 | 1040 | 1233 | |||
| openbravo | pg_default | profile | sample_statements_total | 2 | 27 | 30 | |||
| openbravo | pg_default | profile | sample_stat_user_functions | 2 | 612 | 755 | |||
| openbravo | pg_default | public | ad_org | 1 | 56 | 38 | |||
| openbravo | pg_default | public | ad_pinstance | 1 | 14 | 28 | 27 |
| 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 | 504 kB | 1936 kB | |
| openbravo | pg_default | public | c_import_entry | c_import_entry_key | 13 MB | 72 | 184 kB | 1466 kB | |
| openbravo | pg_default | public | c_import_entry | c_import_entry_type_status_idx | 12 MB | 72 | 170 kB | 1466 kB | |
| openbravo | pg_default | profile | last_stat_tables | pk_last_stat_tables | 10 MB | 35 | 293 kB | 1476 kB | |
| openbravo | pg_default | public | c_import_entry | c_import_entry_idx | 9216 kB | 72 | 128 kB | 1466 kB | |
| openbravo | pg_default | public | c_import_entry | em_obpos_application_fk | 9216 kB | 72 | 128 kB | 1466 kB | |
| openbravo | pg_default | public | c_import_entry(TOAST) | pg_toast_53108_index | 4696 kB | 48 | 99 kB | 2097 kB | |
| openbravo | pg_default | profile | sample_stat_tables | pk_sample_stat_tables | 1360 kB | 1 | 1360 kB | 9816 kB | |
| openbravo | pg_default | profile | sample_statements | ix_sample_stmts_qid | 1200 kB | 1 | 1200 kB | 3336 kB | |
| openbravo | pg_default | profile | sample_statements | pk_sample_statements_n | 624 kB | 1 | 624 kB | 3336 kB | |
| openbravo | pg_default | profile | sample_stat_indexes | pk_sample_stat_indexes | 528 kB | 1 | 528 kB | 1904 kB | |
| openbravo | pg_default | pg_catalog | pg_statistic(TOAST) | pg_toast_2619_index | 464 kB | 5 | 93 kB | 3792 kB | |
| openbravo | pg_default | profile | sample_stat_user_functions | pk_sample_stat_user_functions | 336 kB | 1 | 336 kB | 696 kB | |
| openbravo | pg_default | pg_catalog | pg_statistic | pg_statistic_relid_att_inh_index | 288 kB | 1 | 288 kB | 5032 kB | |
| openbravo | pg_default | public | obpos_applications | obpos_app_prefix | 288 kB | 18 | 16 kB | 168 kB | |
| openbravo | pg_default | public | obpos_applications | obpos_terminal_key_id_un | 288 kB | 18 | 16 kB | 168 kB | |
| openbravo | pg_default | public | obpos_applications | obpos_value_un | 288 kB | 18 | 16 kB | 168 kB | |
| openbravo | pg_default | public | obpos_applications | obpos_app_pk | 288 kB | 18 | 16 kB | 168 kB | |
| openbravo | pg_default | public | obpos_applications | obpos_app_tertype | 288 kB | 18 | 16 kB | 168 kB | |
| openbravo | pg_default | public | obpos_applications | obpos_applications_name | 288 kB | 18 | 16 kB | 168 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 | pg_catalog | pg_attribute | 35057 | 930 | 2 | 2026-07-15 03:13:28.384746+02 | 5256 kB |
| openbravo | profile | sample_stat_tables | 31157 | 539 | 1 | 2026-07-17 23:00:56.394842+02 | 9816 kB |
| openbravo | public | ad_treenode | 340922 | 2 | 0 | 78 MB |
Table shows modified tuples statistics since last analyze.
Data in this section is not differential. This data is valid for last report sample only.
| DB | Schema | Table | Live | Dead | Mod | %Mod | Last AA | Size |
|---|---|---|---|---|---|---|---|---|
| openbravo | pg_catalog | pg_attribute | 35057 | 930 | 1878 | 5 | 2026-07-15 03:13:28.612937+02 | 5256 kB |
| openbravo | public | ad_treenode | 340922 | 2 | 925 | 0 | 2025-11-13 15:11:37.162194+01 | 78 MB |
| openbravo | public | obcfr_terminalmonitor | 190937 | 0 | 548 | 0 | 80 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-15 03:00:05.218477+02 | |||
| pg_postmaster_start_time | 2026-07-15 03:00:05.809034+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 | |||