pg_profile version 0.3.6
Server name: local
Report interval: 2026-07-14 04:00:02+02 - 2026-07-15 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 | 166831 | 1196 | 100.00 | 58157 | 3445284492 | 2014402511 | 1417493755 | 247863 | 105387 | 161196 | 50 GB | 17159476 | 21 GB | 111 MB | |
| postgres | 11739 | 99.99 | 42 | 663956 | 1906098 | 350350 | 6327 kB | ||||||||
| Total | 178570 | 1196 | 100.00 | 58199 | 3445948448 | 2016308609 | 1417844105 | 247863 | 105387 | 161196 | 50 GB | 17159476 | 21 GB | 111 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 | 57939464 | 18459.29 | 12.60 | 3592470465 | 426848 | 39141773 | 23139627 | 23960 | ||||||
| postgres | 5641 | 11.22 | 89892 | 365 | ||||||||||
| template1 | 6348 | 6.15 | 7176 | 276 | ||||||||||
| Total | 57951453 | 18476.65 | 12.60 | 3592567533 | 426848 | 39141773 | 23139627 | 24601 | ||||||
| Metric | Value |
|---|---|
| Scheduled checkpoints | 276 |
| Requested checkpoints | |
| Checkpoint write time (s) | 28600.33 |
| Checkpoint sync time (s) | 5.78 |
| Checkpoints buffers written | 346565 |
| Background buffers written | |
| Backend buffers written | 15131 |
| Backend fsync count | |
| Bgwriter interrupts (too many buffers) | |
| Number of buffers allocated | 58166 |
| WAL generated | 2250 MB |
| WAL segments archived | |
| WAL segments archive failed |
| Tablespace | Path | Size | Growth |
|---|---|---|---|
| pg_default | 21 GB | 111 MB | |
| pg_global | 814 kB | 48 kB |
| Query ID | Database | Exec (s) | %Total | Rows | Execution times (ms) | Executions | |||
|---|---|---|---|---|---|---|---|---|---|
| Mean | Min | Max | StdErr | ||||||
[7d43ad7e] | openbravo | 8795.01 | 47.60 | 13232426 | 1099375.944 | 1096047.607 | 1103787.440 | 2617.356 | 8 |
[26c6f357] | openbravo | 5599.14 | 30.30 | 633580 | 699892.309 | 687870.279 | 711795.211 | 7259.025 | 8 |
[dfbf0ec0] | openbravo | 748.07 | 4.05 | 41 | 3721.751 | 108.685 | 6468.681 | 1831.243 | 201 |
[a0643fcb] | openbravo | 470.10 | 2.54 | 7835530 | 58762.469 | 57257.239 | 61415.364 | 1176.635 | 8 |
[dab326f6] | openbravo | 206.82 | 1.12 | 5701659 | 25852.382 | 20690.073 | 33386.832 | 3833.282 | 8 |
[4c390f69] | openbravo | 205.60 | 1.11 | 5108965 | 25700.266 | 20481.816 | 31236.271 | 3803.395 | 8 |
[2870663b] | openbravo | 178.84 | 0.97 | 13866006 | 0.013 | 0.006 | 4.504 | 0.005 | 13866006 |
[4f5926de] | openbravo | 127.93 | 0.69 | 2709702 | 15990.991 | 13079.031 | 17676.520 | 1614.735 | 8 |
[b0ebb687] | openbravo | 104.91 | 0.57 | 3020896 | 13113.428 | 11911.903 | 14339.302 | 853.215 | 8 |
[3933d71e] | openbravo | 88.01 | 0.48 | 1475 | 368.263 | 15.313 | 12779.311 | 1423.857 | 239 |
[1c821f88] | openbravo | 83.80 | 0.45 | 1510 | 55.497 | 5.782 | 5996.897 | 272.239 | 1510 |
[806faf8c] | openbravo | 77.00 | 0.42 | 589514 | 76996.598 | 76996.598 | 76996.598 | 1 | |
[eb509fc7] | openbravo | 75.48 | 0.41 | 2709654 | 9435.016 | 9164.789 | 9749.679 | 209.177 | 8 |
[738f9776] | openbravo | 74.73 | 0.40 | 584317 | 74729.729 | 74729.729 | 74729.729 | 1 | |
[9c0a6d60] | openbravo | 65.19 | 0.35 | 732 | 1975.476 | 1931.047 | 2058.337 | 31.196 | 33 |
[86dd33b4] | openbravo | 59.08 | 0.32 | 13866006 | 0.004 | 0.003 | 4.197 | 0.002 | 13866006 |
[3373e588] | openbravo | 58.64 | 0.32 | 23950 | 2094.288 | 2075.516 | 2196.559 | 21.724 | 28 |
[ce4e88c2] | openbravo | 56.27 | 0.30 | 13663285 | 0.004 | 0.003 | 3.858 | 0.002 | 13663285 |
[92975a8e] | openbravo | 47.40 | 0.26 | 23 | 2061.046 | 1158.103 | 11084.423 | 1953.647 | 23 |
[40fd3671] | openbravo | 47.40 | 0.26 | 2060.792 | 1157.757 | 11084.233 | 1953.665 | 23 | |
| Query ID | Database | Executions | %Total | Rows | Mean(ms) | Min(ms) | Max(ms) | StdErr(ms) | Elapsed(s) |
|---|---|---|---|---|---|---|---|---|---|
[2870663b] | openbravo | 13866006 | 23.93 | 13866006 | 0.013 | 0.006 | 4.504 | 0.005 | 178.8 |
[86dd33b4] | openbravo | 13866006 | 23.93 | 13866006 | 0.004 | 0.003 | 4.197 | 0.002 | 59.1 |
[196c6f74] | openbravo | 13866006 | 23.93 | 13866006 | 0.003 | 0.002 | 1.691 | 0.001 | 36.6 |
[ce4e88c2] | openbravo | 13663285 | 23.58 | 13663285 | 0.004 | 0.003 | 3.858 | 0.002 | 56.3 |
[cf182c3a] | openbravo | 337664 | 0.58 | 8595 | 0.026 | 0.007 | 8.149 | 0.053 | 8.7 |
[3cb4d968] | openbravo | 122307 | 0.21 | 122307 | 0.003 | 0.002 | 0.144 | 0.002 | 0.4 |
[b19ed954] | openbravo | 100006 | 0.17 | 100006 | 0.009 | 0.003 | 5.798 | 0.026 | 0.9 |
[8e21a910] | openbravo | 96497 | 0.17 | 96497 | 0.008 | 0.002 | 2.225 | 0.009 | 0.7 |
[6f9b1a85] | openbravo | 78649 | 0.14 | 0.002 | 0.000 | 0.470 | 0.003 | 0.1 | |
[2049516b] | openbravo | 77504 | 0.13 | 0.001 | 0.000 | 0.447 | 0.002 | 0.1 | |
[2e63909b] | openbravo | 75755 | 0.13 | 15366 | 0.005 | 0.003 | 0.900 | 0.005 | 0.4 |
[c78d8d00] | openbravo | 65353 | 0.11 | 65353 | 0.315 | 0.030 | 15.630 | 0.180 | 20.6 |
[e35d0938] | openbravo | 60962 | 0.11 | 60962 | 0.529 | 0.155 | 16.486 | 0.322 | 32.2 |
[c28fb106] | openbravo | 60962 | 0.11 | 60962 | 0.004 | 0.002 | 0.178 | 0.002 | 0.2 |
[db96914] | openbravo | 54444 | 0.09 | 54444 | 0.001 | 0.001 | 0.019 | 0.000 | 0.1 |
[cc474ce1] | openbravo | 54444 | 0.09 | 54444 | 0.001 | 0.001 | 0.019 | 0.000 | 0.0 |
[710731c2] | openbravo | 45100 | 0.08 | 45100 | 0.475 | 0.204 | 4.913 | 0.178 | 21.4 |
[9abf1353] | openbravo | 45100 | 0.08 | 45100 | 0.458 | 0.185 | 4.882 | 0.179 | 20.6 |
[3051ec96] | openbravo | 45002 | 0.08 | 45002 | 0.252 | 0.108 | 221.556 | 2.162 | 11.3 |
[2d3f6bad] | openbravo | 38304 | 0.07 | 38304 | 0.018 | 0.015 | 0.314 | 0.004 | 0.7 |
| Query ID | Database | blks fetched | %Total | Hits(%) | Elapsed(s) | Rows | Executions |
|---|---|---|---|---|---|---|---|
[26c6f357] | openbravo | 2532106470 | 70.48 | 100.00 | 5599.1 | 633580 | 8 |
[a0643fcb] | openbravo | 188851318 | 5.26 | 100.00 | 470.1 | 7835530 | 8 |
[dfbf0ec0] | openbravo | 159398179 | 4.44 | 100.00 | 748.1 | 41 | 201 |
[7d43ad7e] | openbravo | 122342054 | 3.41 | 100.00 | 8795.0 | 13232426 | 8 |
[dab326f6] | openbravo | 75760668 | 2.11 | 100.00 | 206.8 | 5701659 | 8 |
[4f5926de] | openbravo | 49023547 | 1.36 | 100.00 | 127.9 | 2709702 | 8 |
[b0ebb687] | openbravo | 47699223 | 1.33 | 100.00 | 104.9 | 3020896 | 8 |
[2870663b] | openbravo | 41606428 | 1.16 | 100.00 | 178.8 | 13866006 | 13866006 |
[1c821f88] | openbravo | 30490301 | 0.85 | 100.00 | 83.8 | 1510 | 1510 |
[ce4e88c2] | openbravo | 27334980 | 0.76 | 100.00 | 56.3 | 13663285 | 13663285 |
[eb509fc7] | openbravo | 27307375 | 0.76 | 100.00 | 75.5 | 2709654 | 8 |
[3933d71e] | openbravo | 24249983 | 0.68 | 100.00 | 88.0 | 1475 | 239 |
[9c0a6d60] | openbravo | 23290906 | 0.65 | 100.00 | 65.2 | 732 | 33 |
[4c390f69] | openbravo | 21848956 | 0.61 | 100.00 | 205.6 | 5108965 | 8 |
[be089ba] | openbravo | 16433888 | 0.46 | 100.00 | 33.8 | 6 | |
[84642cf4] | openbravo | 14074591 | 0.39 | 100.00 | 32.8 | 48 | 201 |
[196c6f74] | openbravo | 13866006 | 0.39 | 100.00 | 36.6 | 13866006 | 13866006 |
[86dd33b4] | openbravo | 13866006 | 0.39 | 100.00 | 59.1 | 13866006 | 13866006 |
[68af0d51] | openbravo | 11080349 | 0.31 | 100.00 | 20.8 | 6 | |
[3bd25d52] | openbravo | 10422551 | 0.29 | 100.00 | 12.5 | 30308 | 1751 |
| Query ID | Database | Reads | %Total | Hits(%) | Elapsed(s) | Rows | Executions |
|---|---|---|---|---|---|---|---|
[3051ec96] | openbravo | 4633 | 6.67 | 99.62 | 11.3 | 45002 | 45002 |
[4ae26da8] | openbravo | 3509 | 5.05 | 99.02 | 4.1 | 6 | 6 |
[67d29389] | openbravo | 3509 | 5.05 | 99.02 | 4.1 | 6 | 6 |
[adb7202f] | openbravo | 3370 | 4.85 | 99.93 | 13.1 | 2 | |
[c5313281] | openbravo | 3042 | 4.38 | 99.58 | 1.7 | 2 | |
[b76c5e2] | openbravo | 2781 | 4.00 | 95.47 | 1.3 | 1502 | 1502 |
[a852adf9] | openbravo | 2118 | 3.05 | 96.95 | 0.8 | 1420 | 28 |
[e2543c48] | openbravo | 2086 | 3.00 | 98.93 | 2.4 | 1411 | 1411 |
[38c3f6e1] | openbravo | 2076 | 2.99 | 98.63 | 1.3 | 1420 | 28 |
[b34f1d1f] | openbravo | 1739 | 2.50 | 94.74 | 1.4 | 844 | 844 |
[3afdf1db] | openbravo | 1652 | 2.38 | 98.28 | 0.8 | 2301 | 2301 |
[ca50d0e4] | openbravo | 1577 | 2.27 | 97.55 | 0.8 | 870 | 870 |
[f7c054b4] | openbravo | 1525 | 2.20 | 95.21 | 0.9 | 843 | 843 |
[60a12c3a] | openbravo | 1498 | 2.16 | 98.55 | 0.7 | 22 | 22 |
[d37bd6d7] | openbravo | 1277 | 1.84 | 96.89 | 0.7 | 747 | 747 |
[97aab45d] | openbravo | 1228 | 1.77 | 95.53 | 0.9 | 776 | 776 |
[e81c3c12] | openbravo | 1155 | 1.66 | 94.86 | 0.8 | 791 | 791 |
[ee4ba68d] | openbravo | 1149 | 1.65 | 96.98 | 0.5 | 760 | 760 |
[a1b7c5f] | openbravo | 1096 | 1.58 | 98.95 | 1.6 | 1201 | 1201 |
[5d2e4e6c] | openbravo | 1059 | 1.52 | 98.91 | 1.2 | 1201 | 1201 |
| Query ID | Database | Dirtied | %Total | Hits(%) | Elapsed(s) | Rows | Executions |
|---|---|---|---|---|---|---|---|
[3051ec96] | openbravo | 103692 | 24.29 | 99.62 | 11.3 | 45002 | 45002 |
[40fd3671] | openbravo | 18790 | 4.40 | 100.00 | 47.4 | 23 | |
[92975a8e] | openbravo | 18790 | 4.40 | 100.00 | 47.4 | 23 | 23 |
[4ae26da8] | openbravo | 9746 | 2.28 | 99.02 | 4.1 | 6 | 6 |
[67d29389] | openbravo | 9746 | 2.28 | 99.02 | 4.1 | 6 | 6 |
[e2543c48] | openbravo | 8261 | 1.94 | 98.93 | 2.4 | 1411 | 1411 |
[fed47e50] | openbravo | 7848 | 1.84 | 99.98 | 7.2 | 1377 | 1377 |
[38c3f6e1] | openbravo | 7772 | 1.82 | 98.63 | 1.3 | 1420 | 28 |
[b1de800e] | openbravo | 7392 | 1.73 | 99.78 | 0.9 | 4113 | 4113 |
[edb3cd2d] | openbravo | 6181 | 1.45 | 99.84 | 0.5 | 1354 | 26 |
[f1896355] | openbravo | 6020 | 1.41 | 99.70 | 0.9 | 432 | 432 |
[978c2f22] | openbravo | 5560 | 1.30 | 99.72 | 2.5 | 5034 | 5034 |
[fcea205c] | openbravo | 5426 | 1.27 | 99.21 | 0.6 | 1187 | 1187 |
[84a8bcfc] | openbravo | 5170 | 1.21 | 98.80 | 1.0 | 742 | 742 |
[5d2e4e6c] | openbravo | 5145 | 1.21 | 98.91 | 1.2 | 1201 | 1201 |
[a1b7c5f] | openbravo | 5021 | 1.18 | 98.95 | 1.6 | 1201 | 1201 |
[3afdf1db] | openbravo | 4557 | 1.07 | 98.28 | 0.8 | 2301 | 2301 |
[b34f1d1f] | openbravo | 4557 | 1.07 | 94.74 | 1.4 | 844 | 844 |
[b76c5e2] | openbravo | 4261 | 1.00 | 95.47 | 1.3 | 1502 | 1502 |
[ddcc675a] | openbravo | 4177 | 0.98 | 99.37 | 0.8 | 273 | 273 |
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 | 17772774 | 76.81 | 34926882 | 89.23 | 8795.0 | 13232426 | 8 | ||||||
[dfbf0ec0] | openbravo | 3393364 | 14.66 | 2282945 | 5.83 | 748.1 | 41 | 201 | ||||||
[dab326f6] | openbravo | 1131883 | 4.89 | 1132507 | 2.89 | 206.8 | 5701659 | 8 | ||||||
[3373e588] | openbravo | 258191 | 1.12 | 258359 | 0.66 | 58.6 | 23950 | 28 | ||||||
[be51200d] | openbravo | 243428 | 1.05 | 243344 | 0.62 | 39.0 | 1624 | 84 | ||||||
[4c390f69] | openbravo | 159397 | 0.69 | 159493 | 0.41 | 205.6 | 5108965 | 8 | ||||||
[1596f0d4] | openbravo | 100404 | 0.43 | 58053 | 0.15 | 19.4 | 120 | 3 | ||||||
[61e8ee09] | openbravo | 70481 | 0.30 | 70479 | 0.18 | 23.7 | 50 | 2 | ||||||
[25bcd965] | openbravo | 9705 | 0.04 | 9711 | 0.02 | 4.2 | 848 | 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) |
| 4afd055f76 | SELECT CASE WHEN $2.typtype = $3 THEN $2.typbasetype ELSE $1.atttypid END |
| 102454699d | select businesspa0_.EM_OBSMAIL_INVOICEVIAEMAIL as col_0_0_, businesspa0_.EM_Gcnv_Uniquecreditnote as col_1_0_, businesspa0_.C_BPartner_ID as col_2_0_, businesspa0_.AD_Org_ID as col_3_0_, businesspa0_.Name as col_4_0_, businesspa0_.Name as col_5_0_, businesspa0_.Value as col_6_0_, businesspa0_.Description as col_7_0_, businesspa0_.TaxID as col_8_0_, businesspa0_.SO_Bp_Taxcategory_ID as col_9_0_, businesspa0_.M_PriceList_ID as col_10_0_, businesspa0_.FIN_Paymentmethod_ID as col_11_0_, businesspa0_.C_PaymentTerm_ID as col_12_0_, businesspa0_.InvoiceRule as col_13_0_, aduserlist4_.Email as col_14_0_, aduserlist4_.AD_User_ID as col_15_0_, aduserlist4_.Phone as col_16_0_, aduserlist4_.Phone2 as col_17_0_, coalesce(aduserlist4_.Firstname, aduserlist4_.Name, businesspa0_.Name) as col_18_0_, aduserlist4_.Lastname as col_19_0_, pricingpri1_.IsTaxIncluded as col_20_0_, pricingpri1_.C_Currency_ID as col_21_0_, pricingpri1_.Name as col_22_0_, businesspa0_.C_BP_Group_ID as col_23_0_, businesspa5_.Name as col_24_0_, businesspa0_.SO_CreditLimit as col_25_0_, businesspa0_.SO_CreditUsed as col_26_0_, businesspa0_.IsTaxExempt as col_27_0_, businesspa0_.Customer_Blocking as col_28_0_, businesspa0_.SO_Order_Blocking as col_29_0_, businesspa0_.Birthday as col_30_0_, businesspa0_.Birthplace as col_31_0_, businesspa0_.IsActive as col_32_0_, businesspa0_.Is_Customer_Consent as col_33_0_, businesspa0_.Is_Customer_Consent_PapFormat as col_34_0_, adlanguage2_.AD_Language as col_35_0_, adlanguage2_.Name as col_36_0_, greeting3_.C_Greeting_ID as col_37_0_, greeting3_.Name as col_38_0_, aduserlist4_.Comments as col_39_0_, businesspa0_.SO_CreditLimit-businesspa0_.SO_CreditUsed as col_40_0_, aduserlist4_.Commercialauth as col_41_0_, aduserlist4_.Viaemail as col_42_0_, aduserlist4_.Viasms as col_43_0_, businesspa0_.business_partner_type as col_44_0_, businesspa0_.BP_Currency_ID as col_45_0_, businesspa0_.SO_Creditminamt as col_46_0_, now() as col_47_0_ from C_BPartner businesspa0_ inner join M_PriceList pricingpri1_ on businesspa0_.M_PriceList_ID=pricingpri1_.M_PriceList_ID left outer join AD_Language adlanguage2_ on businesspa0_.AD_Language=adlanguage2_.AD_Language left outer join C_Greeting greeting3_ on businesspa0_.C_Greeting_ID=greeting3_.C_Greeting_ID left outer join AD_User aduserlist4_ on businesspa0_.C_BPartner_ID=aduserlist4_.C_BPartner_ID cross join C_BP_Group businesspa5_ where businesspa0_.C_BP_Group_ID=businesspa5_.C_BP_Group_ID and $8=$9 and businesspa0_.IsCustomer=$10 and (businesspa0_.AD_Client_ID in ($11 , $12)) and (businesspa0_.AD_Org_ID in ($1 , $2 , $3 , $4 , $5 , $6)) and businesspa0_.IsActive=$13 and (aduserlist4_.AD_User_ID in (select aduser6_.AD_User_ID from AD_User aduser6_ where aduser6_.EM_OBRETCO_Default_Pos_Contact=$14 and aduser6_.C_BPartner_ID=businesspa0_.C_BPartner_ID)) and $15=$16 group by businesspa0_.EM_OBSMAIL_INVOICEVIAEMAIL , businesspa0_.EM_Gcnv_Uniquecreditnote , businesspa0_.C_BPartner_ID , businesspa0_.AD_Org_ID , businesspa0_.Name , businesspa0_.Name , businesspa0_.Value , businesspa0_.Description , businesspa0_.TaxID , businesspa0_.SO_Bp_Taxcategory_ID , businesspa0_.M_PriceList_ID , businesspa0_.FIN_Paymentmethod_ID , businesspa0_.C_PaymentTerm_ID , businesspa0_.InvoiceRule , aduserlist4_.Email , aduserlist4_.AD_User_ID , aduserlist4_.Phone , aduserlist4_.Phone2 , coalesce(aduserlist4_.Firstname, aduserlist4_.Name, businesspa0_.Name) , aduserlist4_.Lastname , pricingpri1_.IsTaxIncluded , pricingpri1_.C_Currency_ID , pricingpri1_.Name , businesspa0_.C_BP_Group_ID , businesspa5_.Name , businesspa0_.SO_CreditLimit , businesspa0_.SO_CreditUsed , businesspa0_.IsTaxExempt , businesspa0_.Customer_Blocking , businesspa0_.SO_Order_Blocking , businesspa0_.Birthday , businesspa0_.Birthplace , businesspa0_.IsActive , businesspa0_.Is_Customer_Consent , businesspa0_.Is_Customer_Consent_PapFormat , adlanguage2_.AD_Language , adlanguage2_.Name , greeting3_.C_Greeting_ID , greeting3_.Name , aduserlist4_.Comments , businesspa0_.SO_CreditLimit-businesspa0_.SO_CreditUsed , aduserlist4_.Commercialauth , aduserlist4_.Viaemail , aduserlist4_.Viasms , businesspa0_.business_partner_type , businesspa0_.BP_Currency_ID , businesspa0_.SO_Creditminamt , now() having $17=$18 order by businesspa0_.C_BPartner_ID limit $7 |
| 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) |
| d51f6611c2 | 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 |
| 9455753479 | COMMIT |
| 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 |
| c8a950bd0d | SELECT TO_CHAR(COALESCE(TO_CHAR(T.Name),$1)) AS COLUMN_IDENTIFIER FROM (SELECT AD_LANGUAGE FROM AD_LANGUAGE WHERE AD_LANGUAGE=$2) L, M_Characteristic T WHERE M_Characteristic_ID=$3 |
| 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 ) |
| 3a2c9ad99b | 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 ) |
| 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) |
| 3ad5b7fed4 | SELECT UPPER(a.ATTNAME::TEXT), UPPER(t.TYPNAME::TEXT), CASE t.TYPNAME WHEN $2::name THEN a.atttypmod - $3 WHEN $4::name THEN a.atttypmod - $5 ELSE $6::integer END, CASE t.TYPNAME WHEN $7::name THEN $8 WHEN $9::name THEN $10 WHEN $11::name THEN $12 ELSE CASE a.ATTLEN WHEN $13 THEN a.ATTTYPMOD - $14 ELSE a.ATTLEN END END, CASE t.typname WHEN $15::name THEN $16 WHEN $17::name THEN $18 WHEN $19::name THEN $20 ELSE CASE atttypmod WHEN $21 THEN $22 ELSE coalesce(numeric_precision, $23) END END, coalesce(numeric_scale, $24), not a.attnotnull, CASE a.atthasdef WHEN $25 THEN (SELECT pg_get_expr(adbin, adrelid) FROM pg_attrdef WHERE pg_attrdef.adrelid = c.oid AND pg_attrdef.adnum = a.attnum) ELSE $26::text END, col_description(c.oid,isc.ordinal_position) FROM pg_class c JOIN pg_attribute a ON c.oid = a.attrelid JOIN pg_type t ON a.atttypid = t.oid JOIN pg_namespace n ON c.relnamespace = n.oid LEFT JOIN information_schema.columns isc on isc.table_name = c.relname AND isc.column_name = a.attname WHERE n.nspname = current_schema() AND a.attnum > $27 AND c.relname = $1 ORDER BY a.attnum |
| 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) |
| 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 ) "_" |
| 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) |
| c5a2827c73 | SELECT count(*) FROM aprm_finacc_transaction_v inner join fin_finacc_transaction ON aprm_finacc_transaction_v.aprm_finacc_transaction_v_id = fin_finacc_transaction.fin_finacc_transaction_id WHERE aprm_finacc_transaction_v.fin_financial_account_id=$1 |
| 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) |
| 93a759b1da | BEGIN |
| ebe11b089e | SELECT retstk_basic_json_lang(p_tablename, p_record_id, $3) |
| 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 |
| a89f0eb5f9 | 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, $9) 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=$10), 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, $11) as col_12_0_, coalesce(region3_.C_Region_ID, $12) 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 $13 end||location2_.Address2), location2_.Address1, location2_.Address2, location2_.Postal, location2_.City) as col_16_0_, case when businesspa0_.IsActive=$14 and businesspa1_.IsActive=$15 then $16 else $17 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 $18=$19 and businesspa1_.IsCustomer=$20 and (businesspa1_.M_PriceList_ID is not null) and businesspa0_.IsActive=$21 and businesspa1_.IsActive=$22 and (businesspa0_.AD_Client_ID in ($23 , $24)) and (businesspa0_.AD_Org_ID in ($1 , $2 , $3 , $4 , $5 , $6)) and businesspa0_.C_BPartner_Location_ID>$7 order by businesspa0_.C_BPartner_Location_ID limit $8 |
| 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) |
| e0fba79faa | 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) ) |
| 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) |
| 2e2f56a414 | SELECT row_to_json(f) FROM (SELECT coalesce(p_record_id,$3) as id, coalesce(ad_column_identifier_std(p_tablename, p_record_id), $4) as identifier FROM dual) as f |
| 61aed5765c | select businesspa0_.C_BPartner_Location_ID as col_0_0_, businesspa1_.C_BPartner_ID as col_1_0_, coalesce(location2_.Address1, location2_.Postal, location2_.City, businesspa0_.Name) as col_2_0_, coalesce(location2_.Address2, $11) as col_3_0_, location2_.Postal as col_4_0_, location2_.City as col_5_0_, coalesce((select countrytrl4_.Name from C_Country_Trl countrytrl4_ where countrytrl4_.C_Country_ID=location2_.C_Country_ID and countrytrl4_.AD_Language=$12), country5_.Name) as col_6_0_, location2_.C_Country_ID as col_7_0_, businesspa0_.IsBillTo as col_8_0_, businesspa0_.IsShipTo as col_9_0_, businesspa0_.Isdefault_Shipto as col_10_0_, businesspa0_.Isdefault_Billto as col_11_0_, coalesce(region3_.Name, $13) as col_12_0_, coalesce(region3_.C_Region_ID, $14) as col_13_0_, businesspa0_.Created as col_14_0_, businesspa0_.Updated as col_15_0_, coalesce((location2_.Address1||case when location2_.Address2 is not null then $15 end||location2_.Address2), location2_.Address1, location2_.Address2, location2_.Postal, location2_.City) as col_16_0_, case when businesspa0_.IsActive=$16 and businesspa1_.IsActive=$17 then $18 else $19 end as col_17_0_, now() as col_18_0_ from C_BPartner_Location businesspa0_ inner join C_BPartner businesspa1_ on businesspa0_.C_BPartner_ID=businesspa1_.C_BPartner_ID left outer join C_Location location2_ on businesspa0_.C_Location_ID=location2_.C_Location_ID left outer join C_Region region3_ on location2_.C_Region_ID=region3_.C_Region_ID cross join C_Country country5_ where location2_.C_Country_ID=country5_.C_Country_ID and $20=$21 and businesspa1_.IsCustomer=$22 and (businesspa1_.M_PriceList_ID is not null) and (businesspa0_.Updated>$1 or businesspa1_.Updated>$2 or location2_.Updated>$3) and (businesspa0_.AD_Client_ID in ($23 , $24)) and (businesspa0_.AD_Org_ID in ($4 , $5 , $6 , $7 , $8 , $9)) and $25=$26 order by businesspa0_.C_BPartner_Location_ID limit $10 |
| 3f546d3e2b | select "_"."c_orderline_id" as "c_orderline_id", "_"."c_order_id" as "c_order_id", "_"."ad_org_id" as "ad_org_id", "_"."isactive" as "Actif", "_"."issotrx" as "issotrx", "_"."c_bpartner_id" as "c_bpartner_id", "_"."c_currency_id" as "c_currency_id", "_"."m_product_id" as "m_product_id", "_"."m_warehouse_id" as "m_warehouse_id", "_"."m_product_category_id" as "m_product_category_id", "_"."line" as "line", cast("_"."Fecha Pedido" as date) as "Date Commande", cast("_"."Fecha Comprometida" as date) as "Date de livraison engagée", cast("_"."Fecha Enviada" as date) as "Fecha Enviada", "_"."Descripción" as "Description ligne", "_"."Cantidad Pedido" as "Qté vendue", "_"."Precio Lista" as "Prix List", "_"."Precio Actual" as "Prix Actuel", "_"."Precio Limite" as "Prix Limite", "_"."Importe Linea" as "Montant net ligne", "_"."Importe TTC" as "Importe TTC", "_"."Descuento" as "€ Remise", "_"."Cantidad Recibida" as "Quantite reçue", cast("_"."Fecha Recepción" as date) as "Fecha Recepción", cast("_"."bp_created" as date) as "bp_created", "_"."bp_country" as "bp_country", "_"."isdelivered" as "isdelivered" from ( SELECT OL.c_orderline_id , OL.c_order_id , (case when cd.isreturn = $1 then O.ad_orgtrx_id else OL.ad_org_id end) ad_org_id , OL.isactive , O.issotrx , OL.c_bpartner_id , OL.c_currency_id , OL.m_product_id , OL.m_warehouse_id , P.m_product_category_id , OL.line , OL.dateordered as "Fecha Pedido" , OL.datepromised as "Fecha Comprometida" , OL.datedelivered as "Fecha Enviada" , OL.description as "Descripción" , OL.qtyordered "Cantidad Pedido" , OL.pricelist "Precio Lista" , OL.priceactual "Precio Actual" , OL.pricelimit "Precio Limite" , OL.linenetamt "Importe Linea" , OL.line_gross_amount "Importe TTC" , OL.discount as "Descuento" , (SELECT SUM(movementqty) FROM m_inoutline IOL WHERE IOL.c_orderline_id = OL.c_orderline_id) as "Cantidad Recibida" , (SELECT MAX(movementdate) FROM m_inoutline IOL INNER JOIN m_inout IO on IO.m_inout_id = IOL.m_inout_id WHERE IOL.c_orderline_id = OL.c_orderline_id) as "Fecha Recepción" , BP.created as "bp_created" , (select cc.name from c_bpartner_location cbl inner join c_location cl on cbl.c_location_id = cl.c_location_id left join c_country cc on cc.c_country_id = cl.c_country_id where cbl.c_bpartner_id = BP.c_bpartner_id limit $2) as bp_country , O.isdelivered FROM c_orderline OL LEFT JOIN c_order O on O.c_order_id = OL.c_order_id left join c_doctype cd on O.c_doctype_id = cd.c_doctype_id LEFT JOIN m_product P on P.m_product_id = OL.m_product_id LEFT JOIN c_bpartner BP on BP.c_bpartner_id = O.c_bpartner_id WHERE $3=$4 AND O.issotrx = $5 AND OL.dateordered >= CURRENT_DATE - INTERVAL $6 ) "_" |
| 017d00aa12 | insert into c_invoicelinetax (c_invoicelinetax_id, c_tax_id, c_invoice_id, c_invoiceline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, taxbaseamt, taxamt, line, recalculate) select get_uuid(), olt.c_tax_id, i.c_invoice_id, il.c_invoiceline_id, i.ad_client_id, i.ad_org_id, $2, i.created, i.createdby, i.updated, i.updatedby, olt.taxbaseamt, olt.taxamt, olt.line, $4 from c_order o, c_orderline ol, c_orderlinetax olt, c_invoice i, c_invoiceline il where o.c_order_id = ol.c_order_id and ol.c_orderline_id = olt.c_orderline_id and ol.c_orderline_id = il.c_orderline_id and il.c_invoice_id = i.c_invoice_id and i.documentno = $1 and i.c_bpartner_id = o.c_bpartner_id and i.c_bpartner_location_id = coalesce(o.billto_id, o.c_bpartner_location_id) and coalesce(i.ad_user_id, $6) = coalesce(o.ad_user_id, $7) |
| cee3b65d37 | select order0_.C_Order_ID as col_0_0_, documentty1_.C_DocType_ID as col_1_0_, order0_.DocStatus as col_2_0_, order0_.DocumentNo as col_3_0_, order0_.Created as col_4_0_, order0_.DateOrdered as col_5_0_, order0_.DateOrdered as col_6_0_, order0_.DateOrdered as col_7_0_, businesspa2_.C_BPartner_ID as col_8_0_, businesspa2_.Name as col_9_0_, order0_.GrandTotal as col_10_0_, order0_.GrandTotal as col_11_0_, order0_.GrandTotal as col_12_0_, order0_.Iscancelled as col_13_0_, organizati3_.AD_Org_ID as col_14_0_, organizati3_.Value as col_15_0_, organizati3_.Name as col_16_0_, organizati5_.AD_Org_ID as col_17_0_, organizati5_.Name as col_18_0_, order0_.IsDelivered as col_19_0_, order0_.BPartner_ExtRef as col_20_0_, (select coalesce(max(orderline6_.EM_Obrdm_Delivery_Mode), $4) from C_OrderLine orderline6_ where order0_.C_Order_ID=orderline6_.C_Order_ID and orderline6_.EM_Obpos_Isdeleted=$5) as col_21_0_, (select min(case when orderline7_.EM_Obrdm_Delivery_Date is null or orderline7_.EM_Obrdm_Delivery_Time is null then $6 else to_timestamp((to_char(orderline7_.EM_Obrdm_Delivery_Date, $7)||$8||to_char(orderline7_.EM_Obrdm_Delivery_Date, $9)||$10||to_char(orderline7_.EM_Obrdm_Delivery_Date, $11)||$12||to_char(orderline7_.EM_Obrdm_Delivery_Time, $13)||$14||to_char(orderline7_.EM_Obrdm_Delivery_Time, $15)), $16) end) from C_OrderLine orderline7_ where order0_.C_Order_ID=orderline7_.C_Order_ID) as col_22_0_, case when documentty1_.C_DocType_ID=organizati3_.EM_Gcnv_C_Doctypegcard_ID then $17 else case when documentty1_.IsReturn=$18 then $19 when documentty1_.DocSubTypeSO=$20 then $21 when order0_.EM_Obpos_Islayaway=$22 then $23 else $24 end end as col_23_0_, (select array_to_string(array_agg(distinct invoice11_.DocumentNo), $25) from C_InvoiceLine invoicelin10_ inner join C_Invoice invoice11_ on invoicelin10_.C_Invoice_ID=invoice11_.C_Invoice_ID inner join C_OrderLine orderline12_ on invoicelin10_.C_OrderLine_ID=orderline12_.C_OrderLine_ID inner join C_Order order13_ on orderline12_.C_Order_ID=order13_.C_Order_ID where order13_.C_Order_ID=order0_.C_Order_ID) as col_24_0_, order0_.InvoiceRule as col_25_0_, order0_.EM_Prpgr_Ticketno as col_26_0_ from C_Order order0_ inner join C_DocType documentty1_ on order0_.C_DocType_ID=documentty1_.C_DocType_ID inner join C_BPartner businesspa2_ on order0_.C_BPartner_ID=businesspa2_.C_BPartner_ID inner join AD_Org organizati3_ on order0_.AD_Org_ID=organizati3_.AD_Org_ID inner join OBPOS_APPLICATIONS obpos_appl4_ on order0_.EM_Obpos_Applications_ID=obpos_appl4_.Obpos_Applications_ID left outer join AD_Org organizati5_ on order0_.AD_OrgTrx_ID=organizati5_.AD_Org_ID where (upper((select array_to_string(array_agg(distinct invoice15_.DocumentNo), $26) from C_InvoiceLine invoicelin14_ inner join C_Invoice invoice15_ on invoicelin14_.C_Invoice_ID=invoice15_.C_Invoice_ID inner join C_OrderLine orderline16_ on invoicelin14_.C_OrderLine_ID=orderline16_.C_OrderLine_ID inner join C_Order order17_ on orderline16_.C_Order_ID=order17_.C_Order_ID where order17_.C_Order_ID=order0_.C_Order_ID)) like upper($1)) and $27=$28 and order0_.AD_Client_ID=$29 and order0_.AD_OrgTrx_ID=$2 and order0_.EM_Obpos_Isdeleted=$30 and (order0_.DocStatus not in ($31 , $32 , $33 , $34 , $35)) and (order0_.DocStatus<>$36 or order0_.Iscancelled=$37) order by col_4_0_ desc, col_3_0_ desc limit $3 |
| 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,$1) FROM AD_CLIENT WHERE ad_client_id=$2 |
| d94df8c714 | INSERT INTO AD_TreeNode ( ad_treeNode_Id, AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo ) SELECT get_uuid(), a.ad_client_id, a.ad_org_id, a.isactive, now(), $3, now(), $5, (SELECT ad_tree_id from ad_tree where treetype = $1 AND ad_tree.ad_client_id = a.ad_client_id) AS treeID, a.C_BPartner_id, $7, $9 FROM C_BPartner a WHERE NOT EXISTS (SELECT $10 FROM AD_TREENODE tn INNER JOIN AD_TREE t ON (t.ad_tree_id=tn.ad_tree_id) WHERE t.treetype = $2 AND $11=$12 AND a.C_BPartner_id = tn.node_id) |
| d1e21ddf3e | SELECT REPLACE(REPLACE(SQL_RECORD_IDENTIFIER, $4, $5 || p_Language || $6), $7, p_Record_ID) FROM AD_TABLE WHERE UPPER(TABLENAME)=UPPER(p_TableName) |
| 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 ) |
| 41ed5172b0 | SELECT CASE WHEN $2.typtype = $3 THEN $2.typtypmod ELSE $1.atttypmod END |
| d3dcdac298 | SELECT AD_LEGALENTITY_ORG_ID FROM AD_Org WHERE AD_Org_ID = p_org_id |
| 19825253ef | select c_import_e0_.C_IMPORT_ENTRY_ID as c_import1_236_, c_import_e0_.AD_Client_ID as ad_clien2_236_, c_import_e0_.AD_Org_ID as ad_org_i3_236_, c_import_e0_.Isactive as isactive4_236_, c_import_e0_.Created as created5_236_, c_import_e0_.Createdby as createdb6_236_, c_import_e0_.Updated as updated7_236_, c_import_e0_.Updatedby as updatedb8_236_, c_import_e0_.Imported as imported9_236_, c_import_e0_.Jsoninfo as jsoninf10_236_, c_import_e0_.ImportStatus as imports11_236_, c_import_e0_.Typeofdata as typeofd12_236_, c_import_e0_.Errorinfo as errorin13_236_, c_import_e0_.AD_Role_ID as ad_role14_236_, c_import_e0_.Createdtimestamp as created15_236_, c_import_e0_.EM_Obpos_Applications_ID as em_obpo16_236_, c_import_e0_.Responseinfo as respons17_236_, c_import_e0_.Isnonblocking as isnonbl18_236_ from C_IMPORT_ENTRY c_import_e0_ where c_import_e0_.Typeofdata=$1 and c_import_e0_.ImportStatus='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) |
| 2841013087 | 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 ) "_" |
| 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) |
| d11440f550 | select businesspa0_.EM_OBSMAIL_INVOICEVIAEMAIL as col_0_0_, businesspa0_.EM_Gcnv_Uniquecreditnote as col_1_0_, businesspa0_.C_BPartner_ID as col_2_0_, businesspa0_.AD_Org_ID as col_3_0_, businesspa0_.Name as col_4_0_, businesspa0_.Name as col_5_0_, businesspa0_.Value as col_6_0_, businesspa0_.Description as col_7_0_, businesspa0_.TaxID as col_8_0_, businesspa0_.SO_Bp_Taxcategory_ID as col_9_0_, businesspa0_.M_PriceList_ID as col_10_0_, businesspa0_.FIN_Paymentmethod_ID as col_11_0_, businesspa0_.C_PaymentTerm_ID as col_12_0_, businesspa0_.InvoiceRule as col_13_0_, aduserlist4_.Email as col_14_0_, aduserlist4_.AD_User_ID as col_15_0_, aduserlist4_.Phone as col_16_0_, aduserlist4_.Phone2 as col_17_0_, coalesce(aduserlist4_.Firstname, aduserlist4_.Name, businesspa0_.Name) as col_18_0_, aduserlist4_.Lastname as col_19_0_, pricingpri1_.IsTaxIncluded as col_20_0_, pricingpri1_.C_Currency_ID as col_21_0_, pricingpri1_.Name as col_22_0_, businesspa0_.C_BP_Group_ID as col_23_0_, businesspa5_.Name as col_24_0_, businesspa0_.SO_CreditLimit as col_25_0_, businesspa0_.SO_CreditUsed as col_26_0_, businesspa0_.IsTaxExempt as col_27_0_, businesspa0_.Customer_Blocking as col_28_0_, businesspa0_.SO_Order_Blocking as col_29_0_, businesspa0_.Birthday as col_30_0_, businesspa0_.Birthplace as col_31_0_, businesspa0_.IsActive as col_32_0_, businesspa0_.Is_Customer_Consent as col_33_0_, businesspa0_.Is_Customer_Consent_PapFormat as col_34_0_, adlanguage2_.AD_Language as col_35_0_, adlanguage2_.Name as col_36_0_, greeting3_.C_Greeting_ID as col_37_0_, greeting3_.Name as col_38_0_, aduserlist4_.Comments as col_39_0_, businesspa0_.SO_CreditLimit-businesspa0_.SO_CreditUsed as col_40_0_, aduserlist4_.Commercialauth as col_41_0_, aduserlist4_.Viaemail as col_42_0_, aduserlist4_.Viasms as col_43_0_, businesspa0_.business_partner_type as col_44_0_, businesspa0_.BP_Currency_ID as col_45_0_, businesspa0_.SO_Creditminamt as col_46_0_, now() as col_47_0_ from C_BPartner businesspa0_ inner join M_PriceList pricingpri1_ on businesspa0_.M_PriceList_ID=pricingpri1_.M_PriceList_ID left outer join AD_Language adlanguage2_ on businesspa0_.AD_Language=adlanguage2_.AD_Language left outer join C_Greeting greeting3_ on businesspa0_.C_Greeting_ID=greeting3_.C_Greeting_ID left outer join AD_User aduserlist4_ on businesspa0_.C_BPartner_ID=aduserlist4_.C_BPartner_ID cross join C_BP_Group businesspa5_ where businesspa0_.C_BP_Group_ID=businesspa5_.C_BP_Group_ID and $9=$10 and businesspa0_.IsCustomer=$11 and (businesspa0_.AD_Client_ID in ($12 , $13)) and (businesspa0_.AD_Org_ID in ($1 , $2 , $3 , $4 , $5 , $6)) and businesspa0_.IsActive=$14 and (aduserlist4_.AD_User_ID in (select aduser6_.AD_User_ID from AD_User aduser6_ where aduser6_.EM_OBRETCO_Default_Pos_Contact=$15 and aduser6_.C_BPartner_ID=businesspa0_.C_BPartner_ID)) and businesspa0_.C_BPartner_ID>$7 group by businesspa0_.EM_OBSMAIL_INVOICEVIAEMAIL , businesspa0_.EM_Gcnv_Uniquecreditnote , businesspa0_.C_BPartner_ID , businesspa0_.AD_Org_ID , businesspa0_.Name , businesspa0_.Name , businesspa0_.Value , businesspa0_.Description , businesspa0_.TaxID , businesspa0_.SO_Bp_Taxcategory_ID , businesspa0_.M_PriceList_ID , businesspa0_.FIN_Paymentmethod_ID , businesspa0_.C_PaymentTerm_ID , businesspa0_.InvoiceRule , aduserlist4_.Email , aduserlist4_.AD_User_ID , aduserlist4_.Phone , aduserlist4_.Phone2 , coalesce(aduserlist4_.Firstname, aduserlist4_.Name, businesspa0_.Name) , aduserlist4_.Lastname , pricingpri1_.IsTaxIncluded , pricingpri1_.C_Currency_ID , pricingpri1_.Name , businesspa0_.C_BP_Group_ID , businesspa5_.Name , businesspa0_.SO_CreditLimit , businesspa0_.SO_CreditUsed , businesspa0_.IsTaxExempt , businesspa0_.Customer_Blocking , businesspa0_.SO_Order_Blocking , businesspa0_.Birthday , businesspa0_.Birthplace , businesspa0_.IsActive , businesspa0_.Is_Customer_Consent , businesspa0_.Is_Customer_Consent_PapFormat , adlanguage2_.AD_Language , adlanguage2_.Name , greeting3_.C_Greeting_ID , greeting3_.Name , aduserlist4_.Comments , businesspa0_.SO_CreditLimit-businesspa0_.SO_CreditUsed , aduserlist4_.Commercialauth , aduserlist4_.Viaemail , aduserlist4_.Viasms , businesspa0_.business_partner_type , businesspa0_.BP_Currency_ID , businesspa0_.SO_Creditminamt , now() having $16=$17 order by businesspa0_.C_BPartner_ID limit $8 |
| 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) |
| 37386bc419 | SELECT AD_COLUMN_IDENTIFIER(p_TableName, p_Record_ID, v_Language ) FROM DUAL |
| 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) |
| f398687456 | insert into C_Order (AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, IsSOTrx, DocumentNo, DocStatus, DocAction, Processing, Processed, C_DocType_ID, C_DocTypeTarget_ID, Description, IsDelivered, IsInvoiced, IsPrinted, IsSelected, SalesRep_ID, DateOrdered, DatePromised, DateAcct, C_BPartner_ID, BillTo_ID, C_BPartner_Location_ID, IsDiscountPrinted, C_Currency_ID, PaymentRule, C_PaymentTerm_ID, InvoiceRule, DeliveryRule, FreightCostRule, DeliveryViaRule, ChargeAmt, PriorityRule, TotalLines, GrandTotal, M_Warehouse_ID, M_PriceList_ID, IsTaxIncluded, Posted, AD_User_ID, CopyFrom, IsSelfService, AD_OrgTrx_ID, Generatetemplate, CopyFromPO, FIN_Paymentmethod_ID, RM_PickFromShipment, RM_ReceiveMaterials, RM_CreateInvoice, RM_AddOrphanLine, Calculate_Promotions, Convertquotation, Create_POLines, EM_Obdisc_Addpack, Iscashvat, EM_OBMFM_Selectfreight, RM_Pickfromreceipt, Cancelandreplace, EM_APRM_AddPayment, Confirmcancelandreplace, EM_Obwpl_Generatepicking, EM_Obwpl_Isinpickinglist, EM_Fash_Sendbeforedate, EM_Obwpl_Readypl, EM_Poss_Businessdate, Iscancelled, EM_OBMFM_Set_Weight, EM_Obpos_Applications_ID, EM_Obpos_Sendemail, EM_Obpos_App_Cashup_ID, EM_Obpos_Createdabsolute, EM_OBPOS_NotInvoiceOnCashUp, EM_Obpos_Isdeleted, EM_Obpos_Islayaway, EM_Obpos_Prepaymentamt, EM_Obpos_Prepaymentlimitamt, EM_Obpos_Prepaymentlaylimitamt, EM_Obpos_Rounding_Amount, EM_Obpos_Sequencename, EM_Obpos_Sequencenumber, EM_Prpp_Generatepicking, EM_Api_Resend, EM_Prouti_Order_Stock, EM_Prouti_Pregenerate_Minout, EM_Prouti_Sotopo, EM_Prouti_Generate_Pick_Inv, EM_Prouti_Changebpartner, EM_Prouti_Recalculate_Price, EM_Prouti_Reactiveorder, EM_Izi_Exported, EM_Izijoy_Export_Enjoy, EM_Izi_Splio_Exported, em_prouti_Invoiced, em_prouti_Received, em_prouti_initial_received, EM_Prouti_Status_Of_Review, EM_Prouti_Validate_Order, EM_Prouti_Start_Review, EM_Obpos_Skip_Tax_Calculation, EM_Prouti_Addlines_Btn, EM_Avisver_Export, EM_Prouti_Select_Soline, EM_Prgr_Assign, C_Order_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40, $41, $42, $43, $44, $45, $46, $47, $48, $49, $50, $51, $52, $53, $54, $55, $56, $57, $58, $59, $60, $61, $62, $63, $64, $65, $66, $67, $68, $69, $70, $71, $72, $73, $74, $75, $76, $77, $78, $79, $80, $81, $82, $83, $84, $85, $86, $87, $88, $89, $90, $91, $92, $93, $94, $95, $96, $97, $98, $99, $100, $101, $102, $103, $104, $105, $106, $107, $108) |
| 70caf7bb1e | insert into OBCFR_TicketTax (AD_Client_ID, AD_Org_ID, Isactive, Created, Createdby, Updated, Updatedby, Obcfr_Ticket_ID, Obpos_Applications_ID, Taxrate, Taxbase, Taxamt, Prevhash, Hash, Hashtime, Documentno, Terminal, Seqno, Export, Obcfr_Tickettax_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20) |
| fe62dd3708 | INSERT INTO m_stock_proposed ( m_stock_proposed_id, ad_client_id, ad_org_id, isactive, created , createdby, updated, updatedby, ad_pinstance_id, priority, m_storage_detail_id, quantity, qtyorder, isfinal ) VALUES ( get_uuid(), v_ClientID, v_OrgID, '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_order | 85 GB | 93 | 10159458 | 49315866 | 844 | 791 | 52 | |
| c_order(TOAST) | |||||||||||
| openbravo | pg_default | public | ad_user | 30 GB | 282 | 40494610 | 40499116 | 271 | 311 | 264 | |
| ad_user(TOAST) | |||||||||||
| openbravo | pg_default | public | c_bpartner | 29 GB | 176 | 1612811 | 21043525 | 274 | 22 | 1 | |
| c_bpartner(TOAST) | |||||||||||
| openbravo | pg_default | public | ad_table | 16 GB | 15209 | 13137 | 22826 | 971 | 2 | ||
| ad_table(TOAST) | |||||||||||
| openbravo | pg_default | public | fin_payment | 15 GB | 24 | 18978 | 18875 | 810 | 2486 | 713 | |
| fin_payment(TOAST) | |||||||||||
| openbravo | pg_default | public | ad_column | 14 GB | 2180 | 115182 | 2842602 | 40 | 35 | ||
| ad_column(TOAST) | |||||||||||
| openbravo | pg_default | public | ad_orgtype | 13 GB | 1732006 | 81 | 81 | ||||
| openbravo | pg_default | public | fin_payment_schedule | 10 GB | 24 | 5726523 | 6048859 | 1240 | 1237 | 9 | 190 |
| fin_payment_schedule(TOAST) | |||||||||||
| openbravo | pg_default | public | m_transaction | 8616 MB | 14 | 200614 | 480934 | 2375 | |||
| m_transaction(TOAST) | |||||||||||
| openbravo | pg_default | pg_catalog | pg_class | 8227 MB | 8990 | 1373289 | 1100377 | 166 | 640 | 169 | 510 |
| openbravo | pg_default | public | m_inout | 7443 MB | 17 | 516691896 | 516692555 | 827 | 860 | 23 | |
| m_inout(TOAST) | 4342 | 66079 | 252 | 61 | |||||||
| openbravo | pg_default | public | m_product | 5271 MB | 918 | 3213074 | 3641886 | ||||
| m_product(TOAST) | |||||||||||
| openbravo | pg_default | profile | last_stat_database | 4807 MB | 123066 | 92 | 92 | ||||
| openbravo | pg_default | public | c_invoice | 3914 MB | 15 | 269456 | 606852 | 446 | 504 | ||
| c_invoice(TOAST) | |||||||||||
| openbravo | pg_default | public | m_inoutline | 3904 MB | 6 | 22428326 | 541607124 | 3187 | 1 | 870 | 1 |
| m_inoutline(TOAST) | |||||||||||
| openbravo | pg_default | pg_catalog | pg_constraint | 3793 MB | 1288 | 156575 | 1480871 | 118 | 118 | ||
| pg_constraint(TOAST) | |||||||||||
| openbravo | pg_default | public | c_orderline | 3546 MB | 3 | 933643 | 39896594 | 1503 | 3833 | 1220 | |
| c_orderline(TOAST) | |||||||||||
| openbravo | pg_default | public | c_location | 3520 MB | 52 | 16390693 | 35033521 | 261 | 263 | ||
| c_location(TOAST) | |||||||||||
| openbravo | pg_default | profile | last_stat_tablespaces | 1952 MB | 41646 | 44 | 44 | ||||
| last_stat_tablespaces(TOAST) | |||||||||||
| openbravo | pg_default | pg_catalog | pg_proc | 1814 MB | 927 | 86950 | 127205 | 10 | 138 | 10 | 123 |
| pg_proc(TOAST) | 5842 | 15428 | 16 | 16 | |||||||
| DB | Tablespace | Schema | Table | Heap | Ix | TOAST | TOAST-Ix | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Blks | %Total | Blks | %Total | Blks | %Total | Blks | %Total | ||||
| openbravo | pg_default | public | m_inout | 517689783 | 15.02 | 1556572970 | 45.16 | 20256 | 0.00 | 113136 | 0.00 |
| openbravo | pg_default | public | m_inoutline | 524109066 | 15.21 | 71368148 | 2.07 | ||||
| openbravo | pg_default | public | ad_user | 44456854 | 1.29 | 121778245 | 3.53 | ||||
| openbravo | pg_default | public | c_bpartner_location | 35354849 | 1.03 | 52433593 | 1.52 | ||||
| openbravo | pg_default | public | c_location | 35485009 | 1.03 | 49376429 | 1.43 | ||||
| openbravo | pg_default | public | c_order | 51061995 | 1.48 | 33387172 | 0.97 | ||||
| openbravo | pg_default | public | ad_org | 28424655 | 0.82 | 28187323 | 0.82 | 26496 | 0.00 | 79662 | 0.00 |
| openbravo | pg_default | public | c_orderline | 32804527 | 0.95 | 4285895 | 0.12 | ||||
| openbravo | pg_default | public | c_bpartner | 24816997 | 0.72 | 5222782 | 0.15 | ||||
| openbravo | pg_default | public | c_country | 14310173 | 0.42 | 14309728 | 0.42 | ||||
| openbravo | pg_default | public | m_costing | 27732948 | 0.80 | ||||||
| openbravo | pg_default | public | fin_payment_schedule | 7419342 | 0.22 | 17243753 | 0.50 | ||||
| openbravo | pg_default | public | m_product | 4274422 | 0.12 | 6738977 | 0.20 | ||||
| openbravo | pg_default | public | m_matchpo | 2578586 | 0.07 | 7774236 | 0.23 | ||||
| openbravo | pg_default | public | fin_payment_detail | 8582029 | 0.25 | 97576 | 0.00 | ||||
| openbravo | pg_default | public | fin_payment_scheduledetail | 5763735 | 0.17 | 145647 | 0.00 | ||||
| openbravo | pg_default | public | m_storage_detail | 4462164 | 0.13 | 1139795 | 0.03 | ||||
| openbravo | pg_default | public | c_import_entry | 3815122 | 0.11 | 1113325 | 0.03 | 100441 | 0.00 | 234684 | 0.01 |
| openbravo | pg_default | pg_catalog | pg_class | 2090513 | 0.06 | 2770288 | 0.08 | ||||
| openbravo | pg_default | pg_catalog | pg_type | 1050203 | 0.03 | 3798341 | 0.11 | ||||
| DB | Tablespace | Schema | Table | Heap | Ix | TOAST | TOAST-Ix | Hit(%) | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Blks | %Total | Blks | %Total | Blks | %Total | Blks | %Total | |||||
| openbravo | pg_default | public | c_invoiceline | 100 | 0.17 | 6568 | 11.28 | 99.54 | ||||
| openbravo | pg_default | public | obmobc_logclient | 2653 | 4.56 | 1980 | 3.40 | 99.55 | ||||
| openbravo | pg_default | public | c_orderline | 266 | 0.46 | 3235 | 5.56 | 99.99 | ||||
| openbravo | pg_default | public | c_orderlinetax | 79 | 0.14 | 3107 | 5.34 | 93.61 | ||||
| openbravo | pg_default | public | c_import_entry_archive | 256 | 0.44 | 233 | 0.40 | 2576 | 4.42 | 90 | 0.15 | 99.76 |
| openbravo | pg_default | public | ad_treenode | 1 | 0.00 | 3045 | 5.23 | 99.65 | ||||
| openbravo | pg_default | public | fin_finacc_transaction | 82 | 0.14 | 2755 | 4.73 | 98.84 | ||||
| openbravo | pg_default | public | m_inoutline | 183 | 0.31 | 2243 | 3.85 | 100.00 | ||||
| openbravo | pg_default | public | fin_payment_scheduledetail | 64 | 0.11 | 2256 | 3.88 | 99.96 | ||||
| openbravo | pg_default | public | m_transaction | 126 | 0.22 | 1992 | 3.42 | 99.88 | ||||
| openbravo | pg_default | public | c_invoicelinetax | 60 | 0.10 | 1949 | 3.35 | 90.83 | ||||
| openbravo | pg_default | public | obcfr_ticketreprint | 193 | 0.33 | 1572 | 2.70 | 8 | 0.01 | 99.15 | ||
| openbravo | pg_default | public | obcfr_tickettax | 61 | 0.10 | 1392 | 2.39 | 93.61 | ||||
| openbravo | pg_default | public | m_matchpo | 39 | 0.07 | 1413 | 2.43 | 99.99 | ||||
| openbravo | pg_default | public | m_inout | 89 | 0.15 | 1219 | 2.09 | 62 | 0.11 | 12 | 0.02 | 100.00 |
| openbravo | pg_default | public | obcfr_ticket | 182 | 0.31 | 1154 | 1.98 | 3 | 0.01 | 99.33 | ||
| openbravo | pg_default | public | c_ordertax | 44 | 0.08 | 1102 | 1.89 | 92.31 | ||||
| openbravo | pg_default | public | c_order | 181 | 0.31 | 907 | 1.56 | 100.00 | ||||
| openbravo | pg_default | public | fin_payment | 154 | 0.26 | 787 | 1.35 | 99.96 | ||||
| openbravo | pg_default | public | c_import_entry | 251 | 0.43 | 1 | 0.00 | 563 | 0.97 | 99.98 | ||
| DB | Tablespace | Schema | Table | Ins | Upd | Del | Upd(HOT) | SeqScan | SeqFet | IxScan | IxFet |
|---|---|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | profile | last_stat_indexes | 67294 | 1574 | 67295 | 184 | 1076712 | 41149 | 405338 | |
| openbravo | pg_default | profile | last_stat_tables | 39230 | 4176 | 39232 | 33 | 186 | 634512 | 9179 | 4109668 |
| openbravo | pg_default | public | c_import_entry | 8119 | 8119 | 8119 | 383344 | 219996 | |||
| c_import_entry(TOAST) | 12159 | 12159 | 19104 | 61750 | |||||||
| openbravo | pg_default | public | obmobc_logclient | 45005 | |||||||
| obmobc_logclient(TOAST) | |||||||||||
| openbravo | pg_default | profile | last_stat_user_functions | 9039 | 994 | 9039 | 45 | 388 | 268812 | ||
| last_stat_user_functions(TOAST) | |||||||||||
| openbravo | pg_default | pg_catalog | pg_statistic | 12608 | 2 | 11657 | 338741 | 282236 | |||
| pg_statistic(TOAST) | 1806 | 1804 | 30912 | 64430 | |||||||
| openbravo | pg_default | public | c_import_entry_archive | 3390 | 1 | 130966 | 8097 | ||||
| c_import_entry_archive(TOAST) | 11279 | 101957 | 436517 | ||||||||
| openbravo | pg_default | pg_catalog | pg_depend | 7108 | 7115 | 4 | 4 | 27734 | 53642 | ||
| openbravo | pg_default | pg_catalog | pg_attribute | 3402 | 4664 | 3421 | 204 | 33 | 144 | 774219 | 5557916 |
| openbravo | pg_default | public | ad_message_trl | 20 | 11346 | 1122 | 3 | 40802 | 12134 | 11439 | |
| ad_message_trl(TOAST) | |||||||||||
| openbravo | pg_default | public | ad_element_trl | 8149 | 714 | 5 | 49450 | 8215 | 8167 | ||
| ad_element_trl(TOAST) | |||||||||||
| openbravo | pg_default | profile | sample_stat_tables | 3823 | 4047 | 153 | 98605 | ||||
| openbravo | pg_default | public | c_orderline | 1503 | 3833 | 1220 | 3 | 5863617 | 933643 | 39896594 | |
| c_orderline(TOAST) | |||||||||||
| openbravo | pg_default | public | ad_textinterfaces_trl | 4610 | 311 | 3 | 14982 | 10046 | 5360 | ||
| ad_textinterfaces_trl(TOAST) | |||||||||||
| openbravo | pg_default | public | m_storage_detail | 26 | 4119 | 939 | 7 | 554371 | 310479 | 14837791 | |
| m_storage_detail(TOAST) | |||||||||||
| openbravo | pg_default | public | m_inoutline | 3187 | 1 | 870 | 1 | 6 | 8990533 | 22428326 | 541607124 |
| m_inoutline(TOAST) | |||||||||||
| openbravo | pg_default | public | ad_ref_list_trl | 3970 | 598 | 2 | 9968 | 4026 | 3987 | ||
| ad_ref_list_trl(TOAST) | |||||||||||
| openbravo | pg_default | public | fin_payment | 810 | 2486 | 713 | 24 | 17120817 | 18978 | 18875 | |
| fin_payment(TOAST) | |||||||||||
| openbravo | pg_default | public | fin_payment_scheduledetail | 811 | 2442 | 785 | 19318 | 5725347 | |||
| fin_payment_scheduledetail(TOAST) | |||||||||||
| openbravo | pg_default | pg_catalog | pg_rewrite | 184 | 2 | 184 | 1 | 1781 | 1393 | ||
| pg_rewrite(TOAST) | 1408 | 1408 | 1057 | 6244 | |||||||
| DB | Tablespace | Schema | Table | Upd | Upd(HOT) | Del | Vacuum | AutoVacuum | Analyze | AutoAnalyze |
|---|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | profile | last_stat_indexes | 1574 | 67295 | 37 | 46 | 23 | ||
| openbravo | pg_default | profile | last_stat_tables | 4176 | 33 | 39232 | 37 | 46 | 23 | |
| openbravo | pg_default | public | c_import_entry | 8119 | 8119 | 72 | 105 | |||
| c_import_entry(TOAST) | 12159 | 53 | ||||||||
| openbravo | pg_default | pg_catalog | pg_statistic | 12608 | 11657 | 2 | 1 | |||
| pg_statistic(TOAST) | 1804 | 6 | ||||||||
| openbravo | pg_default | public | ad_message_trl | 11346 | 1122 | 2 | 2 | |||
| ad_message_trl(TOAST) | ||||||||||
| openbravo | pg_default | profile | last_stat_user_functions | 994 | 45 | 9039 | 37 | 46 | 23 | |
| last_stat_user_functions(TOAST) | ||||||||||
| openbravo | pg_default | public | ad_element_trl | 8149 | 714 | 2 | 2 | |||
| ad_element_trl(TOAST) | ||||||||||
| openbravo | pg_default | pg_catalog | pg_attribute | 4664 | 204 | 3421 | 1 | 2 | ||
| openbravo | pg_default | pg_catalog | pg_depend | 7115 | 1 | |||||
| openbravo | pg_default | public | ad_textinterfaces_trl | 4610 | 311 | 1 | 1 | |||
| ad_textinterfaces_trl(TOAST) | ||||||||||
| openbravo | pg_default | public | m_storage_detail | 4119 | 939 | 1 | ||||
| m_storage_detail(TOAST) | ||||||||||
| openbravo | pg_default | profile | sample_stat_tables | 4047 | 2 | |||||
| openbravo | pg_default | public | ad_ref_list_trl | 3970 | 598 | 1 | 1 | |||
| ad_ref_list_trl(TOAST) | ||||||||||
| openbravo | pg_default | public | c_orderline | 3833 | 1220 | |||||
| c_orderline(TOAST) | ||||||||||
| openbravo | pg_default | public | fin_payment | 2486 | 713 | |||||
| fin_payment(TOAST) | ||||||||||
| openbravo | pg_default | public | fin_payment_scheduledetail | 2442 | 785 | |||||
| fin_payment_scheduledetail(TOAST) | ||||||||||
| openbravo | pg_default | public | ad_sequence | 2440 | 2415 | 20 | ||||
| ad_sequence(TOAST) | ||||||||||
| openbravo | pg_default | pg_catalog | pg_trigger | 1704 | 28 | 472 | 1 | |||
| pg_trigger(TOAST) | ||||||||||
| openbravo | pg_default | public | obpos_applications | 1982 | 1933 | 7 | 34 | |||
| obpos_applications(TOAST) | ||||||||||
| openbravo | pg_default | public | ad_tab_trl | 1925 | 377 | 1 | 1 | |||
| ad_tab_trl(TOAST) | ||||||||||
| DB | Tablespace | Schema | Table | Size | Growth | Ins | Upd | Del | Upd(HOT) |
|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | pg_catalog | pg_attribute | 6400 kB | 1072 kB | 3402 | 4664 | 3421 | 204 |
| openbravo | pg_default | public | ad_textinterfaces_trl | 1424 kB | 664 kB | 4610 | 311 | ||
| ad_textinterfaces_trl(TOAST) | |||||||||
| openbravo | pg_default | pg_catalog | pg_trigger | 3200 kB | 352 kB | 472 | 1704 | 472 | 28 |
| pg_trigger(TOAST) | |||||||||
| openbravo | pg_default | public | ad_process_run | 3136 kB | 120 kB | 248 | 248 | ||
| ad_process_run(TOAST) | 992 kB | 32 kB | 19 | ||||||
| openbravo | pg_default | pg_catalog | pg_proc | 2056 kB | 80 kB | 10 | 138 | 10 | 123 |
| pg_proc(TOAST) | 1040 kB | 56 kB | 16 | 16 | |||||
| openbravo | pg_default | pg_catalog | pg_class | 1024 kB | 136 kB | 166 | 640 | 169 | 510 |
| openbravo | pg_default | public | ad_module | 256 kB | 128 kB | 2 | 265 | 26 | |
| ad_module(TOAST) | |||||||||
| openbravo | pg_default | public | c_location | 68 MB | 128 kB | 261 | 263 | ||
| c_location(TOAST) | |||||||||
| openbravo | pg_default | pg_catalog | pg_type | 640 kB | 56 kB | 332 | 335 | ||
| openbravo | pg_default | public | obcfr_terminalmonitor | 80 MB | 48 kB | 76 | |||
| 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 | funcs_list | 88 kB | 32 kB | 29 | 5 | ||
| funcs_list(TOAST) | |||||||||
| openbravo | pg_default | public | ad_process_request | 128 kB | 16 kB | 378 | 365 | ||
| ad_process_request(TOAST) | 120 kB | ||||||||
| openbravo | pg_default | profile | last_stat_user_functions | 248 kB | 16 kB | 9039 | 994 | 9039 | 45 |
| last_stat_user_functions(TOAST) | |||||||||
| openbravo | pg_default | profile | sample_stat_tablespaces | 64 kB | 8192 bytes | 20 | 24 | ||
| openbravo | pg_default | profile | indexes_list | 136 kB | 8192 bytes | 38 | 11 | ||
| openbravo | pg_default | profile | sample_statements_total | 160 kB | 8192 bytes | 27 | 27 | ||
| sample_statements_total(TOAST) | |||||||||
| openbravo | pg_default | profile | sample_stat_user_func_total | 64 kB | 8192 bytes | 20 | 24 |
| DB | Tablespace | Schema | Table | Index | Scans | Blks | %Total |
|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | m_inout | m_inout_key | 516675983 | 1556466562 | 45.16 |
| openbravo | pg_default | public | ad_user | ad_user_partner | 40368615 | 121394742 | 3.52 |
| openbravo | pg_default | public | m_inoutline | m_inoutline_orderline | 21735630 | 65601347 | 1.90 |
| openbravo | pg_default | public | c_bpartner_location | c_bplocation_bpartner | 17337402 | 52134570 | 1.51 |
| openbravo | pg_default | public | c_location | c_location_key | 16388205 | 49367040 | 1.43 |
| openbravo | pg_default | public | c_order | c_order_key | 10148875 | 30649687 | 0.89 |
| openbravo | pg_default | public | ad_org | ad_org_key | 28182463 | 28181630 | 0.82 |
| openbravo | pg_default | public | m_costing | m_costing_product_date | 27732012 | 27732246 | 0.80 |
| openbravo | pg_default | public | fin_payment_schedule | fin_payment_schedule_key | 5716959 | 17195726 | 0.50 |
| openbravo | pg_default | public | c_country | c_country_key | 14309272 | 14309424 | 0.42 |
| openbravo | pg_default | public | m_matchpo | m_matchpo_inout | 2579704 | 7758834 | 0.23 |
| openbravo | pg_default | public | m_product | m_product_key | 3201334 | 6427392 | 0.19 |
| openbravo | pg_default | public | m_inoutline | m_inoutline_product | 634648 | 5536243 | 0.16 |
| openbravo | pg_default | public | c_bpartner | c_bpartner_key | 1590497 | 4781329 | 0.14 |
| openbravo | pg_default | pg_catalog | pg_type | pg_type_oid_index | 1882765 | 3770186 | 0.11 |
| openbravo | pg_default | public | c_orderline | em_obpos_orderedqty | 649248 | 2779467 | 0.08 |
| openbravo | pg_default | pg_catalog | pg_class | pg_class_oid_index | 1250798 | 2514880 | 0.07 |
| openbravo | pg_default | public | c_order | c_order_client_org_date_docno | 200 | 2428692 | 0.07 |
| openbravo | pg_default | public | c_country_trl | c_country_trl_country_langu_un | 1023532 | 2047080 | 0.06 |
| openbravo | pg_default | pg_catalog | pg_collation | pg_collation_oid_index | 849628 | 1699258 | 0.05 |
| DB | Tablespace | Schema | Table | Index | Scans | Blk Reads | %Total | Hits(%) |
|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | c_invoiceline | c_invoiceline_orderline | 354310 | 3676 | 6.31 | 99.66 |
| openbravo | pg_default | public | ad_treenode | ad_treenode_tree_node_un | 626 | 3042 | 5.23 | 68.55 |
| openbravo | pg_default | public | fin_finacc_transaction | fin_finacc_transaction_key | 23192 | 1848 | 3.17 | 97.53 |
| openbravo | pg_default | public | m_inoutline | m_inoutline_key | 13848 | 1847 | 3.17 | 96.40 |
| openbravo | pg_default | public | m_transaction | m_transaction_key | 1549 | 2.66 | 78.12 | |
| openbravo | pg_default | public | c_invoiceline | c_invoiceline_inoutline | 1740 | 1441 | 2.48 | 84.65 |
| openbravo | pg_default | public | c_orderlinetax | c_orderlinetax_orderline | 4171 | 1362 | 2.34 | 94.02 |
| openbravo | pg_default | public | c_orderlinetax | c_orderlinetax_key | 1041 | 1.79 | 82.75 | |
| openbravo | pg_default | public | c_orderline | c_orderline_product | 245643 | 848 | 1.46 | 99.92 |
| openbravo | pg_default | public | c_invoicelinetax | c_invoicelinetax_invoiceline | 809 | 1.39 | 80.11 | |
| openbravo | pg_default | public | c_invoiceline | c_invoiceline_key | 1363 | 808 | 1.39 | 90.09 |
| openbravo | pg_default | public | c_invoicelinetax | c_invoicelinetax_key | 767 | 1.32 | 81.14 | |
| openbravo | pg_default | public | m_matchpo | m_matchpo_ship | 882 | 753 | 1.29 | 89.28 |
| openbravo | pg_default | public | c_orderline | em_obpos_deliveredqty | 752 | 1.29 | 95.58 | |
| openbravo | pg_default | public | c_orderline | c_orderline_order2 | 751 | 1.29 | 95.59 | |
| openbravo | pg_default | public | c_orderline | c_orderline_order | 749 | 1.29 | 95.61 | |
| openbravo | pg_default | public | m_matchpo | m_matchpo_key | 657 | 1.13 | 74.88 | |
| openbravo | pg_default | public | c_orderlinetax | c_orderlinetax_orderid | 640 | 1.10 | 88.30 | |
| openbravo | pg_default | public | fin_payment_scheduledetail | fin_pay_scheduledetail_in | 1221 | 581 | 1.00 | 92.50 |
| openbravo | pg_default | public | obcfr_tickettax | obcfr_tickettax_term_hash | 579 | 0.99 | 81.90 |
| DB | Tablespace | Schema | Table | Index | Index | Table | |||
|---|---|---|---|---|---|---|---|---|---|
| Size | Growth | Ins | Upd | Del | |||||
| openbravo | pg_default | public | ad_textinterfaces_trl | ad_textinterfaces_trl_un_key | 592 kB | 328 kB | 4299 | ||
| openbravo | pg_default | pg_catalog | pg_attribute | pg_attribute_relid_attnum_index | 976 kB | 152 kB | 3402 | 4460 | 3421 |
| openbravo | pg_default | pg_catalog | pg_trigger | pg_trigger_tgrelid_tgname_index | 1112 kB | 32 kB | 472 | 1676 | 472 |
| openbravo | pg_default | profile | sample_statements | pk_sample_statements_n | 624 kB | 24 kB | 489 | 452 | |
| openbravo | pg_default | public | ad_process_run | ad_process_run_status | 272 kB | 24 kB | 172 | 172 | |
| openbravo | pg_default | profile | last_stat_indexes | pk_last_stat_indexes | 504 kB | 8192 bytes | 67294 | 1574 | 67295 |
| openbravo | pg_default | pg_catalog | pg_class | pg_class_oid_index | 128 kB | 8192 bytes | 166 | 130 | 169 |
| openbravo | pg_default | profile | sample_stat_user_functions | pk_sample_stat_user_functions | 336 kB | 8192 bytes | 223 | 335 | |
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 | 153 | 153 | ||
| DB | Schema | Function | Executions | Time (s) | |||
|---|---|---|---|---|---|---|---|
| Total | Self | Mean | Mean self | ||||
| openbravo | public | m_get_cost | 13866006 | 2148.57 | 75.34 | 0.000 | 0.000 |
| openbravo | public | m_get_cost | 13866006 | 2073.23 | 190.85 | 0.000 | 0.000 |
| openbravo | public | m_get_no_trx_product_cost | 13866006 | 1322.26 | 67.64 | 0.000 | 0.000 |
| openbravo | public | m_get_no_trx_product_cost | 13866006 | 1254.62 | 954.46 | 0.000 | 0.000 |
| openbravo | public | m_get_product_cost | 13866006 | 359.80 | 359.80 | 0.000 | 0.000 |
| openbravo | public | ad_get_org_le_bu | 13663312 | 300.21 | 300.21 | 0.000 | 0.000 |
| openbravo | public | trunc | 17453447 | 178.35 | 178.35 | 0.000 | 0.000 |
| openbravo | public | to_date | 13881830 | 108.44 | 108.44 | 0.000 | 0.000 |
| openbravo | public | retstk_product_stock_json | 1519 | 101.34 | 87.39 | 0.067 | 0.058 |
| openbravo | public | c_currency_convert_precision | 13866006 | 92.07 | 92.07 | 0.000 | 0.000 |
| openbravo | profile | take_sample | 23 | 47.40 | 0.03 | 2.061 | 0.001 |
| openbravo | profile | take_sample_subset | 23 | 47.38 | 0.09 | 2.060 | 0.004 |
| openbravo | profile | take_sample | 23 | 47.28 | 2.49 | 2.056 | 0.108 |
| openbravo | public | retstk_product_stock_json_loc | 1519 | 42.84 | 28.96 | 0.028 | 0.019 |
| openbravo | public | substract_days | 28428039 | 37.66 | 37.66 | 0.000 | 0.000 |
| openbravo | public | ad_column_identifier | 66383 | 36.35 | 35.93 | 0.001 | 0.001 |
| openbravo | public | ad_column_identifier_std | 63443 | 35.84 | 2.00 | 0.001 | 0.000 |
| openbravo | profile | dblink | 621 | 32.65 | 32.65 | 0.053 | 0.053 |
| openbravo | public | retstk_basic_json | 45532 | 22.18 | 0.75 | 0.000 | 0.000 |
| openbravo | public | retstk_basic_json_lang | 45532 | 21.43 | 0.89 | 0.000 | 0.000 |
| DB | Schema | Function | Executions | Time (s) | |||
|---|---|---|---|---|---|---|---|
| Total | Self | Mean | Mean self | ||||
| openbravo | public | substract_days | 28428039 | 37.66 | 37.66 | 0.000 | 0.000 |
| openbravo | public | trunc | 17453447 | 178.35 | 178.35 | 0.000 | 0.000 |
| openbravo | public | to_date | 13881830 | 108.44 | 108.44 | 0.000 | 0.000 |
| openbravo | public | c_currency_convert_precision | 13866006 | 92.07 | 92.07 | 0.000 | 0.000 |
| openbravo | public | m_get_cost | 13866006 | 2148.57 | 75.34 | 0.000 | 0.000 |
| openbravo | public | m_get_cost | 13866006 | 2073.23 | 190.85 | 0.000 | 0.000 |
| openbravo | public | m_get_no_trx_product_cost | 13866006 | 1322.26 | 67.64 | 0.000 | 0.000 |
| openbravo | public | m_get_no_trx_product_cost | 13866006 | 1254.62 | 954.46 | 0.000 | 0.000 |
| openbravo | public | m_get_product_cost | 13866006 | 359.80 | 359.80 | 0.000 | 0.000 |
| openbravo | public | ad_get_org_le_bu | 13663312 | 300.21 | 300.21 | 0.000 | 0.000 |
| openbravo | public | trunc | 1047778 | 3.88 | 3.88 | 0.000 | 0.000 |
| openbravo | public | to_char | 260004 | 0.70 | 0.70 | 0.000 | 0.000 |
| openbravo | public | to_char | 181842 | 0.50 | 0.50 | 0.000 | 0.000 |
| openbravo | public | ad_istriggerenabled | 151958 | 1.36 | 1.36 | 0.000 | 0.000 |
| openbravo | public | ad_isorgincluded | 80381 | 1.75 | 1.75 | 0.000 | 0.000 |
| openbravo | public | ad_column_identifier | 66383 | 36.35 | 35.93 | 0.001 | 0.001 |
| openbravo | public | ad_column_identifier_std | 63443 | 35.84 | 2.00 | 0.001 | 0.000 |
| openbravo | information_schema | _pg_truetypid | 54444 | 0.42 | 0.42 | 0.000 | 0.000 |
| openbravo | information_schema | _pg_truetypmod | 54444 | 0.27 | 0.27 | 0.000 | 0.000 |
| openbravo | public | to_number | 52364 | 0.45 | 0.45 | 0.000 | 0.000 |
| DB | Schema | Function | Executions | Time (s) | |||
|---|---|---|---|---|---|---|---|
| Total | Self | Mean | Mean self | ||||
| openbravo | public | intr_m_inoutline_trg | 2883 | 2.30 | 0.18 | 0.001 | 0.000 |
| openbravo | public | m_inoutline_trg | 3753 | 1.31 | 0.55 | 0.000 | 0.000 |
| openbravo | public | m_transaction_trg | 2346 | 0.79 | 0.36 | 0.000 | 0.000 |
| openbravo | public | c_orderline2_trg | 5336 | 0.75 | 0.68 | 0.000 | 0.000 |
| openbravo | public | fash_orderline_check_status | 5336 | 0.56 | 0.53 | 0.000 | 0.000 |
| openbravo | public | c_ordline_chk_restrictions_trg | 5336 | 0.40 | 0.37 | 0.000 | 0.000 |
| openbravo | public | c_bpartner_trg | 322 | 0.32 | 0.30 | 0.001 | 0.001 |
| openbravo | public | c_orderline_trg2 | 5336 | 0.30 | 0.25 | 0.000 | 0.000 |
| openbravo | public | m_matchpo_trg | 870 | 0.30 | 0.12 | 0.000 | 0.000 |
| openbravo | public | fash_copy_c_orderline | 5336 | 0.28 | 0.12 | 0.000 | 0.000 |
| openbravo | public | ad_process_trl_trg | 596 | 0.28 | 0.26 | 0.000 | 0.000 |
| openbravo | public | fash_update_fshordline_trg | 5336 | 0.27 | 0.24 | 0.000 | 0.000 |
| openbravo | public | aprm_fin_pmt_check_trg | 3224 | 0.27 | 0.21 | 0.000 | 0.000 |
| openbravo | public | m_ioline_chk_restrictions_trg | 3219 | 0.25 | 0.20 | 0.000 | 0.000 |
| openbravo | public | phieco_orderline_trg | 5336 | 0.23 | 0.20 | 0.000 | 0.000 |
| openbravo | public | c_orderline_trg | 5336 | 0.23 | 0.19 | 0.000 | 0.000 |
| openbravo | public | m_storage_detail_trg | 3981 | 0.21 | 0.17 | 0.000 | 0.000 |
| openbravo | public | aprm_fin_pmt_detail_check_trg | 1596 | 0.20 | 0.18 | 0.000 | 0.000 |
| openbravo | public | intr_c_orderline_trg | 5336 | 0.20 | 0.17 | 0.000 | 0.000 |
| openbravo | public | ad_table_mod_trg | 971 | 0.19 | 0.16 | 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 | 8119 | 8119 | 8119 | ||
| openbravo | pg_default | profile | last_stat_tables | 37 | 39230 | 4176 | 39232 | 33 | |
| openbravo | pg_default | profile | last_stat_indexes | 37 | 67294 | 1574 | 67295 | ||
| openbravo | pg_default | profile | last_stat_user_functions | 37 | 9039 | 994 | 9039 | 45 | |
| openbravo | pg_default | public | ad_ep_instance_para | 12 | 160 | 160 | |||
| openbravo | pg_default | public | obpos_applications | 7 | 1982 | 1933 | |||
| openbravo | pg_default | public | ad_element_trl | 2 | 8149 | 714 | |||
| openbravo | pg_default | public | ad_message_trl | 2 | 20 | 11346 | 1122 | ||
| openbravo | pg_default | profile | last_stat_database | 2 | 92 | 92 | |||
| openbravo | pg_default | pg_catalog | pg_attribute | 1 | 3402 | 4664 | 3421 | 204 | |
| openbravo | pg_default | pg_catalog | pg_rewrite | 1 | 184 | 2 | 184 | 1 | |
| openbravo | pg_default | pg_catalog | pg_statistic | 1 | 12608 | 2 | 11657 | ||
| openbravo | pg_default | public | ad_fieldgroup_trl | 1 | 244 | 124 | |||
| openbravo | pg_default | public | ad_menu_trl | 1 | 2 | 900 | 218 | ||
| openbravo | pg_default | public | ad_module | 1 | 2 | 265 | 26 | ||
| openbravo | pg_default | public | ad_process_trl | 1 | 2 | 596 | 141 | ||
| openbravo | pg_default | public | ad_ref_list_trl | 1 | 3970 | 598 | |||
| openbravo | pg_default | public | ad_reference_trl | 1 | 1680 | 389 | |||
| openbravo | pg_default | public | ad_tab_trl | 1 | 1925 | 377 | |||
| openbravo | pg_default | public | ad_table | 1 | 971 | 2 |
| DB | Tablespace | Schema | Table | Analyze count | Autoanalyze count | Ins | Upd | Del | Upd(HOT) |
|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | c_import_entry | 105 | 8119 | 8119 | 8119 | ||
| openbravo | pg_default | profile | last_stat_tables | 46 | 23 | 39230 | 4176 | 39232 | 33 |
| openbravo | pg_default | profile | last_stat_indexes | 46 | 23 | 67294 | 1574 | 67295 | |
| openbravo | pg_default | profile | last_stat_user_functions | 46 | 23 | 9039 | 994 | 9039 | 45 |
| openbravo | pg_default | public | obpos_applications | 34 | 1982 | 1933 | |||
| openbravo | pg_default | profile | last_stat_tablespaces | 22 | 44 | 44 | |||
| openbravo | pg_default | public | ad_sequence | 20 | 2440 | 2415 | |||
| openbravo | pg_default | public | ad_process_request | 9 | 378 | 365 | |||
| openbravo | pg_default | public | fin_financial_account | 9 | 850 | 849 | |||
| openbravo | pg_default | public | ad_ep_instance_para | 5 | 160 | 160 | |||
| openbravo | pg_default | profile | last_stat_database | 4 | 92 | 92 | |||
| openbravo | pg_default | public | ad_module | 3 | 2 | 265 | 26 | ||
| openbravo | pg_default | profile | sample_stat_user_functions | 3 | 544 | 735 | |||
| openbravo | pg_default | pg_catalog | pg_attribute | 2 | 3402 | 4664 | 3421 | 204 | |
| openbravo | pg_default | pg_catalog | pg_rewrite | 2 | 184 | 2 | 184 | 1 | |
| openbravo | pg_default | public | ad_element_trl | 2 | 8149 | 714 | |||
| openbravo | pg_default | public | ad_message_trl | 2 | 20 | 11346 | 1122 | ||
| openbravo | pg_default | public | ad_session | 2 | 49 | 214 | 152 | ||
| openbravo | pg_default | profile | sample_stat_tables | 2 | 3823 | 4047 | |||
| openbravo | pg_default | profile | sample_stat_tables_total | 2 | 96 | 104 |
| 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 | 18 MB | 37 | 501 kB | 1936 kB | |
| openbravo | pg_default | public | c_import_entry | c_import_entry_key | 14 MB | 72 | 192 kB | 1308 kB | |
| openbravo | pg_default | public | c_import_entry | c_import_entry_type_status_idx | 13 MB | 72 | 184 kB | 1308 kB | |
| openbravo | pg_default | profile | last_stat_tables | pk_last_stat_tables | 11 MB | 37 | 304 kB | 1478 kB | |
| openbravo | pg_default | public | c_import_entry | c_import_entry_idx | 9216 kB | 72 | 128 kB | 1308 kB | |
| openbravo | pg_default | public | c_import_entry | em_obpos_application_fk | 8952 kB | 72 | 124 kB | 1308 kB | |
| openbravo | pg_default | public | c_import_entry(TOAST) | pg_toast_53108_index | 5512 kB | 53 | 104 kB | 1902 kB | |
| openbravo | pg_default | public | ad_message_trl | ad_message_trl_key | 3184 kB | 2 | 1592 kB | 3816 kB | |
| openbravo | pg_default | public | ad_message_trl | ad_message_trl_message_lang_un | 2912 kB | 2 | 1456 kB | 3816 kB | |
| openbravo | pg_default | public | ad_element_trl | ad_element_trl_key | 2288 kB | 2 | 1144 kB | 3800 kB | |
| openbravo | pg_default | public | ad_element_trl | ad_element_trl_element_lang_un | 2000 kB | 2 | 1000 kB | 3800 kB | |
| openbravo | pg_default | pg_catalog | pg_attribute | pg_attribute_relid_attnam_index | 1544 kB | 1 | 1544 kB | 6400 kB | |
| openbravo | pg_default | profile | sample_statements | ix_sample_stmts_qid | 1208 kB | 1 | 1208 kB | 3328 kB | |
| openbravo | pg_default | pg_catalog | pg_attribute | pg_attribute_relid_attnum_index | 976 kB | 1 | 976 kB | 6400 kB | |
| openbravo | pg_default | profile | sample_statements | pk_sample_statements_n | 624 kB | 1 | 624 kB | 3328 kB | |
| openbravo | pg_default | public | ad_textinterfaces_trl | ad_textinterfaces_trl_key | 592 kB | 1 | 592 kB | 1424 kB | |
| openbravo | pg_default | public | ad_textinterfaces_trl | ad_textinterfaces_trl_un_key | 592 kB | 1 | 592 kB | 1424 kB | |
| openbravo | pg_default | public | ad_ref_list_trl | ad_ref_list_trl_key | 584 kB | 1 | 584 kB | 1480 kB | |
| openbravo | pg_default | public | ad_ref_list_trl | ad_ref_list_trl_ref_list_la_un | 520 kB | 1 | 520 kB | 1480 kB | |
| openbravo | pg_default | pg_catalog | pg_statistic(TOAST) | pg_toast_2619_index | 480 kB | 5 | 96 kB | 5264 kB |
Data in this section is not differential. This data is valid for last report sample only.
| DB | Schema | Table | Live | Dead | %Dead | Last AV | Size |
|---|---|---|---|---|---|---|---|
| openbravo | profile | sample_stat_tables | 31417 | 6319 | 16 | 2026-07-13 15:00:45.960183+02 | 9928 kB |
| openbravo | pg_toast | pg_toast_2619 | 1857 | 6 | 0 | 2026-07-15 02:00:14.947814+02 | 5264 kB |
| openbravo | public | c_location | 339271 | 948 | 0 | 68 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 | profile | sample_stat_tables | 31417 | 6319 | 2568 | 6 | 2026-07-14 19:00:08.524875+02 | 9928 kB |
| openbravo | public | c_location | 339271 | 948 | 1890 | 0 | 2025-11-13 15:11:45.991636+01 | 68 MB |
| openbravo | public | obcfr_terminalmonitor | 190389 | 0 | 542 | 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-12 03:00:05.386027+02 | |||
| pg_postmaster_start_time | 2026-07-12 03:00:05.961796+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 | |||