pg_profile version 0.3.6
Server name: local
Report interval: 2026-07-18 04:00:01+02 - 2026-07-19 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 | 147305 | 2137 | 99.99 | 219779 | 3445135947 | 1970811300 | 1395688460 | 307098 | 83869 | 704790 | 50 GB | 17238515 | 21 GB | 169 MB | |
| postgres | 11705 | 100.00 | 658499 | 1901727 | 348108 | 6367 kB | |||||||||
| Total | 159010 | 2137 | 99.99 | 219779 | 3445794446 | 1972713027 | 1396036568 | 307098 | 83869 | 704790 | 50 GB | 17238515 | 21 GB | 169 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 | 58438028 | 18523.26 | 12.12 | 3550540185 | 785996 | 39137467 | 23155984 | 19603 | ||||||
| postgres | 5612 | 11.22 | 86779 | 345 | ||||||||||
| template1 | 6348 | 6.10 | 7176 | 276 | ||||||||||
| Total | 58449988 | 18540.58 | 12.12 | 3550634140 | 785996 | 39137467 | 23155984 | 20224 | ||||||
| Metric | Value |
|---|---|
| Scheduled checkpoints | 275 |
| Requested checkpoints | 4 |
| Checkpoint write time (s) | 35712.85 |
| Checkpoint sync time (s) | 9.78 |
| Checkpoints buffers written | 775659 |
| Background buffers written | |
| Backend buffers written | 25409 |
| Backend fsync count | |
| Bgwriter interrupts (too many buffers) | |
| Number of buffers allocated | 67984 |
| WAL generated | 5004 MB |
| WAL segments archived | |
| WAL segments archive failed |
| Tablespace | Path | Size | Growth |
|---|---|---|---|
| pg_default | 21 GB | 169 MB | |
| pg_global | 766 kB |
| Query ID | Database | Exec (s) | %Total | Rows | Execution times (ms) | Executions | |||
|---|---|---|---|---|---|---|---|---|---|
| Mean | Min | Max | StdErr | ||||||
[7d43ad7e] | openbravo | 8928.56 | 48.16 | 13316872 | 1116070.008 | 1112763.653 | 1120726.631 | 2614.031 | 8 |
[26c6f357] | openbravo | 5659.82 | 30.53 | 634855 | 707477.460 | 697812.826 | 724176.409 | 7598.355 | 8 |
[dfbf0ec0] | openbravo | 702.47 | 3.79 | 33 | 4107.997 | 122.625 | 6443.961 | 1828.322 | 171 |
[a0643fcb] | openbravo | 458.36 | 2.47 | 7857334 | 57294.924 | 55532.189 | 58797.030 | 904.477 | 8 |
[4c390f69] | openbravo | 247.22 | 1.33 | 5115744 | 30902.615 | 18847.465 | 36294.570 | 5435.765 | 8 |
[42430e3c] | openbravo | 227.78 | 1.23 | 5731855 | 28472.986 | 23644.566 | 31688.052 | 2586.276 | 8 |
[2870663b] | openbravo | 183.54 | 0.99 | 13951727 | 0.013 | 0.006 | 5.248 | 0.005 | 13951727 |
[4f5926de] | openbravo | 171.56 | 0.93 | 2720404 | 21444.633 | 15401.940 | 25905.013 | 3616.704 | 8 |
[b0ebb687] | openbravo | 125.37 | 0.68 | 3036352 | 15670.747 | 13406.857 | 18111.235 | 1296.105 | 8 |
[f27cc8c7] | openbravo | 85.45 | 0.46 | 3603 | 1612.256 | 999.620 | 2591.826 | 308.271 | 53 |
[eb509fc7] | openbravo | 81.15 | 0.44 | 2720354 | 10143.561 | 9102.171 | 14387.160 | 1637.195 | 8 |
[806faf8c] | openbravo | 77.61 | 0.42 | 593861 | 77607.118 | 77607.118 | 77607.118 | 1 | |
[738f9776] | openbravo | 75.00 | 0.40 | 588585 | 74998.509 | 74998.509 | 74998.509 | 1 | |
[9c0a6d60] | openbravo | 66.52 | 0.36 | 846 | 1956.553 | 1722.055 | 2042.770 | 49.642 | 34 |
[ce4e88c2] | openbravo | 61.64 | 0.33 | 13749448 | 0.004 | 0.003 | 2.731 | 0.002 | 13749448 |
[5b59cf42] | openbravo | 59.91 | 0.32 | 13951727 | 0.004 | 0.003 | 2.044 | 0.002 | 13951727 |
[1e425839] | openbravo | 59.12 | 0.32 | 26919 | 2111.446 | 2059.484 | 2378.252 | 66.717 | 28 |
[be51200d] | openbravo | 55.14 | 0.30 | 2288 | 471.292 | 442.905 | 549.158 | 17.207 | 117 |
[acae3908] | openbravo | 51.30 | 0.28 | 203 | 252.714 | 95.308 | 425.617 | 81.586 | 203 |
[ab242de4] | openbravo | 47.15 | 0.25 | 148109 | 47149.952 | 47149.952 | 47149.952 | 1 | |
| Query ID | Database | Executions | %Total | Rows | Mean(ms) | Min(ms) | Max(ms) | StdErr(ms) | Elapsed(s) |
|---|---|---|---|---|---|---|---|---|---|
[2870663b] | openbravo | 13951727 | 23.87 | 13951727 | 0.013 | 0.006 | 5.248 | 0.005 | 183.5 |
[5b59cf42] | openbravo | 13951727 | 23.87 | 13951727 | 0.004 | 0.003 | 2.044 | 0.002 | 59.9 |
[196c6f74] | openbravo | 13951727 | 23.87 | 13951727 | 0.003 | 0.002 | 2.858 | 0.002 | 39.8 |
[ce4e88c2] | openbravo | 13749448 | 23.52 | 13749448 | 0.004 | 0.003 | 2.731 | 0.002 | 61.6 |
[cf182c3a] | openbravo | 468448 | 0.80 | 14570 | 0.031 | 0.008 | 16.255 | 0.078 | 14.5 |
[b19ed954] | openbravo | 164381 | 0.28 | 164381 | 0.009 | 0.003 | 0.972 | 0.007 | 1.5 |
[8e21a910] | openbravo | 158272 | 0.27 | 158272 | 0.007 | 0.002 | 1.281 | 0.007 | 1.2 |
[3cb4d968] | openbravo | 122416 | 0.21 | 122416 | 0.003 | 0.002 | 0.310 | 0.001 | 0.4 |
[6f9b1a85] | openbravo | 115617 | 0.20 | 0.002 | 0.000 | 7.174 | 0.022 | 0.2 | |
[2049516b] | openbravo | 113485 | 0.19 | 0.001 | 0.000 | 0.423 | 0.002 | 0.1 | |
[3051ec96] | openbravo | 75898 | 0.13 | 75898 | 0.243 | 0.108 | 204.409 | 2.033 | 18.5 |
[afe3cf8b] | openbravo | 50052 | 0.09 | 50052 | 0.025 | 0.011 | 1.961 | 0.030 | 1.2 |
[2e63909b] | openbravo | 46037 | 0.08 | 2599 | 0.005 | 0.003 | 0.749 | 0.005 | 0.2 |
[5c26872c] | openbravo | 31484 | 0.05 | 31484 | 0.016 | 0.007 | 2.392 | 0.023 | 0.5 |
[6b7612aa] | openbravo | 30297 | 0.05 | 30297 | 0.003 | 0.002 | 0.091 | 0.001 | 0.1 |
[c149854] | openbravo | 25923 | 0.04 | 0.001 | 0.001 | 0.065 | 0.001 | 0.0 | |
[8a770ed5] | openbravo | 24816 | 0.04 | 24816 | 0.088 | 0.016 | 14.730 | 0.159 | 2.2 |
[17ab2ce8] | openbravo | 19061 | 0.03 | 19061 | 0.008 | 0.003 | 0.582 | 0.006 | 0.1 |
[9e09aee4] | openbravo | 19010 | 0.03 | 19010 | 0.049 | 0.012 | 1.033 | 0.027 | 0.9 |
[bc36ac07] | openbravo | 17146 | 0.03 | 17146 | 0.019 | 0.006 | 0.564 | 0.022 | 0.3 |
| Query ID | Database | blks fetched | %Total | Hits(%) | Elapsed(s) | Rows | Executions |
|---|---|---|---|---|---|---|---|
[26c6f357] | openbravo | 2549837250 | 71.81 | 100.00 | 5659.8 | 634855 | 8 |
[a0643fcb] | openbravo | 189400615 | 5.33 | 100.00 | 458.4 | 7857334 | 8 |
[dfbf0ec0] | openbravo | 152144751 | 4.29 | 100.00 | 702.5 | 33 | 171 |
[7d43ad7e] | openbravo | 123190618 | 3.47 | 100.00 | 8928.6 | 13316872 | 8 |
[42430e3c] | openbravo | 76173922 | 2.15 | 100.00 | 227.8 | 5731855 | 8 |
[4f5926de] | openbravo | 49217238 | 1.39 | 100.00 | 171.6 | 2720404 | 8 |
[b0ebb687] | openbravo | 47988766 | 1.35 | 100.00 | 125.4 | 3036352 | 8 |
[2870663b] | openbravo | 41906304 | 1.18 | 100.00 | 183.5 | 13951727 | 13951727 |
[ce4e88c2] | openbravo | 27550019 | 0.78 | 100.00 | 61.6 | 13749448 | 13749448 |
[eb509fc7] | openbravo | 27415335 | 0.77 | 100.00 | 81.1 | 2720354 | 8 |
[9c0a6d60] | openbravo | 24146613 | 0.68 | 100.00 | 66.5 | 846 | 34 |
[4c390f69] | openbravo | 21923343 | 0.62 | 100.00 | 247.2 | 5115744 | 8 |
[be089ba] | openbravo | 16498405 | 0.46 | 100.00 | 34.1 | 6 | |
[5ca0fee8] | openbravo | 15676405 | 0.44 | 100.00 | 23.8 | 339749 | 1 |
[196c6f74] | openbravo | 13951727 | 0.39 | 100.00 | 39.8 | 13951727 | 13951727 |
[5b59cf42] | openbravo | 13951727 | 0.39 | 100.00 | 59.9 | 13951727 | 13951727 |
[acae3908] | openbravo | 13867321 | 0.39 | 100.00 | 51.3 | 203 | 203 |
[68af0d51] | openbravo | 11168256 | 0.31 | 100.00 | 20.3 | 6 | |
[cf182c3a] | openbravo | 9131079 | 0.26 | 100.00 | 14.5 | 14570 | 468448 |
[84642cf4] | openbravo | 8701776 | 0.25 | 100.00 | 21.1 | 49 | 134 |
| Query ID | Database | Reads | %Total | Hits(%) | Elapsed(s) | Rows | Executions |
|---|---|---|---|---|---|---|---|
[4211bbca] | openbravo | 11174 | 14.57 | 94.87 | 3.3 | 1 | |
[3051ec96] | openbravo | 9335 | 12.17 | 99.55 | 18.5 | 75898 | 75898 |
[b76c5e2] | openbravo | 3796 | 4.95 | 96.57 | 2.3 | 2630 | 2630 |
[3819b415] | openbravo | 3660 | 4.77 | 99.25 | 1.4 | 407183 | 1 |
[e2543c48] | openbravo | 3311 | 4.32 | 99.08 | 4.6 | 2435 | 2435 |
[3afdf1db] | openbravo | 3304 | 4.31 | 98.07 | 1.7 | 4192 | 4192 |
[a852adf9] | openbravo | 2972 | 3.87 | 97.53 | 1.2 | 2455 | 31 |
[b34f1d1f] | openbravo | 2816 | 3.67 | 95.38 | 2.5 | 1511 | 1511 |
[ee4ba68d] | openbravo | 2608 | 3.40 | 96.95 | 1.3 | 1697 | 1697 |
[38c3f6e1] | openbravo | 2606 | 3.40 | 98.99 | 2.0 | 2455 | 31 |
[f7c054b4] | openbravo | 2451 | 3.20 | 95.76 | 1.7 | 1513 | 1513 |
[97aab45d] | openbravo | 2113 | 2.75 | 96.04 | 1.8 | 1481 | 1481 |
[e81c3c12] | openbravo | 1871 | 2.44 | 95.89 | 1.4 | 1513 | 1513 |
[84a8bcfc] | openbravo | 1594 | 2.08 | 99.07 | 1.9 | 1409 | 1409 |
[d37bd6d7] | openbravo | 1585 | 2.07 | 98.03 | 1.1 | 1408 | 1408 |
[5d2e4e6c] | openbravo | 1379 | 1.80 | 99.28 | 2.1 | 2235 | 2235 |
[a1b7c5f] | openbravo | 1377 | 1.80 | 99.32 | 2.9 | 2246 | 2246 |
[ddcc675a] | openbravo | 950 | 1.24 | 99.46 | 2.0 | 719 | 719 |
[b83898a6] | openbravo | 847 | 1.10 | 99.25 | 0.7 | 849 | 31 |
[978c2f22] | openbravo | 838 | 1.09 | 99.69 | 4.9 | 9333 | 9333 |
| Query ID | Database | Dirtied | %Total | Hits(%) | Elapsed(s) | Rows | Executions |
|---|---|---|---|---|---|---|---|
[3051ec96] | openbravo | 170760 | 21.73 | 99.55 | 18.5 | 75898 | 75898 |
[6ee18a4d] | openbravo | 109411 | 13.92 | 99.70 | 3.6 | 1 | |
[4211bbca] | openbravo | 61655 | 7.84 | 94.87 | 3.3 | 1 | |
[3819b415] | openbravo | 24619 | 3.13 | 99.25 | 1.4 | 407183 | 1 |
[b6b4b66e] | openbravo | 22628 | 2.88 | 99.97 | 1.1 | 25923 | 1 |
[40fd3671] | openbravo | 18976 | 2.41 | 100.00 | 37.8 | 23 | |
[92975a8e] | openbravo | 18976 | 2.41 | 100.00 | 37.8 | 23 | 23 |
[e2543c48] | openbravo | 13777 | 1.75 | 99.08 | 4.6 | 2435 | 2435 |
[38c3f6e1] | openbravo | 13114 | 1.67 | 98.99 | 2.0 | 2455 | 31 |
[fed47e50] | openbravo | 12397 | 1.58 | 99.99 | 14.5 | 2420 | 2420 |
[edb3cd2d] | openbravo | 11091 | 1.41 | 99.83 | 0.8 | 2455 | 31 |
[ddcc675a] | openbravo | 10240 | 1.30 | 99.46 | 2.0 | 719 | 719 |
[84a8bcfc] | openbravo | 9391 | 1.19 | 99.07 | 1.9 | 1409 | 1409 |
[fcea205c] | openbravo | 9249 | 1.18 | 99.61 | 1.0 | 2210 | 2210 |
[978c2f22] | openbravo | 9071 | 1.15 | 99.69 | 4.9 | 9333 | 9333 |
[a1b7c5f] | openbravo | 8989 | 1.14 | 99.32 | 2.9 | 2246 | 2246 |
[f1896355] | openbravo | 8556 | 1.09 | 99.73 | 1.7 | 686 | 686 |
[5d2e4e6c] | openbravo | 8481 | 1.08 | 99.28 | 2.1 | 2235 | 2235 |
[3afdf1db] | openbravo | 7853 | 1.00 | 98.07 | 1.7 | 4192 | 4192 |
[b34f1d1f] | openbravo | 7796 | 0.99 | 95.38 | 2.5 | 1511 | 1511 |
| Query ID | Database | Written | %Total | %BackendW | Hits(%) | Elapsed(s) | Rows | Executions |
|---|---|---|---|---|---|---|---|---|
[9a64cac6] | openbravo | 1 | 0.00 | 0.00 | 96.22 | 0.2 | 1 |
| Query ID | Database | Local fetched | Hits(%) | Local (blk) | Temp (blk) | Elapsed(s) | Rows | Executions | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Write | %Total | Read | %Total | Write | %Total | Read | %Total | |||||||
[7d43ad7e] | openbravo | 17854217 | 77.10 | 35087676 | 89.65 | 8928.6 | 13316872 | 8 | ||||||
[dfbf0ec0] | openbravo | 3197236 | 13.81 | 2029153 | 5.18 | 702.5 | 33 | 171 | ||||||
[42430e3c] | openbravo | 1137557 | 4.91 | 1138181 | 2.91 | 227.8 | 5731855 | 8 | ||||||
[be51200d] | openbravo | 338990 | 1.46 | 338873 | 0.87 | 55.1 | 2288 | 117 | ||||||
[1e425839] | openbravo | 259253 | 1.12 | 259421 | 0.66 | 59.1 | 26919 | 28 | ||||||
[1596f0d4] | openbravo | 201582 | 0.87 | 116912 | 0.30 | 38.8 | 240 | 6 | ||||||
[4c390f69] | openbravo | 157380 | 0.68 | 157476 | 0.40 | 247.2 | 5115744 | 8 | ||||||
[25bcd965] | openbravo | 9769 | 0.04 | 9775 | 0.02 | 4.2 | 850 | 1 | ||||||
| QueryID | Query Text |
|---|---|
| d1c0672c81 | insert into M_InOutLine (AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, Line, Description, M_InOut_ID, C_OrderLine_ID, M_Locator_ID, M_Product_ID, C_UOM_ID, MovementQty, IsInvoiced, M_AttributeSetInstance_ID, IsDescription, Manage_Prereservation, C_Bpartner_ID, Explode, EM_Obwpl_Editlines_Pe, EM_Obwpl_Removeline, Salesrep_ID, EM_Prpp_Qtyverified, EM_Pruti_Voidlines, EM_Pruti_Isvoid, M_InOutLine_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28) |
| 181fd1b092 | insert into C_OrderLineTax (C_Orderline_ID, C_Tax_ID, AD_Client_ID, AD_Org_ID, Isactive, Created, Createdby, Updated, Updatedby, Taxbaseamt, Taxamt, Line, C_Order_ID, C_Orderlinetax_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) |
| 133291c890 | SELECT * FROM (select bp.c_bpartner_id AS REFERENCEKEY_ID, $2 AS AD_ROLE_ID, $3 AS AD_USER_ID, $4 || AD_COLUMN_IDENTIFIER($5, bp.C_BPARTNER_ID, $6) || $7 AS DESCRIPTION, $8 AS ISACTIVE, bp.AD_ORG_ID AS AD_ORG_ID, bp.AD_CLIENT_ID AS AD_CLIENT_ID, now() AS CREATED, $9 AS CREATEDBY, now() AS UPDATED, $10 AS UPDATEDBY, AD_COLUMN_IDENTIFIER($11, bp.C_BPARTNER_ID, $12) AS RECORD_ID from c_bpartner bp where not exists (select $13 from c_bpartner_location bpl0 where bpl0.c_bpartner_id = bp.c_bpartner_id and bpl0.istaxlocation = $14 ) and exists (select $15 from c_bpartner_location bpl inner join c_location l on (bpl.c_location_id = l.c_location_id) where bpl.c_bpartner_id = bp.c_bpartner_id group by bpl.c_bpartner_id having count(distinct(l.c_country_id)) > $16 )) AAA where not exists (select $17 from ad_alert a where a.ad_alertrule_id = $1 and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, $18) != $19) |
| 82f60a877f | UPDATE ONLY "public"."obedl_request_line" SET "c_import_entry_archive_id" = $2 WHERE $1::pg_catalog.text OPERATOR(pg_catalog.=) "c_import_entry_archive_id"::pg_catalog.text |
| 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 |
| 62ab39c10c | SELECT 1 FROM ONLY "public"."c_currency" x WHERE "c_currency_id"::pg_catalog.text OPERATOR(pg_catalog.=) $1::pg_catalog.text FOR KEY SHARE OF x |
| 75c88383e3 | SELECT COUNT(*) FROM M_COSTING WHERE p_MovementDate BETWEEN DATEFROM AND DATETO AND M_PRODUCT_ID = p_Product_ID AND costtype NOT IN ($8 , $9) AND(v_CostType IS NULL OR v_CostType = COSTTYPE) |
| 24e13ace2f | SELECT DISTINCT ON (bp.c_bpartner_id) bp.c_bpartner_id, bp.updated, bp.AD_Language, CAST(bp.birthday AS varchar), bp.is_customer_consent, bp.isactive, usr.created, usr.firstname, usr.lastname, usr.commercialauth, usr.em_izir_updated_optin AS updatedCommercialauth, usr.email, usr.viasms, usr.viaemail, usr.phone, c_country.countrycode AS description /*Replace by countrycode*/, c_location.regionname, c_location.postal, c_location.city, c_location.address1, grt.name, grp.value, created_user.default_ad_org_id AS created_by_org FROM c_bpartner bp LEFT JOIN ad_user usr ON bp.c_bpartner_id = usr.c_bpartner_id LEFT JOIN c_bpartner_location ON bp.c_bpartner_id = c_bpartner_location.c_bpartner_id LEFT JOIN c_location ON c_bpartner_location.c_location_id = c_location.c_location_id LEFT JOIN c_country ON c_country.c_country_id = c_location.c_country_id LEFT JOIN c_greeting grt ON bp.c_greeting_id = grt.c_greeting_id LEFT JOIN c_bp_group grp ON bp.c_bp_group_id = grp.c_bp_group_id LEFT JOIN ad_user created_user ON bp.createdby = created_user.ad_user_id WHERE ( bp.updated >= now() - $1 OR usr.updated >= now() - $2 ) |
| 9455753479 | COMMIT |
| d3457bdce0 | SELECT c_country.countrycode as "Code Pays", SUBSTRING(c_order.ad_org_id,$1,$2) as "Code magasin", ad_org.name as "Nom magasin", TO_CHAR(c_order.dateordered::date, $3) as Date, SUM(c_orderline.linenetamt) As "CA HT", $4 As Traffic, COUNT(DISTINCT CASE WHEN subquery.total_linenetamt > $5 THEN c_order.c_order_id ELSE $6 END) - COUNT(DISTINCT CASE WHEN subquery.total_linenetamt < $7 THEN c_order.c_order_id ELSE $8 END) AS "Nombre de tickets" FROM c_orderline INNER JOIN c_order ON c_orderline.c_order_id = c_order.c_order_id LEFT JOIN ad_org ON c_order.ad_org_id = ad_org.ad_org_id LEFT JOIN c_country ON ad_org.em_obretco_dbp_countryid = c_country.c_country_id INNER JOIN ( SELECT c_order_id, SUM(linenetamt) AS total_linenetamt FROM c_orderline GROUP BY c_order_id ) AS subquery ON c_orderline.c_order_id = subquery.c_order_id WHERE c_order.issotrx = $9 AND c_orderline.qtyordered <> $10 AND c_order.dateordered >= CURRENT_DATE - INTERVAL $11 GROUP BY TO_CHAR(c_order.dateordered::date, 'yyyy-mm-dd'), c_country.countrycode, c_order.ad_org_id, ad_org.name |
| 4af3e2b8c4 | select "_"."m_warehouse_id" as "m_warehouse_id", "_"."ad_org_id" as "ad_org_id", "_"."Almacén" as "Entrepot", "_"."Ubicación" as "Emplacement", "_"."m_product_id" as "m_product_id", "_"."Cantidad" as "Qté stock", "_"."Cantidad Reservada" as "Quantite Reserve", "_"."Valoración Inventario" as "Valo PA HT Stock", "_"."last_purchase" as "last_purchase" from ( select w.m_warehouse_id , sd.ad_org_id , w.name as "Almacén" , l.value as "Ubicación" , sd.m_product_id , sd.qtyonhand "Cantidad" , sd.reservedqty "Cantidad Reservada" , round(coalesce(sd.qtyonhand * coalesce(m_get_cost(sd.m_product_id,now()::timestamp,$1,sd.ad_org_id, sd.ad_client_id,$2,$3,$4),$5),$6),$7) as "Valoración Inventario" ,(SELECT coalesce(MAX(m_inout.movementdate), current_date) FROM m_inoutline LEFT JOIN m_inout on m_inoutline.m_inout_id=m_inout.m_inout_id WHERE m_inout.docstatus<>$8 and m_inout.issotrx = $9 and m_inoutline.m_product_id = sd.m_product_id) as "last_purchase" from m_storage_detail sd inner join m_locator l on l.m_locator_id = sd.m_locator_id inner join m_warehouse w on w.m_warehouse_id = l.m_warehouse_id ) "_" |
| c5df179779 | SELECT ot.islegalentity FROM ad_org o JOIN ad_orgtype ot ON o.ad_orgtype_id = ot.ad_orgtype_id WHERE o.ad_org_id = p_org_id |
| 0483033486 | SELECT LEVELNO FROM AD_ORG_TREE WHERE AD_ORG_ID = p_orgid AND AD_PARENT_ORG_ID = p_parentorgid AND AD_CLIENT_ID = p_clientid |
| caede7e47b | insert into obmobc_logclient ( obmobc_logclient_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, tstamp, deviceid, context, msg, loglevel, cache_session_id, isonline ) values ( $1, $2, $3, 'Y', to_timestamp(to_char($4), to_char('YYYY-MM-DD HH24:MI:SS')), $5, to_timestamp(to_char($6), to_char('YYYY-MM-DD HH24:MI:SS')), $7, to_number($8), $9, $10, $11, $12, $13, $14 ) |
| 4f740b8e64 | delete from obmobc_logclient where Created<now()-10 and (Loglevel not in ('Warn' , 'Error')) |
| 4f42690015 | insert into c_invoiceline (c_invoiceline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_invoice_id, c_orderline_id, m_inoutline_id, line, description, m_product_id, qtyinvoiced, pricelist, priceactual, pricelimit, linenetamt, c_uom_id, c_tax_id, m_attributesetinstance_id, pricestd, taxbaseamt, line_gross_amount, gross_unit_price, c_bpartner_id, grosspricestd, grosspricelist, a_asset_id, c_project_id, user1_id, user2_id, c_costcenter_id) select get_uuid(), i.ad_client_id, i.ad_org_id, $3, i.created, i.createdby, i.updated, i.updatedby, i.c_invoice_id, ol.c_orderline_id, max(iol.m_inoutline_id), row_number() over (partition by i.c_invoice_id order by o.documentno, ol.line) * $5 as line, ol.description, ol.m_product_id, ol.qtyordered, ol.pricelist, ol.priceactual, ol.pricelimit, ol.linenetamt, ol.c_uom_id, ol.c_tax_id, ol.m_attributesetinstance_id, ol.pricestd, ol.linenetamt , (case when pl.istaxincluded = $6 then ol.line_gross_amount else $7 end), ol.gross_unit_price, ol.c_bpartner_id, ol.grosspricestd, ol.grosspricelist, ol.a_asset_id, ol.c_project_id, ol.user1_id, ol.user2_id, ol.c_costcenter_id from c_order o, m_pricelist pl, obpos_applications ap, ad_org org, c_doctype dt, c_invoice i, c_orderline ol left join m_inoutline iol on ol.c_orderline_id = iol.c_orderline_id where ol.c_order_id = o.c_order_id and o.m_pricelist_id = pl.m_pricelist_id and o.m_pricelist_id = i.m_pricelist_id and o.em_obpos_applications_id = ap.obpos_applications_id and o.ad_org_id = org.ad_org_id and $8=$9 and o.c_doctype_id = dt.c_doctype_id and dt.c_doctypeaggrinvoice_id = i.c_doctype_id and o.em_obpos_app_cashup_id = $1 and o.em_obpos_islayaway = $10 and o.invoicerule = $11 and (ol.qtyordered <> $12 and ol.em_obpos_isdeleted = $13) and o.c_doctype_id in (org.em_obpos_c_doctype_id, org.em_obpos_c_doctyperet_id) and not exists (select $14 from c_orderline ol2 where ol2.qtyinvoiced <> $15 and ol2.c_order_id = o.c_order_id) and o.em_obpos_notinvoiceoncashup = $16 and o.iscashvat = i.iscashvat and i.documentno = $2 and i.c_bpartner_id = o.c_bpartner_id and coalesce(i.bpartner_extref, n$17) = coalesce(o.bpartner_extref, n$18) and i.c_bpartner_location_id = coalesce(o.billto_id, o.c_bpartner_location_id) and coalesce(i.ad_user_id, $19) = coalesce(o.ad_user_id, $20) group by i.ad_client_id, i.ad_org_id, i.created, i.createdby, i.updated, i.updatedby, i.c_invoice_id, ol.c_orderline_id, ol.description, ol.m_product_id, ol.qtyordered, ol.pricelist, ol.priceactual, ol.pricelimit, ol.linenetamt, ol.c_uom_id, ol.c_tax_id, ol.m_attributesetinstance_id, ol.pricestd, ol.linenetamt , ol.line_gross_amount, ol.gross_unit_price, ol.c_bpartner_id, ol.grosspricestd, ol.grosspricelist, ol.a_asset_id, ol.c_project_id, ol.user1_id, ol.user2_id, ol.c_costcenter_id, pl.istaxincluded, o.documentno, ol.line, o.c_order_id, o.ad_user_id, o.bpartner_extref order by o.documentno, ol.line |
| 604436a476 | insert into C_Import_Entry_Archive (AD_Client_ID, AD_Org_ID, Isactive, Created, Createdby, Updated, Updatedby, Imported, Jsoninfo, ImportStatus, Typeofdata, AD_Role_ID, EM_Obpos_Applications_ID, Responseinfo, Isnonblocking, C_Import_Entry_Archive_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16) |
| 74a1d87233 | SELECT $4 FROM ONLY "profile"."last_stat_database" x WHERE "server_id" OPERATOR(pg_catalog.=) $1 AND "sample_id" OPERATOR(pg_catalog.=) $2 AND "datid" OPERATOR(pg_catalog.=) $3 FOR KEY SHARE OF x |
| 382d19fc6d | SELECT * FROM take_sample_subset(1,0) |
| c9878c2668 | vacuum analyze obmobc_logclient |
| 241cae8477 | select "_"."fin_payment_detail_v_id" as "fin_payment_detail_v_id", "_"."ad_client_id" as "ad_client_id", "_"."ad_org_id" as "ad_org_id", "_"."c_bpartner_id" as "c_bpartner_id", "_"."c_order_id" as "c_order_id", "_"."orderno" as "Comande No.", "_"."invoiceno" as "Facture No.", "_"."paymentno" as "Paiement No.", "_"."duedate" as "Date comptable", "_"."paymentdate" as "Date de paiement", "_"."invoicedamt" as "Montant de la facture", "_"."expected" as "Attendu", "_"."paidamt" as "Montant payé", "_"."expectedconverted" as "Converti attendu", "_"."paidconverted" as "Payé converti", "_"."paymentmethod" as "Mode de paiement", "_"."status" as "Status" from ( select fpdv.fin_payment_detail_v_id , fpdv.ad_client_id , (case when cd.isreturn = $1 then co.ad_orgtrx_id else fpdv.ad_org_id end) ad_org_id , fpdv.c_bpartner_id , fpdv.fin_payment_sched_ord_v_id as "c_order_id" , fpdv.orderno , fpdv.invoiceno , fpdv.paymentno , fpdv.duedate , fpdv.paymentdate , fpdv.invoicedamt , fpdv.expected , fpdv.paidamt , fpdv.expectedconverted , fpdv.paidconverted , fp.name as "paymentmethod" , fpdv.status from fin_payment_detail_v fpdv left join c_order co on co.c_order_id = fpdv.fin_payment_sched_ord_v_id left join c_doctype cd on co.c_doctype_id = cd.c_doctype_id left join fin_paymentmethod fp on fp.fin_paymentmethod_id = fpdv.fin_paymentmethod_id where co.issotrx = $2 ) "_" |
| fe2c4fe6df | select "_"."c_order_id" as "c_order_id", "_"."ad_org_id" as "ad_org_id", "_"."isactive" as "isactive", "_"."issotrx" as "issotrx", "_"."m_pricelist_id" as "m_pricelist_id", "_"."Documento" as "Documento", "_"."Estado Pedido" as "Estado Pedido", "_"."Accion Pedido" as "Accion Pedido", "_"."Tipo Documento" as "Tipo Documento", "_"."Descripción" as "Descripción", "_"."Fecha Pedido" as "Fecha Pedido", "_"."Fecha Comprometida" as "Fecha Comprometida", "_"."c_bpartner_id" as "c_bpartner_id", "_"."Referencia Proveedor" as "Referencia Proveedor", "_"."c_currency_id" as "c_currency_id", "_"."Currency ISO" as "Currency ISO", "_"."m_warehouse_id" as "m_warehouse_id", "_"."Ciudad" as "Ciudad", "_"."Codigo Postal" as "Codigo Postal", "_"."Pais" as "Pais", "_"."Region" as "Region", "_"."TPV Name" as "TPV Name", "_"."Vendedor" as "Vendedor", "_"."Nombre y Apellido Vendedor" as "Nombre y Apellido Vendedor", "_"."salesrep_id" as "salesrep_id", cast("_"."Fecha Pedido" as date) as "t0_0", cast("_"."Fecha Comprometida" as date) as "t1_0" from ( select "c_order_id", "ad_org_id", "isactive", "issotrx", "m_pricelist_id", "Documento", "Estado Pedido", "Accion Pedido", "Tipo Documento", "Descripción", "Fecha Pedido", "Fecha Comprometida", "c_bpartner_id", "Referencia Proveedor", "c_currency_id", "Currency ISO", "m_warehouse_id", "Ciudad", "Codigo Postal", "Pais", "Region", "TPV Name", "Vendedor", "Nombre y Apellido Vendedor", "salesrep_id" from ( SELECT O.c_order_id , (case when DT.isreturn = $1 then O.ad_orgtrx_id else O.ad_org_id end) ad_org_id , O.isactive , O.issotrx , O.m_pricelist_id , O.documentno as "Documento" , O.docstatus as "Estado Pedido" , O.docaction as "Accion Pedido" , O.processed as "Procesado" , DT.name as "Tipo Documento" , O.description as "Descripción" , O.dateordered as "Fecha Pedido" , O.datepromised as "Fecha Comprometida" , O.c_bpartner_id , O.poreference "Referencia Proveedor" , O.c_currency_id , cu.iso_code "Currency ISO" , O.m_warehouse_id , cl.city as "Ciudad" , cl.postal as "Codigo Postal" , cc."name" as "Pais" , cr."name" as "Region" , OA."name" as "TPV Name" , coalesce(au.name,$2) as "Vendedor" , concat(coalesce(au.firstname,$3),$4,coalesce(au.lastname,$5)) as "Nombre y Apellido Vendedor" , O.salesrep_id FROM c_order O LEFT JOIN c_doctype DT on DT.c_doctype_id = O.c_doctype_id INNER JOIN c_currency cu on cu.c_currency_id = o.c_currency_id LEFT JOIN c_bpartner_location cbl on cbl.c_bpartner_location_id = O.c_bpartner_location_id LEFT JOIN c_location cl on cl.c_location_id = cbl.c_location_id LEFT JOIN c_country cc on cc.c_country_id = cl.c_country_id LEFT JOIN c_region cr on cr.c_region_id = cl.c_region_id left join obpos_applications OA on OA.obpos_applications_id = O.em_obpos_applications_id left join ad_user au on au.ad_user_id = O.salesrep_id WHERE $6=$7 AND O.issotrx = $8 AND O.dateordered >= CURRENT_DATE - INTERVAL $9 ) "$Table" ) "_" |
| b52b0c82ea | select "_"."c_bpartner_id" as "c_bpartner_id", "_"."Identificador" as "Code du Tiers", "_"."Nombre Fiscal" as "Nom Fiscal", "_"."Nombre Comercial" as "Nom du Tiers", "_"."Prospecto" as "Prospect", "_"."Proveedor" as "Fournisseur", "_"."Cliente" as "Client", "_"."Empleado" as "Employé", "_"."NIF" as "TAX", "_"."m_pricelist_id" as "m_pricelist_id", "_"."po_pricelist_id" as "po_pricelist_id", "_"."salesrep_id" as "salesrep_id", "_"."location" as "location", "_"."contact" as "contact", "_"."birthday" as "birthday", "_"."created" as "created", "_"."is_customer_consent" as "is_customer_consent", "_"."birthday_partner" as "birthday_partner" from ( SELECT c_bpartner_id , value as "Identificador" , name as "Nombre Fiscal" , name2 as "Nombre Comercial" , isprospect as "Prospecto" , isvendor as "Proveedor" , iscustomer as "Cliente" , isemployee as "Empleado" , taxid as "NIF" , m_pricelist_id , po_pricelist_id , salesrep_id , (select concat(cl.address1,$1, cl.city,$2, cl.postal,$3, cc.name) from c_bpartner_location cbl inner join c_location cl on cbl.c_location_id = cl.c_location_id left join c_country cc on cc.c_country_id = cl.c_country_id where cbl.c_bpartner_id = c_bpartner.c_bpartner_id limit $4) as location , (select concat(u.phone, $5, u.email, $6, u.commercialauth) from ad_user u where u.c_bpartner_id = c_bpartner.c_bpartner_id LIMIT $7) as contact -- ✅ AJOUTÉ , (select birthday from ad_user u where u.c_bpartner_id = c_bpartner.c_bpartner_id LIMIT $8) as birthday , created , is_customer_consent , birthday as birthday_partner FROM c_bpartner ) "_" |
| 33f5216a17 | SELECT count(*) FROM DUAL WHERE EXISTS (SELECT $14 FROM m_costing WHERE datefrom <= p_movementdate AND dateto > p_movementdate AND m_product_id = p_product_id AND COALESCE(m_warehouse_id, p_warehouse_id, $15) = COALESCE(p_warehouse_id, m_warehouse_id, $16) AND ad_org_id IN (v_legal_entity,$17) AND cost IS NOT NULL AND costtype IN ($18, $19) AND costtype = COALESCE(v_CostType, costtype) ) |
| 3e80950586 | SELECT $2 FROM ONLY "public"."c_bpartner" x WHERE "c_bpartner_id"::pg_catalog.text OPERATOR(pg_catalog.=) $1::pg_catalog.text FOR KEY SHARE OF x |
| b854ac1a69 | SELECT c_bpartner_id as "ObjectID" , name as "Name" , isprospect as "IsProspect" , isvendor as "IsVendor" , iscustomer as "IsCustomer" , isemployee as "IsEmployee" , (select u.phone from ad_user u where u.c_bpartner_id = c_bpartner.c_bpartner_id LIMIT $1) as Phone , (select u.email from ad_user u where u.c_bpartner_id = c_bpartner.c_bpartner_id LIMIT $2) as Email , (select u.commercialauth from ad_user u where u.c_bpartner_id = c_bpartner.c_bpartner_id LIMIT $3) as CommercialAuth , (select cl.address1 from c_bpartner_location cbl inner join c_location cl on cbl.c_location_id = cl.c_location_id where cbl.c_bpartner_id = c_bpartner.c_bpartner_id limit $4) as Address , (select cl.city from c_bpartner_location cbl inner join c_location cl on cbl.c_location_id = cl.c_location_id where cbl.c_bpartner_id = c_bpartner.c_bpartner_id limit $5) as City , (select cl.postal from c_bpartner_location cbl inner join c_location cl on cbl.c_location_id = cl.c_location_id where cbl.c_bpartner_id = c_bpartner.c_bpartner_id limit $6) as "PostalCode" , (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 $7) as Country , created as "DateCreated" , is_customer_consent as "IsCustomerConsent" , cast(birthday as TEXT) as "BirthdayDate" 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) |
| 0a9b2d6035 | SELECT * FROM (SELECT DISTINCT iol.m_product_id as referencekey_id, $2 as ad_role_id, $3 as ad_user_id, $4 || p.name || $5 as description, $6 as isactive, iol.ad_org_id as ad_org_id, iol.ad_client_id as ad_client_id, now() as created, $7 as createdBy, now() as updated, $8 as updatedBy, p.name as RECORD_ID FROM m_inoutline iol JOIN m_inout io ON iol.m_inout_id = io.m_inout_id AND io.issotrx = $9 AND io.docstatus = $10 JOIN m_transaction t ON iol.m_inoutline_id = t.m_inoutline_id JOIN c_bpartner bp ON io.c_bpartner_id = bp.c_bpartner_id JOIN m_product p ON iol.m_product_id = p.m_product_id JOIN m_costing_rule cr ON ad_isorgincluded(io.ad_org_id, cr.ad_org_id, io.ad_client_id) >= $11 AND cr.datefrom <= t.trxprocessdate AND cr.dateto > t.trxprocessdate JOIN m_costing_algorithm ca ON cr.m_costing_algorithm_id = ca.m_costing_algorithm_id AND ca.classname = $12 WHERE NOT EXISTS (SELECT $13 FROM m_matchpo mp WHERE mp.m_inoutline_id = iol.m_inoutline_id AND mp.c_orderline_id IS NOT NULL) AND NOT EXISTS (SELECT $14 FROM m_costing c WHERE c.m_product_id = iol.m_product_id AND c.costtype IN ($15, $16) AND c.datefrom <= t.trxprocessdate AND c.dateto > t.trxprocessdate) AND NOT EXISTS (SELECT $17 FROM m_productprice pp JOIN m_pricelist_version ppv ON pp.m_pricelist_version_id = ppv.m_pricelist_version_id JOIN m_pricelist pl ON pl.m_pricelist_id = ppv.m_pricelist_id WHERE pp.m_product_id = iol.m_product_id AND (bp.po_pricelist_id = ppv.m_pricelist_id OR (bp.po_pricelist_id IS NULL AND pl.issopricelist = $18)) AND ppv.validfrom <= t.trxprocessdate) AND NOT EXISTS (SELECT $19 FROM c_orderline ol JOIN c_order o ON ol.c_order_id = o.c_order_id AND o.issotrx = $20 AND o.processed = $21 WHERE ol.m_product_id = iol.m_product_id AND o.c_bpartner_id = bp.c_bpartner_id AND ad_isorgincluded(o.ad_org_id, cr.ad_org_id, io.ad_client_id) >= $22)) AAA where not exists (select $23 from ad_alert a where a.ad_alertrule_id = $1 and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, $24) != $25) |
| 1eec949137 | SELECT $4 FROM ONLY "profile"."last_stat_tablespaces" x WHERE "server_id" OPERATOR(pg_catalog.=) $1 AND "sample_id" OPERATOR(pg_catalog.=) $2 AND "tablespaceid" OPERATOR(pg_catalog.=) $3 FOR KEY SHARE OF x |
| 5500567ca4 | vacuum analyze C_Import_Entry_Archive |
| 93a759b1da | BEGIN |
| 0b24cb5d2f | COPY public.obcfr_ticket (obcfr_ticket_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, documentno, obpos_applications_id, ticketdate, json, seqno, prevhash, hash, hashtime, export) TO stdout |
| 29bf42b1ab | select "_"."m_transaction_id" as "m_transaction_id", "_"."m_locator_id" as "m_locator_id", "_"."m_warehouse_id" as "m_warehouse_id", "_"."ad_client_id" as "ad_client_id", "_"."ad_org_id" as "ad_org_id", "_"."updated" as "updated", "_"."m_product_id" as "m_product_id", "_"."trxprocessdate" as "Date mvt", "_"."Type de mouvement" as "Type mvt", "_"."Quantité de mouvement" as "Qté mvt", "_"."€ Coût de transaction" as "€ Coût de transaction", "_"."€ Coût moyen du produit" as "€ Coût moyen du produit", "_"."Nom de l'inventaire" as "Nom de l'inventaire", "_"."Bon de livraison" as "Bon de livraison", "_"."Document Commande" as "Document Commande", "_"."TPV" as "TPV", "_"."Type de document" as "Type doc" from ( SELECT mt.m_transaction_id , mt.m_locator_id , ml.m_warehouse_id , mt.ad_client_id , mt.ad_org_id , mt.updated , mt.m_product_id , trunc(mt.trxprocessdate) as trxprocessdate , mt.movementtype as "Type de mouvement" , mt.movementqty as "Quantité de mouvement" , mt.transactioncost as "€ Coût de transaction" , m_get_cost(mt.m_product_id, mt.trxprocessdate, $1, mt.ad_org_id, mt.ad_client_id, $2, $3, $4) AS "€ Coût moyen du produit" , coalesce(mi2."name", $5) as "Nom de l'inventaire" , coalesce(mi4."documentno", $6) as "Bon de livraison" , coalesce(o."documentno", $7) as "Document Commande" , coalesce(oa."name", $8) as "TPV" , coalesce(cd."name", $9) as "Type de document" FROM m_transaction mt LEFT JOIN m_locator ml on ml.m_locator_id = mt.m_locator_id left join m_inventoryline mi on mi.m_inventoryline_id = mt.m_inventoryline_id left join m_inventory mi2 on mi2.m_inventory_id = mi.m_inventory_id left join m_inoutline mi3 on mi3.m_inoutline_id = mt.m_inoutline_id left join m_inout mi4 on mi4.m_inout_id = mi3.m_inout_id left join c_orderline ol on ol.c_orderline_id = mi3.c_orderline_id left join c_order o on o.c_order_id = ol.c_order_id left join obpos_applications oa on o.em_obpos_applications_id = oa.obpos_applications_id left join c_doctype cd on cd.c_doctype_id = o.c_doctype_id WHERE mt.isactive = $10 ) "_" |
| f0238ffe1b | COPY public.obcfr_ticketreprint (obcfr_ticketreprint_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, obcfr_ticket_id, documentno, obpos_applications_id, terminal, printdate, json, seqno, prevhash, hash, hashtime, export) TO stdout |
| 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) |
| 27b400c7db | select c_import_e0_.C_IMPORT_ENTRY_ID as c_import1_236_0_, c_import_e0_.AD_Client_ID as ad_clien2_236_0_, c_import_e0_.AD_Org_ID as ad_org_i3_236_0_, c_import_e0_.Isactive as isactive4_236_0_, c_import_e0_.Created as created5_236_0_, c_import_e0_.Createdby as createdb6_236_0_, c_import_e0_.Updated as updated7_236_0_, c_import_e0_.Updatedby as updatedb8_236_0_, c_import_e0_.Imported as imported9_236_0_, c_import_e0_.Jsoninfo as jsoninf10_236_0_, c_import_e0_.ImportStatus as imports11_236_0_, c_import_e0_.Typeofdata as typeofd12_236_0_, c_import_e0_.Errorinfo as errorin13_236_0_, c_import_e0_.AD_Role_ID as ad_role14_236_0_, c_import_e0_.Createdtimestamp as created15_236_0_, c_import_e0_.EM_Obpos_Applications_ID as em_obpo16_236_0_, c_import_e0_.Responseinfo as respons17_236_0_, c_import_e0_.Isnonblocking as isnonbl18_236_0_ from C_IMPORT_ENTRY c_import_e0_ where c_import_e0_.C_IMPORT_ENTRY_ID=$1 |
| 5f8e9d0065 | SELECT 1 FROM ONLY "public"."ad_client" x WHERE "ad_client_id"::pg_catalog.text OPERATOR(pg_catalog.=) $1::pg_catalog.text FOR KEY SHARE OF x |
| 905bffc89c | SELECT profile.take_sample() |
| 313b1ecda9 | insert into C_IMPORT_ENTRY (AD_Client_ID, AD_Org_ID, Isactive, Created, Createdby, Updated, Updatedby, Jsoninfo, ImportStatus, Typeofdata, AD_Role_ID, Createdtimestamp, Isnonblocking, C_IMPORT_ENTRY_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) |
| 616a44c111 | insert into OBCFR_Ticket (AD_Client_ID, AD_Org_ID, Isactive, Created, Createdby, Updated, Updatedby, Obpos_Applications_ID, Ticketdate, Json, Seqno, Prevhash, Hash, Hashtime, Export, Documentno, Obcfr_Ticket_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17) |
| 19fa46b9b1 | vacuum analyze AD_Alert |
| 61aed5765c | select businesspa0_.C_BPartner_Location_ID as col_0_0_, businesspa1_.C_BPartner_ID as col_1_0_, coalesce(location2_.Address1, location2_.Postal, location2_.City, businesspa0_.Name) as col_2_0_, coalesce(location2_.Address2, $11) as col_3_0_, location2_.Postal as col_4_0_, location2_.City as col_5_0_, coalesce((select countrytrl4_.Name from C_Country_Trl countrytrl4_ where countrytrl4_.C_Country_ID=location2_.C_Country_ID and countrytrl4_.AD_Language=$12), country5_.Name) as col_6_0_, location2_.C_Country_ID as col_7_0_, businesspa0_.IsBillTo as col_8_0_, businesspa0_.IsShipTo as col_9_0_, businesspa0_.Isdefault_Shipto as col_10_0_, businesspa0_.Isdefault_Billto as col_11_0_, coalesce(region3_.Name, $13) as col_12_0_, coalesce(region3_.C_Region_ID, $14) as col_13_0_, businesspa0_.Created as col_14_0_, businesspa0_.Updated as col_15_0_, coalesce((location2_.Address1||case when location2_.Address2 is not null then $15 end||location2_.Address2), location2_.Address1, location2_.Address2, location2_.Postal, location2_.City) as col_16_0_, case when businesspa0_.IsActive=$16 and businesspa1_.IsActive=$17 then $18 else $19 end as col_17_0_, now() as col_18_0_ from C_BPartner_Location businesspa0_ inner join C_BPartner businesspa1_ on businesspa0_.C_BPartner_ID=businesspa1_.C_BPartner_ID left outer join C_Location location2_ on businesspa0_.C_Location_ID=location2_.C_Location_ID left outer join C_Region region3_ on location2_.C_Region_ID=region3_.C_Region_ID cross join C_Country country5_ where location2_.C_Country_ID=country5_.C_Country_ID and $20=$21 and businesspa1_.IsCustomer=$22 and (businesspa1_.M_PriceList_ID is not null) and (businesspa0_.Updated>$1 or businesspa1_.Updated>$2 or location2_.Updated>$3) and (businesspa0_.AD_Client_ID in ($23 , $24)) and (businesspa0_.AD_Org_ID in ($4 , $5 , $6 , $7 , $8 , $9)) and $25=$26 order by businesspa0_.C_BPartner_Location_ID limit $10 |
| bf60147669 | SELECT COUNT(*) AS TOTAL FROM AD_SESSION WHERE AD_SESSION_ID = $1 AND SESSION_ACTIVE = $2 AND ISACTIVE = $3 |
| 3f546d3e2b | select "_"."c_orderline_id" as "c_orderline_id", "_"."c_order_id" as "c_order_id", "_"."ad_org_id" as "ad_org_id", "_"."isactive" as "Actif", "_"."issotrx" as "issotrx", "_"."c_bpartner_id" as "c_bpartner_id", "_"."c_currency_id" as "c_currency_id", "_"."m_product_id" as "m_product_id", "_"."m_warehouse_id" as "m_warehouse_id", "_"."m_product_category_id" as "m_product_category_id", "_"."line" as "line", cast("_"."Fecha Pedido" as date) as "Date Commande", cast("_"."Fecha Comprometida" as date) as "Date de livraison engagée", cast("_"."Fecha Enviada" as date) as "Fecha Enviada", "_"."Descripción" as "Description ligne", "_"."Cantidad Pedido" as "Qté vendue", "_"."Precio Lista" as "Prix List", "_"."Precio Actual" as "Prix Actuel", "_"."Precio Limite" as "Prix Limite", "_"."Importe Linea" as "Montant net ligne", "_"."Importe TTC" as "Importe TTC", "_"."Descuento" as "€ Remise", "_"."Cantidad Recibida" as "Quantite reçue", cast("_"."Fecha Recepción" as date) as "Fecha Recepción", cast("_"."bp_created" as date) as "bp_created", "_"."bp_country" as "bp_country", "_"."isdelivered" as "isdelivered" from ( SELECT OL.c_orderline_id , OL.c_order_id , (case when cd.isreturn = $1 then O.ad_orgtrx_id else OL.ad_org_id end) ad_org_id , OL.isactive , O.issotrx , OL.c_bpartner_id , OL.c_currency_id , OL.m_product_id , OL.m_warehouse_id , P.m_product_category_id , OL.line , OL.dateordered as "Fecha Pedido" , OL.datepromised as "Fecha Comprometida" , OL.datedelivered as "Fecha Enviada" , OL.description as "Descripción" , OL.qtyordered "Cantidad Pedido" , OL.pricelist "Precio Lista" , OL.priceactual "Precio Actual" , OL.pricelimit "Precio Limite" , OL.linenetamt "Importe Linea" , OL.line_gross_amount "Importe TTC" , OL.discount as "Descuento" , (SELECT SUM(movementqty) FROM m_inoutline IOL WHERE IOL.c_orderline_id = OL.c_orderline_id) as "Cantidad Recibida" , (SELECT MAX(movementdate) FROM m_inoutline IOL INNER JOIN m_inout IO on IO.m_inout_id = IOL.m_inout_id WHERE IOL.c_orderline_id = OL.c_orderline_id) as "Fecha Recepción" , BP.created as "bp_created" , (select cc.name from c_bpartner_location cbl inner join c_location cl on cbl.c_location_id = cl.c_location_id left join c_country cc on cc.c_country_id = cl.c_country_id where cbl.c_bpartner_id = BP.c_bpartner_id limit $2) as bp_country , O.isdelivered FROM c_orderline OL LEFT JOIN c_order O on O.c_order_id = OL.c_order_id left join c_doctype cd on O.c_doctype_id = cd.c_doctype_id LEFT JOIN m_product P on P.m_product_id = OL.m_product_id LEFT JOIN c_bpartner BP on BP.c_bpartner_id = O.c_bpartner_id WHERE $3=$4 AND O.issotrx = $5 AND OL.dateordered >= CURRENT_DATE - INTERVAL $6 ) "_" |
| 017d00aa12 | insert into c_invoicelinetax (c_invoicelinetax_id, c_tax_id, c_invoice_id, c_invoiceline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, taxbaseamt, taxamt, line, recalculate) select get_uuid(), olt.c_tax_id, i.c_invoice_id, il.c_invoiceline_id, i.ad_client_id, i.ad_org_id, $2, i.created, i.createdby, i.updated, i.updatedby, olt.taxbaseamt, olt.taxamt, olt.line, $4 from c_order o, c_orderline ol, c_orderlinetax olt, c_invoice i, c_invoiceline il where o.c_order_id = ol.c_order_id and ol.c_orderline_id = olt.c_orderline_id and ol.c_orderline_id = il.c_orderline_id and il.c_invoice_id = i.c_invoice_id and i.documentno = $1 and i.c_bpartner_id = o.c_bpartner_id and i.c_bpartner_location_id = coalesce(o.billto_id, o.c_bpartner_location_id) and coalesce(i.ad_user_id, $6) = coalesce(o.ad_user_id, $7) |
| 225c51d0db | COPY public.c_import_entry_archive (c_import_entry_archive_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, imported, jsoninfo, importstatus, typeofdata, errorinfo, ad_role_id, responseinfo, em_obpos_applications_id, isnonblocking) TO stdout |
| 12a0f36339 | SELECT COALESCE(sum(month_total_amount),$1) AS month_total_amount, COALESCE(sum(week_total_amount),$2) AS week_total_amount, COALESCE(sum(day_total_amount),$3) AS day_total_amount, COALESCE(sum(month_total_units),$4) AS month_total_units, COALESCE(sum(week_total_units),$5) AS week_total_units, COALESCE(sum(day_total_units),$6) AS day_total_units, COALESCE(sum(month_total_amount_ret),$7) AS month_total_amount_ret, COALESCE(sum(week_total_amount_ret),$8) AS week_total_amount_ret, COALESCE(sum(day_total_amount_ret),$9) AS day_total_amount_ret, COALESCE(sum(month_total_units_ret),$10) AS month_total_units_ret, COALESCE(sum(week_total_units_ret),$11) AS week_total_units_ret, COALESCE(sum(day_total_units_ret),$12) AS day_total_units_ret FROM ( SELECT -- Pedidos CASE WHEN ol.line_gross_amount > $13 THEN ol.line_gross_amount END month_total_amount, CASE WHEN ol.line_gross_amount > $14 THEN ol.qtyordered END month_total_units, CASE WHEN o.created >= d.actual_week_date AND ol.line_gross_amount > $15 THEN ol.line_gross_amount END AS week_total_amount, CASE WHEN o.created >= d.actual_week_date AND ol.line_gross_amount > $16 THEN ol.qtyordered END AS week_total_units, CASE WHEN o.created >= d.actual_date AND ol.line_gross_amount > $17 THEN ol.line_gross_amount END AS day_total_amount, CASE WHEN o.created >= d.actual_date AND ol.line_gross_amount > $18 THEN ol.qtyordered END AS day_total_units, -- Devos CASE WHEN ol.line_gross_amount < $19 THEN ol.line_gross_amount END month_total_amount_ret, CASE WHEN ol.line_gross_amount < $20 THEN ol.qtyordered END month_total_units_ret, CASE WHEN o.created >= d.actual_week_date AND ol.line_gross_amount < $21 THEN ol.line_gross_amount END AS week_total_amount_ret, CASE WHEN o.created >= d.actual_week_date AND ol.line_gross_amount < $22 THEN ol.qtyordered END AS week_total_units_ret, CASE WHEN o.created >= d.actual_date AND ol.line_gross_amount < $23 THEN ol.line_gross_amount END AS day_total_amount_ret, CASE WHEN o.created >= d.actual_date AND ol.line_gross_amount < $24 THEN ol.qtyordered END AS day_total_units_ret FROM c_orderline ol LEFT JOIN c_order o ON ol.c_order_id = o.c_order_id LEFT JOIN c_doctype cd ON cd.c_doctype_id=o.c_doctypetarget_id , ( SELECT trunc(now()) actual_date, date_trunc($25,now()) actual_week_date, date_trunc($26,now()) actual_month_date FROM dual) d WHERE o.ad_org_id = $27 AND o.created >= d.actual_month_date AND cd.docsubtypeso<>$28 AND o.issotrx=$29 ) AS f1 |
| 3ca20ddb6c | select adlanguage0_.AD_Language_ID as ad_langu1_51_0_, adlanguage0_.AD_Language as ad_langu2_51_0_, adlanguage0_.AD_Client_ID as ad_clien3_51_0_, adlanguage0_.AD_Org_ID as ad_org_i4_51_0_, adlanguage0_.IsActive as isactive5_51_0_, adlanguage0_.Created as created6_51_0_, adlanguage0_.CreatedBy as createdb7_51_0_, adlanguage0_.Updated as updated8_51_0_, adlanguage0_.UpdatedBy as updatedb9_51_0_, adlanguage0_.Name as name10_51_0_, adlanguage0_.LanguageISO as languag11_51_0_, adlanguage0_.CountryCode as country12_51_0_, adlanguage0_.IsBaseLanguage as isbasel13_51_0_, adlanguage0_.IsSystemLanguage as issyste14_51_0_, adlanguage0_.Processing as process15_51_0_, adlanguage0_.Pixelsize as pixelsi16_51_0_, adlanguage0_.Translatedby as transla17_51_0_, adlanguage0_.Isrtl as isrtl18_51_0_ from AD_Language adlanguage0_ where adlanguage0_.AD_Language=$1 |
| 08db126a91 | select "_"."c_orderline_id" as "c_orderline_id", "_"."c_order_id" as "c_order_id", "_"."ad_org_id" as "ad_org_id", "_"."isactive" as "Actif", "_"."issotrx" as "issotrx", "_"."c_bpartner_id" as "c_bpartner_id", "_"."c_currency_id" as "c_currency_id", "_"."m_product_id" as "m_product_id", "_"."m_warehouse_id" as "m_warehouse_id", "_"."m_product_category_id" as "m_product_category_id", "_"."line" as "line", cast("_"."Fecha Pedido" as date) as "Date Commande", cast("_"."Fecha Comprometida" as date) as "Date de livraison engagée", cast("_"."Fecha Enviada" as date) as "Fecha Enviada", "_"."Descripción" as "Description ligne", "_"."Cantidad Pedido" as "Qté Commandée", "_"."Precio Lista" as "Prix List", "_"."Precio Actual" as "Prix Actuel", "_"."Precio Limite" as "Prix Limite", "_"."Importe Linea" as "Montant net ligne", "_"."Descuento" as "€ Remise", "_"."Cantidad Recibida" as "Quantite reçue", cast("_"."Fecha Recepción" as date) as "Fecha Recepción" from ( SELECT OL.c_orderline_id , OL.c_order_id , OL.ad_org_id , OL.isactive , O.issotrx , OL.c_bpartner_id , OL.c_currency_id , OL.m_product_id , OL.m_warehouse_id , P.m_product_category_id , OL.line , OL.dateordered as "Fecha Pedido" , OL.datepromised as "Fecha Comprometida" , OL.datedelivered as "Fecha Enviada" , OL.description as "Descripción" , OL.qtyordered "Cantidad Pedido" , OL.pricelist "Precio Lista" , OL.priceactual "Precio Actual" , OL.pricelimit "Precio Limite" , OL.linenetamt "Importe Linea" , OL.discount as "Descuento" , (SELECT SUM(movementqty) FROM m_inoutline IOL WHERE IOL.c_orderline_id = OL.c_orderline_id) as "Cantidad Recibida" , (SELECT MAX(movementdate) FROM m_inoutline IOL INNER JOIN m_inout IO on IO.m_inout_id = IOL.m_inout_id WHERE IOL.c_orderline_id = OL.c_orderline_id) as "Fecha Recepción" FROM c_orderline OL LEFT JOIN c_order O on O.c_order_id = OL.c_order_id LEFT JOIN m_product P on P.m_product_id = OL.m_product_id WHERE $1=$2 AND O.issotrx <> $3 AND OL.dateordered >= CURRENT_DATE - INTERVAL $4 ) "_" |
| 8e8235137e | SELECT 1 FROM ONLY "public"."ad_org" x WHERE "ad_org_id"::pg_catalog.text OPERATOR(pg_catalog.=) $1::pg_catalog.text FOR KEY SHARE OF x |
| 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) |
| 32d90994b5 | delete from C_Import_Entry_Archive where Created<now()-$1 |
| 7280c24d29 | insert into c_invoice (c_invoice_id, ad_client_id, ad_org_id, ad_orgtrx_id, isactive, created, createdby, updated, updatedby, issotrx, documentno, docstatus, docaction, processing, processed, posted, c_doctype_id, c_doctypetarget_id, c_order_id, description, dateordered, salesrep_id, dateinvoiced, dateacct, c_bpartner_id, c_bpartner_location_id, c_currency_id, c_paymentterm_id, totallines, grandtotal, m_pricelist_id, ispaid, totalpaid, outstandingamt, fin_paymentmethod_id, ad_user_id, em_aprm_processinvoice, iscashvat, bpartner_extref) select get_uuid(), o.ad_client_id, o.ad_org_id, o.ad_orgtrx_id, $10, to_timestamp(to_char($1), to_char($12)), $2, to_timestamp(to_char($3), to_char($13)), $4, $14, $5, $16, $18, $20, $22, $24, dt.c_doctypeaggrinvoice_id, dt.c_doctypeaggrinvoice_id, $26, $6, $28, max(o.salesrep_id), to_date(substr(to_char($7), $30, $31), to_char($32)), to_date(substr(to_char($8), $33, $34), to_char($35)), o.c_bpartner_id, coalesce(o.billto_id, o.c_bpartner_location_id), o.c_currency_id, bp.c_paymentterm_id, sum(o.totallines), sum(o.grandtotal), max(o.m_pricelist_id), $36, sum(o.grandtotal), $38, bp.fin_paymentmethod_id, o.ad_user_id, $39, o.iscashvat, o.bpartner_extref from c_order o, obpos_applications ap, ad_org org, c_doctype dt, c_bpartner bp where o.em_obpos_applications_id = ap.obpos_applications_id and o.ad_org_id = org.ad_org_id and dt.c_doctype_id in (org.em_obpos_c_doctype_id, org.em_obpos_c_doctyperet_id) and $41=$42 and o.c_doctype_id = dt.c_doctype_id and o.c_bpartner_id = bp.c_bpartner_id and o.em_obpos_app_cashup_id = $9 and o.c_doctype_id in (org.em_obpos_c_doctype_id, org.em_obpos_c_doctyperet_id) and o.em_obpos_islayaway = $43 and o.invoicerule = $44 and exists (select $45 from c_orderline ol2 where ol2.qtyinvoiced = $46 and ol2.em_obpos_isdeleted = $47 and ol2.c_order_id = o.c_order_id) and o.em_obpos_notinvoiceoncashup = $48 group by o.ad_client_id, o.ad_org_id, o.ad_orgtrx_id, dt.c_doctypeaggrinvoice_id, dt.c_doctypeaggrinvoice_id, o.c_bpartner_id, coalesce(o.billto_id, o.c_bpartner_location_id), o.c_currency_id, bp.c_paymentterm_id, o.m_pricelist_id, bp.fin_paymentmethod_id, o.ad_user_id, o.iscashvat, o.bpartner_extref |
| e5e056b68d | SELECT 1 FROM ONLY "public"."ad_user" x WHERE "ad_user_id"::pg_catalog.text OPERATOR(pg_catalog.=) $1::pg_catalog.text FOR KEY SHARE OF x |
| 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 |
| 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) |
| 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) |
| 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) |
| 1f5a522082 | select ol.c_orderline_id as id, ord.created as createdDate, ord.documentno as order, ad_column_identifier_std($1, bp.c_bpartner_id) as bp, bp.name as bpname, ad_column_identifier_std($2, prod.m_product_id) as product, prod.value as productvalue, prod.name as productname, prod.characteristic_desc as productchdesc, prod.m_product_category_id as productcategory, ord.grandtotal as gross, ol.qtyordered, coalesce(ol.grosspricelist,$3) as grosspricelist, ol.gross_unit_price, case when ol.gross_unit_price = $4 then $5 else abs(round(($6-(ol.grosspricelist/ol.gross_unit_price))*$7,$8)) end as discount, ol.line_gross_amount, string_agg(fin_paymentmethod.name,$9) as paymentmethod from c_orderline ol left join c_order ord on ord.c_order_id=ol.c_order_id left join fin_payment_scheduledetail on fin_payment_scheduledetail.fin_payment_schedule_order=ord.c_order_id left join fin_payment_detail on fin_payment_scheduledetail.fin_payment_detail_id=fin_payment_detail.fin_payment_detail_id left join fin_payment on fin_payment.fin_payment_id=fin_payment_detail.fin_payment_id left join fin_paymentmethod on fin_payment.fin_paymentmethod_id=fin_paymentmethod.fin_paymentmethod_id left join c_bpartner bp on bp.c_bpartner_id=ord.c_bpartner_id left join m_product prod on prod.m_product_id=ol.m_product_id where ord.issotrx=$10 and ord.docstatus=$11 and coalesce(ord.ad_orgtrx_id,ord.ad_org_id)=$12 and ord.em_obpos_applications_id is not null and trunc(ord.created)>=to_timestamp($13,$14) and trunc(ord.created)<=to_timestamp($15,$16) group by ol.c_orderline_id, ord.c_order_id, bp.c_bpartner_id, prod.m_product_id order by ord.documentno desc limit $17 |
| 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 | 130 GB | 141 | 5874669 | 51559767 | 1481 | 1133 | 8 | |
| c_order(TOAST) | |||||||||||
| openbravo | pg_default | public | c_bpartner | 43 GB | 262 | 1848124 | 15148239 | 521 | 48 | 3 | |
| c_bpartner(TOAST) | |||||||||||
| openbravo | pg_default | public | ad_user | 28 GB | 264 | 42521607 | 42524879 | 521 | 594 | 513 | |
| ad_user(TOAST) | |||||||||||
| openbravo | pg_default | public | fin_payment | 15 GB | 24 | 46369 | 46079 | 1416 | 4366 | 1200 | |
| fin_payment(TOAST) | |||||||||||
| openbravo | pg_default | public | fin_payment_schedule | 10 GB | 24 | 5791127 | 6115814 | 2247 | 2259 | 12 | 139 |
| fin_payment_schedule(TOAST) | |||||||||||
| openbravo | pg_default | public | m_transaction | 8674 MB | 14 | 200850 | 481951 | 2637 | |||
| m_transaction(TOAST) | |||||||||||
| openbravo | pg_default | public | m_inout | 7047 MB | 16 | 520185392 | 520185388 | 1411 | 1423 | 4 | |
| m_inout(TOAST) | 62 | 926 | 167 | 129 | |||||||
| openbravo | pg_default | pg_catalog | pg_class | 6373 MB | 7156 | 916507 | 963201 | ||||
| openbravo | pg_default | profile | last_stat_database | 4812 MB | 123176 | 92 | 92 | ||||
| openbravo | pg_default | public | m_inoutline | 3937 MB | 6 | 22467981 | 545233941 | 2662 | 89 | ||
| m_inoutline(TOAST) | |||||||||||
| openbravo | pg_default | public | c_location | 3267 MB | 48 | 17535924 | 36933821 | 410 | 411 | ||
| c_location(TOAST) | |||||||||||
| openbravo | pg_default | public | c_invoice | 2369 MB | 9 | 11719 | 354852 | 849 | 907 | ||
| c_invoice(TOAST) | |||||||||||
| openbravo | pg_default | profile | last_stat_tablespaces | 2044 MB | 43614 | 46 | 46 | ||||
| last_stat_tablespaces(TOAST) | |||||||||||
| openbravo | pg_default | pg_catalog | pg_proc | 1615 MB | 837 | 62685 | 90175 | ||||
| pg_proc(TOAST) | 1863 | 5051 | |||||||||
| openbravo | pg_default | public | ad_table | 1537 MB | 2162 | 62 | 62 | ||||
| ad_table(TOAST) | |||||||||||
| openbravo | pg_default | public | m_product | 1215 MB | 295 | 3083608 | 3394540 | ||||
| m_product(TOAST) | |||||||||||
| openbravo | pg_default | public | c_orderline | 1193 MB | 1 | 607450 | 35855580 | 2630 | 5194 | 2091 | |
| c_orderline(TOAST) | |||||||||||
| openbravo | pg_default | public | obcfr_ticketreprint | 965 MB | 1 | 1511 | 1511 | 1511 | |||
| obcfr_ticketreprint(TOAST) | 5542 | 5814 | 35 | ||||||||
| openbravo | pg_default | public | ad_org | 742 MB | 3166 | 28800494 | 28966418 | 60 | 38 | ||
| ad_org(TOAST) | 42628 | 42628 | |||||||||
| openbravo | pg_default | public | obmobc_logclient | 463 MB | 1 | 2 | 434747 | 75903 | 415015 | ||
| obmobc_logclient(TOAST) | |||||||||||
| DB | Tablespace | Schema | Table | Heap | Ix | TOAST | TOAST-Ix | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Blks | %Total | Blks | %Total | Blks | %Total | Blks | %Total | ||||
| openbravo | pg_default | public | m_inout | 521163168 | 15.12 | 1567417331 | 45.47 | 714 | 0.00 | 5736 | 0.00 |
| openbravo | pg_default | public | m_inoutline | 527619423 | 15.31 | 71491462 | 2.07 | ||||
| openbravo | pg_default | public | ad_user | 46268273 | 1.34 | 127877466 | 3.71 | ||||
| openbravo | pg_default | public | c_bpartner_location | 36510057 | 1.06 | 56716805 | 1.65 | ||||
| openbravo | pg_default | public | c_location | 37354534 | 1.08 | 52843180 | 1.53 | ||||
| openbravo | pg_default | public | c_order | 55130740 | 1.60 | 21335543 | 0.62 | ||||
| openbravo | pg_default | public | ad_org | 29269961 | 0.85 | 28800944 | 0.84 | 42628 | 0.00 | 128313 | 0.00 |
| openbravo | pg_default | public | c_orderline | 28869394 | 0.84 | 2965136 | 0.09 | ||||
| openbravo | pg_default | public | c_country | 14382762 | 0.42 | 14382232 | 0.42 | ||||
| openbravo | pg_default | public | m_costing | 27904390 | 0.81 | ||||||
| openbravo | pg_default | public | c_bpartner | 20844201 | 0.60 | 5823703 | 0.17 | ||||
| openbravo | pg_default | public | fin_payment_schedule | 7519011 | 0.22 | 17457799 | 0.51 | ||||
| openbravo | pg_default | public | fin_payment_detail | 15122810 | 0.44 | 237567 | 0.01 | ||||
| openbravo | pg_default | public | c_import_entry | 8298336 | 0.24 | 1682542 | 0.05 | 182819 | 0.01 | 450712 | 0.01 |
| openbravo | pg_default | public | m_matchpo | 2592352 | 0.08 | 7818818 | 0.23 | ||||
| openbravo | pg_default | public | m_product | 3532937 | 0.10 | 6291503 | 0.18 | ||||
| openbravo | pg_default | public | fin_payment_scheduledetail | 5851609 | 0.17 | 273522 | 0.01 | ||||
| openbravo | pg_default | profile | last_stat_tables | 4685276 | 0.14 | 133367 | 0.00 | ||||
| openbravo | pg_default | public | obmobc_logclient | 1682825 | 0.05 | 2191899 | 0.06 | ||||
| openbravo | pg_default | pg_catalog | pg_class | 1739628 | 0.05 | 1854734 | 0.05 | ||||
| DB | Tablespace | Schema | Table | Heap | Ix | TOAST | TOAST-Ix | Hit(%) | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Blks | %Total | Blks | %Total | Blks | %Total | Blks | %Total | |||||
| openbravo | pg_default | public | obmobc_logclient | 4512 | 2.05 | 162575 | 73.97 | 95.69 | ||||
| openbravo | pg_default | public | c_import_entry_archive | 436 | 0.20 | 2971 | 1.35 | 4878 | 2.22 | 168 | 0.08 | 99.63 |
| openbravo | pg_default | public | c_orderline | 359 | 0.16 | 3754 | 1.71 | 99.99 | ||||
| openbravo | pg_default | public | c_orderlinetax | 137 | 0.06 | 3704 | 1.69 | 94.88 | ||||
| openbravo | pg_default | public | c_invoicelinetax | 107 | 0.05 | 2865 | 1.30 | 92.51 | ||||
| openbravo | pg_default | public | obcfr_ticketreprint | 358 | 0.16 | 2448 | 1.11 | 10 | 0.00 | 98.77 | ||
| openbravo | pg_default | public | fin_payment_scheduledetail | 123 | 0.06 | 2515 | 1.14 | 99.96 | ||||
| openbravo | pg_default | public | c_invoiceline | 167 | 0.08 | 2443 | 1.11 | 98.38 | ||||
| openbravo | pg_default | public | obcfr_tickettax | 128 | 0.06 | 2203 | 1.00 | 94.48 | ||||
| openbravo | pg_default | public | obcfr_ticket | 336 | 0.15 | 1774 | 0.81 | 5 | 0.00 | 96.93 | ||
| openbravo | pg_default | public | m_inout | 172 | 0.08 | 1687 | 0.77 | 40 | 0.02 | 100.00 | ||
| openbravo | pg_default | public | c_order | 313 | 0.14 | 1483 | 0.67 | 100.00 | ||||
| openbravo | pg_default | public | c_ordertax | 85 | 0.04 | 1651 | 0.75 | 93.31 | ||||
| openbravo | pg_default | public | m_transaction | 161 | 0.07 | 1508 | 0.69 | 99.91 | ||||
| openbravo | pg_default | public | m_inoutline | 194 | 0.09 | 1389 | 0.63 | 100.00 | ||||
| openbravo | pg_default | public | c_import_entry | 431 | 0.20 | 26 | 0.01 | 1016 | 0.46 | 20 | 0.01 | 99.99 |
| openbravo | pg_default | public | fin_finacc_transaction | 158 | 0.07 | 1289 | 0.59 | 99.86 | ||||
| openbravo | pg_default | public | c_invoice | 175 | 0.08 | 873 | 0.40 | 99.87 | ||||
| openbravo | pg_default | public | fin_payment_schedule | 185 | 0.08 | 839 | 0.38 | 100.00 | ||||
| openbravo | pg_default | public | fin_payment | 297 | 0.14 | 661 | 0.30 | 99.96 | ||||
| DB | Tablespace | Schema | Table | Ins | Upd | Del | Upd(HOT) | SeqScan | SeqFet | IxScan | IxFet |
|---|---|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | obmobc_logclient | 75903 | 415015 | 1 | 986705 | 2 | 434747 | ||
| obmobc_logclient(TOAST) | |||||||||||
| openbravo | pg_default | public | c_import_entry_archive | 5910 | 25923 | 1 | 148109 | 13503 | 25923 | ||
| c_import_entry_archive(TOAST) | 20615 | 84014 | 136403 | 579543 | |||||||
| openbravo | pg_default | profile | last_stat_indexes | 67298 | 1616 | 67298 | 3 | 184 | 1076768 | 41199 | 405404 |
| openbravo | pg_default | public | c_import_entry | 13530 | 13530 | 13530 | 545981 | 413035 | |||
| c_import_entry(TOAST) | 22432 | 22432 | 35734 | 114044 | |||||||
| openbravo | pg_default | profile | last_stat_tables | 39238 | 4237 | 39238 | 70 | 184 | 627808 | 9310 | 4137731 |
| openbravo | pg_default | pg_catalog | pg_statistic | 15002 | 14535 | 612214 | 517044 | ||||
| pg_statistic(TOAST) | 2275 | 2273 | 55251 | 122258 | |||||||
| openbravo | pg_default | profile | last_stat_user_functions | 9039 | 988 | 9039 | 49 | 388 | 268812 | ||
| last_stat_user_functions(TOAST) | |||||||||||
| openbravo | pg_default | public | m_stock_proposed | 2131 | 10300 | 2 | 63060 | 16953 | 16453 | ||
| m_stock_proposed(TOAST) | |||||||||||
| openbravo | pg_default | profile | sample_stat_tables | 4049 | 4491 | 168 | 77082 | ||||
| openbravo | pg_default | public | c_orderline | 2630 | 5194 | 2091 | 1 | 1963481 | 607450 | 35855580 | |
| c_orderline(TOAST) | |||||||||||
| openbravo | pg_default | public | fin_payment | 1416 | 4366 | 1200 | 24 | 17212053 | 46369 | 46079 | |
| fin_payment(TOAST) | |||||||||||
| openbravo | pg_default | public | fin_payment_scheduledetail | 1416 | 4270 | 1351 | 49692 | 5784233 | |||
| fin_payment_scheduledetail(TOAST) | |||||||||||
| openbravo | pg_default | public | fin_finacc_transaction | 1551 | 3019 | 149012 | 421705 | ||||
| fin_finacc_transaction(TOAST) | |||||||||||
| openbravo | pg_default | public | fin_payment_schedule | 2247 | 2259 | 12 | 139 | 24 | 30683226 | 5791127 | 6115814 |
| fin_payment_schedule(TOAST) | |||||||||||
| openbravo | pg_default | public | ad_sequence | 4262 | 4103 | 32 | 32 | 8773 | 8773 | ||
| ad_sequence(TOAST) | |||||||||||
| openbravo | pg_default | public | ad_process_run | 214 | 214 | 3160 | 2 | 20056 | 10629 | 20936 | |
| ad_process_run(TOAST) | 16 | 180 | 130 | 577 | |||||||
| openbravo | pg_default | public | obpos_applications | 3372 | 3208 | 205 | 12610 | 109113 | 77912 | ||
| obpos_applications(TOAST) | |||||||||||
| openbravo | pg_default | public | m_inout | 1411 | 1423 | 4 | 16 | 11644659 | 520185392 | 520185388 | |
| m_inout(TOAST) | 167 | 129 | 62 | 926 | |||||||
| openbravo | pg_default | public | m_storage_detail | 19 | 2845 | 149 | 8 | 634855 | 405296 | 580863 | |
| m_storage_detail(TOAST) | |||||||||||
| openbravo | pg_default | public | m_inoutline | 2662 | 89 | 6 | 9051558 | 22467981 | 545233941 | ||
| m_inoutline(TOAST) | |||||||||||
| DB | Tablespace | Schema | Table | Upd | Upd(HOT) | Del | Vacuum | AutoVacuum | Analyze | AutoAnalyze |
|---|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | obmobc_logclient | 415015 | 1 | 13 | 1 | 1 | ||
| obmobc_logclient(TOAST) | 1 | |||||||||
| openbravo | pg_default | public | c_import_entry_archive | 25923 | 1 | 2 | 1 | 1 | ||
| c_import_entry_archive(TOAST) | 84014 | 1 | ||||||||
| openbravo | pg_default | profile | last_stat_indexes | 1616 | 3 | 67298 | 35 | 46 | 23 | |
| openbravo | pg_default | public | c_import_entry | 13530 | 13530 | 83 | 143 | |||
| c_import_entry(TOAST) | 22432 | 52 | ||||||||
| openbravo | pg_default | profile | last_stat_tables | 4237 | 70 | 39238 | 35 | 46 | 23 | |
| openbravo | pg_default | pg_catalog | pg_statistic | 15002 | 14535 | 1 | ||||
| pg_statistic(TOAST) | 2273 | 6 | ||||||||
| openbravo | pg_default | public | m_stock_proposed | 10300 | 1 | 13 | 1 | 1 | ||
| m_stock_proposed(TOAST) | 1 | |||||||||
| openbravo | pg_default | profile | last_stat_user_functions | 988 | 49 | 9039 | 35 | 46 | 23 | |
| last_stat_user_functions(TOAST) | ||||||||||
| openbravo | pg_default | public | c_orderline | 5194 | 2091 | |||||
| c_orderline(TOAST) | ||||||||||
| openbravo | pg_default | profile | sample_stat_tables | 4491 | 2 | |||||
| openbravo | pg_default | public | fin_payment | 4366 | 1200 | |||||
| fin_payment(TOAST) | ||||||||||
| openbravo | pg_default | public | fin_payment_scheduledetail | 4270 | 1351 | |||||
| fin_payment_scheduledetail(TOAST) | ||||||||||
| openbravo | pg_default | public | ad_sequence | 4262 | 4103 | 7 | 35 | |||
| ad_sequence(TOAST) | ||||||||||
| openbravo | pg_default | public | ad_process_run | 214 | 3160 | 1 | 13 | 1 | 1 | |
| ad_process_run(TOAST) | 180 | 1 | 13 | |||||||
| openbravo | pg_default | public | obpos_applications | 3372 | 3208 | 45 | 55 | |||
| obpos_applications(TOAST) | ||||||||||
| openbravo | pg_default | public | fin_finacc_transaction | 3019 | ||||||
| fin_finacc_transaction(TOAST) | ||||||||||
| openbravo | pg_default | public | m_storage_detail | 2845 | 149 | 1 | ||||
| m_storage_detail(TOAST) | ||||||||||
| openbravo | pg_default | public | fin_payment_schedule | 2259 | 139 | 12 | ||||
| fin_payment_schedule(TOAST) | ||||||||||
| openbravo | pg_default | public | obpos_app_cashup | 1629 | 125 | |||||
| obpos_app_cashup(TOAST) | ||||||||||
| openbravo | pg_default | public | m_inout | 1423 | 4 | |||||
| m_inout(TOAST) | 129 | |||||||||
| DB | Tablespace | Schema | Table | Size | Growth | Ins | Upd | Del | Upd(HOT) |
|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | ad_process_run | 3720 kB | 80 kB | 214 | 214 | 3160 | |
| ad_process_run(TOAST) | 1184 kB | 40 kB | 16 | 180 | |||||
| openbravo | pg_default | profile | last_stat_user_functions | 248 kB | 24 kB | 9039 | 988 | 9039 | 49 |
| last_stat_user_functions(TOAST) | |||||||||
| openbravo | pg_default | pg_catalog | pg_statistic | 5048 kB | 16 kB | 15002 | 14535 | ||
| pg_statistic(TOAST) | 3792 kB | 2275 | 2273 | ||||||
| openbravo | pg_default | public | ad_process_request | 136 kB | 8192 bytes | 271 | 270 | ||
| ad_process_request(TOAST) | 208 kB | ||||||||
| openbravo | pg_default | public | fin_financial_account | 232 kB | 8192 bytes | 1530 | 1519 | ||
| fin_financial_account(TOAST) | |||||||||
| openbravo | pg_default | profile | last_stat_tables | 1488 kB | 8192 bytes | 39238 | 4237 | 39238 | 70 |
| openbravo | pg_default | profile | stmt_list | 512 kB | 8192 bytes | 6 | 4 | ||
| stmt_list(TOAST) | 168 kB | ||||||||
| DB | Tablespace | Schema | Table | Index | Scans | Blks | %Total |
|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | m_inout | m_inout_key | 520181302 | 1567311092 | 45.47 |
| openbravo | pg_default | public | ad_user | ad_user_partner | 42332858 | 127302086 | 3.69 |
| openbravo | pg_default | public | m_inoutline | m_inoutline_orderline | 21793583 | 65774284 | 1.91 |
| openbravo | pg_default | public | c_bpartner_location | c_bplocation_bpartner | 18759724 | 56412828 | 1.64 |
| openbravo | pg_default | public | c_location | c_location_key | 17535924 | 52840364 | 1.53 |
| openbravo | pg_default | public | ad_org | ad_org_key | 28797141 | 28797043 | 0.84 |
| openbravo | pg_default | public | m_costing | m_costing_product_date | 27903454 | 27903688 | 0.81 |
| openbravo | pg_default | public | c_order | c_order_key | 5853530 | 17710688 | 0.51 |
| openbravo | pg_default | public | fin_payment_schedule | fin_payment_schedule_key | 5765380 | 17346039 | 0.50 |
| openbravo | pg_default | public | c_country | c_country_key | 14380420 | 14380641 | 0.42 |
| openbravo | pg_default | public | m_matchpo | m_matchpo_inout | 2600116 | 7818779 | 0.23 |
| openbravo | pg_default | public | m_product | m_product_key | 3078343 | 6192211 | 0.18 |
| openbravo | pg_default | public | m_inoutline | m_inoutline_product | 635087 | 5547699 | 0.16 |
| openbravo | pg_default | public | c_bpartner | c_bpartner_key | 1807759 | 5433490 | 0.16 |
| openbravo | pg_default | public | c_order | c_order_client_org_date_docno | 249 | 3186809 | 0.09 |
| openbravo | pg_default | public | c_orderline | em_obpos_orderedqty | 532232 | 2303344 | 0.07 |
| openbravo | pg_default | pg_catalog | pg_attribute | pg_attribute_relid_attnum_index | 905402 | 1827906 | 0.05 |
| openbravo | pg_default | pg_catalog | pg_class | pg_class_oid_index | 841152 | 1696057 | 0.05 |
| openbravo | pg_default | public | c_country_trl | c_country_trl_country_langu_un | 687336 | 1374684 | 0.04 |
| openbravo | pg_default | pg_catalog | pg_statistic | pg_statistic_relid_att_inh_index | 569571 | 1148528 | 0.03 |
| DB | Tablespace | Schema | Table | Index | Scans | Blk Reads | %Total | Hits(%) |
|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | obmobc_logclient | obmobc_logclient_timestamp | 80454 | 36.61 | 77.74 | |
| openbravo | pg_default | public | obmobc_logclient | obmobc_logclient_cache | 74128 | 33.73 | 81.93 | |
| openbravo | pg_default | public | obmobc_logclient | obmobc_logclient_term_date | 2 | 4375 | 1.99 | 98.69 |
| openbravo | pg_default | public | obmobc_logclient | obmobc_logclient_context | 2678 | 1.22 | 99.61 | |
| openbravo | pg_default | public | c_import_entry_archive | em_obpos_app_import_ea_fk | 1472 | 0.67 | 76.41 | |
| openbravo | pg_default | public | c_orderlinetax | c_orderlinetax_key | 1318 | 0.60 | 87.55 | |
| openbravo | pg_default | public | c_orderlinetax | c_orderlinetax_orderline | 4872 | 1298 | 0.59 | 95.69 |
| openbravo | pg_default | public | c_orderline | em_obpos_deliveredqty | 1158 | 0.53 | 95.02 | |
| openbravo | pg_default | public | c_orderline | c_orderline_order | 1157 | 0.53 | 95.02 | |
| openbravo | pg_default | public | c_orderline | c_orderline_order2 | 1157 | 0.53 | 95.02 | |
| openbravo | pg_default | public | m_transaction | m_transaction_key | 1136 | 0.52 | 85.09 | |
| openbravo | pg_default | public | c_invoicelinetax | c_invoicelinetax_key | 1119 | 0.51 | 84.83 | |
| openbravo | pg_default | public | c_invoiceline | c_invoiceline_key | 2513 | 1090 | 0.50 | 92.69 |
| openbravo | pg_default | public | c_invoicelinetax | c_invoicelinetax_invoiceline | 1068 | 0.49 | 85.52 | |
| openbravo | pg_default | public | c_orderlinetax | c_orderlinetax_orderid | 998 | 0.45 | 89.64 | |
| openbravo | pg_default | public | obcfr_tickettax | obcfr_tickettax_term_hash | 955 | 0.43 | 82.92 | |
| openbravo | pg_default | public | obcfr_ticketreprint | obcfr_ticketreprint_term_hash | 953 | 0.43 | 83.05 | |
| openbravo | pg_default | public | c_import_entry_archive | c_import_entry_archive_idx | 1 | 930 | 0.42 | 28.52 |
| openbravo | pg_default | public | obcfr_ticket | obcfr_ticket_term_hash | 927 | 0.42 | 82.78 | |
| openbravo | pg_default | public | obmobc_logclient | obmobc_logclient_log_idx | 882 | 0.40 | 31.20 |
| DB | Tablespace | Schema | Table | Index | Index | Table | |||
|---|---|---|---|---|---|---|---|---|---|
| Size | Growth | Ins | Upd | Del | |||||
| openbravo | pg_default | public | ad_process_run | ad_process_run_ad_prequest_id | 880 kB | 24 kB | 195 | 195 | 3160 |
| openbravo | pg_default | pg_catalog | pg_statistic(TOAST) | pg_toast_2619_index | 112 kB | 16 kB | 1793 | 1800 | |
| openbravo | pg_default | public | ad_process_run | ad_process_run_status | 320 kB | 8192 bytes | 175 | 175 | 3160 |
| openbravo | pg_default | profile | sample_statements | ix_sample_stmts_qid | 1208 kB | 8192 bytes | 753 | 828 | |
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 | 155 | 155 | 3160 | |
| DB | Schema | Function | Executions | Time (s) | |||
|---|---|---|---|---|---|---|---|
| Total | Self | Mean | Mean self | ||||
| openbravo | public | m_get_cost | 13951727 | 2205.59 | 75.57 | 0.000 | 0.000 |
| openbravo | public | m_get_cost | 13951727 | 2130.02 | 193.72 | 0.000 | 0.000 |
| openbravo | public | m_get_no_trx_product_cost | 13951727 | 1362.71 | 69.10 | 0.000 | 0.000 |
| openbravo | public | m_get_no_trx_product_cost | 13951727 | 1293.61 | 982.25 | 0.000 | 0.000 |
| openbravo | public | m_get_product_cost | 13951727 | 371.82 | 371.82 | 0.000 | 0.000 |
| openbravo | public | ad_get_org_le_bu | 13749468 | 311.44 | 311.44 | 0.000 | 0.000 |
| openbravo | public | trunc | 20380874 | 195.82 | 195.82 | 0.000 | 0.000 |
| openbravo | public | to_date | 13961849 | 109.63 | 109.63 | 0.000 | 0.000 |
| openbravo | public | c_currency_convert_precision | 13951727 | 92.30 | 92.30 | 0.000 | 0.000 |
| openbravo | profile | take_sample | 23 | 37.85 | 0.02 | 1.645 | 0.001 |
| openbravo | profile | take_sample_subset | 23 | 37.82 | 0.09 | 1.644 | 0.004 |
| openbravo | profile | take_sample | 23 | 37.74 | 2.53 | 1.641 | 0.110 |
| openbravo | public | substract_days | 28593598 | 36.96 | 36.96 | 0.000 | 0.000 |
| openbravo | profile | dblink | 621 | 22.91 | 22.91 | 0.037 | 0.037 |
| openbravo | public | ad_column_identifier | 21914 | 15.93 | 15.74 | 0.001 | 0.001 |
| openbravo | public | ad_column_identifier_std | 20502 | 15.42 | 0.76 | 0.001 | 0.000 |
| openbravo | profile | collect_obj_stats | 23 | 15.04 | 4.40 | 0.654 | 0.191 |
| openbravo | public | m_get_stock_param | 2435 | 14.57 | 14.28 | 0.006 | 0.006 |
| openbravo | profile | collect_pg_stat_statements_stats | 23 | 10.92 | 0.52 | 0.475 | 0.023 |
| openbravo | public | retstk_product_stock_json | 255 | 10.22 | 7.77 | 0.040 | 0.030 |
| DB | Schema | Function | Executions | Time (s) | |||
|---|---|---|---|---|---|---|---|
| Total | Self | Mean | Mean self | ||||
| openbravo | public | substract_days | 28593598 | 36.96 | 36.96 | 0.000 | 0.000 |
| openbravo | public | trunc | 20380874 | 195.82 | 195.82 | 0.000 | 0.000 |
| openbravo | public | to_date | 13961849 | 109.63 | 109.63 | 0.000 | 0.000 |
| openbravo | public | c_currency_convert_precision | 13951727 | 92.30 | 92.30 | 0.000 | 0.000 |
| openbravo | public | m_get_cost | 13951727 | 2205.59 | 75.57 | 0.000 | 0.000 |
| openbravo | public | m_get_cost | 13951727 | 2130.02 | 193.72 | 0.000 | 0.000 |
| openbravo | public | m_get_no_trx_product_cost | 13951727 | 1362.71 | 69.10 | 0.000 | 0.000 |
| openbravo | public | m_get_no_trx_product_cost | 13951727 | 1293.61 | 982.25 | 0.000 | 0.000 |
| openbravo | public | m_get_product_cost | 13951727 | 371.82 | 371.82 | 0.000 | 0.000 |
| openbravo | public | ad_get_org_le_bu | 13749468 | 311.44 | 311.44 | 0.000 | 0.000 |
| openbravo | public | trunc | 1722184 | 6.34 | 6.34 | 0.000 | 0.000 |
| openbravo | public | to_char | 250053 | 0.73 | 0.73 | 0.000 | 0.000 |
| openbravo | public | ad_istriggerenabled | 176988 | 1.72 | 1.72 | 0.000 | 0.000 |
| openbravo | public | to_number | 84502 | 0.73 | 0.73 | 0.000 | 0.000 |
| openbravo | public | ad_isorgincluded | 48295 | 1.07 | 1.07 | 0.000 | 0.000 |
| openbravo | public | uuid_generate_v4 | 30099 | 0.19 | 0.19 | 0.000 | 0.000 |
| openbravo | public | ad_column_identifier | 21914 | 15.93 | 15.74 | 0.001 | 0.001 |
| openbravo | public | ad_column_identifier_std | 20502 | 15.42 | 0.76 | 0.001 | 0.000 |
| openbravo | public | to_char | 15284 | 0.05 | 0.05 | 0.000 | 0.000 |
| openbravo | public | obequals | 14848 | 0.14 | 0.14 | 0.000 | 0.000 |
| DB | Schema | Function | Executions | Time (s) | |||
|---|---|---|---|---|---|---|---|
| Total | Self | Mean | Mean self | ||||
| openbravo | public | c_orderline2_trg | 7824 | 1.23 | 1.13 | 0.000 | 0.000 |
| openbravo | public | fash_orderline_check_status | 7824 | 0.80 | 0.75 | 0.000 | 0.000 |
| openbravo | public | c_ordline_chk_restrictions_trg | 7824 | 0.66 | 0.62 | 0.000 | 0.000 |
| openbravo | public | c_bpartner_trg | 569 | 0.60 | 0.58 | 0.001 | 0.001 |
| openbravo | public | aprm_fin_pmt_check_trg | 5723 | 0.50 | 0.40 | 0.000 | 0.000 |
| openbravo | public | m_transaction_trg | 2622 | 0.49 | 0.35 | 0.000 | 0.000 |
| openbravo | public | c_orderline_trg2 | 7824 | 0.49 | 0.41 | 0.000 | 0.000 |
| openbravo | public | fash_copy_c_orderline | 7824 | 0.43 | 0.19 | 0.000 | 0.000 |
| openbravo | public | intr_m_inoutline_trg | 2233 | 0.40 | 0.14 | 0.000 | 0.000 |
| openbravo | public | aprm_fin_pmt_detail_check_trg | 2816 | 0.40 | 0.35 | 0.000 | 0.000 |
| openbravo | public | fash_update_fshordline_trg | 7824 | 0.40 | 0.34 | 0.000 | 0.000 |
| openbravo | public | phieco_orderline_trg | 7824 | 0.38 | 0.34 | 0.000 | 0.000 |
| openbravo | public | c_orderline_trg | 7824 | 0.38 | 0.32 | 0.000 | 0.000 |
| openbravo | public | intr_c_orderline_trg | 7824 | 0.34 | 0.29 | 0.000 | 0.000 |
| openbravo | public | aprm_fin_finacc_tran_check_trg | 2838 | 0.31 | 0.27 | 0.000 | 0.000 |
| openbravo | public | c_bpartner_location_trg | 999 | 0.29 | 0.15 | 0.000 | 0.000 |
| openbravo | public | m_inoutline_trg | 2016 | 0.26 | 0.16 | 0.000 | 0.000 |
| openbravo | public | c_order_chk_restrinctions_trg | 2013 | 0.22 | 0.16 | 0.000 | 0.000 |
| openbravo | public | obcfr_obpos_applications_trg | 3007 | 0.18 | 0.13 | 0.000 | 0.000 |
| openbravo | public | fin_financial_account_trg2 | 1276 | 0.16 | 0.14 | 0.000 | 0.000 |
| DB | Tablespace | Schema | Table | Vacuum count | Autovacuum count | Ins | Upd | Del | Upd(HOT) |
|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | c_import_entry | 83 | 13530 | 13530 | 13530 | ||
| openbravo | pg_default | public | obpos_applications | 45 | 3372 | 3208 | |||
| openbravo | pg_default | profile | last_stat_tables | 35 | 39238 | 4237 | 39238 | 70 | |
| openbravo | pg_default | profile | last_stat_indexes | 35 | 67298 | 1616 | 67298 | 3 | |
| openbravo | pg_default | profile | last_stat_user_functions | 35 | 9039 | 988 | 9039 | 49 | |
| openbravo | pg_default | public | ad_pinstance | 1 | 13 | 3 | 6 | 298 | 6 |
| openbravo | pg_default | public | ad_process_run | 1 | 13 | 214 | 214 | 3160 | |
| openbravo | pg_default | public | m_stock_proposed | 1 | 13 | 2131 | 10300 | ||
| openbravo | pg_default | public | obmobc_logclient | 1 | 13 | 75903 | 415015 | ||
| openbravo | pg_default | public | ad_sequence | 7 | 4262 | 4103 | |||
| openbravo | pg_default | public | c_import_entry_archive | 1 | 2 | 5910 | 25923 | ||
| openbravo | pg_default | public | ad_ep_instance_para | 2 | 114 | 114 | |||
| openbravo | pg_default | public | ad_session | 1 | 1 | 63 | 377 | 486 | 262 |
| openbravo | pg_default | profile | last_stat_database | 2 | 92 | 92 | |||
| openbravo | pg_default | pg_catalog | pg_statistic | 1 | 15002 | 14535 | |||
| openbravo | pg_default | public | ad_alert | 1 | 72 | 1006 | |||
| openbravo | pg_default | profile | samples | 1 | 9 | 11 | |||
| openbravo | pg_default | profile | sample_stat_cluster | 1 | 11 | 12 | |||
| openbravo | pg_default | profile | sample_stat_archiver | 1 | 5 | 6 | |||
| openbravo | pg_default | profile | last_stat_tablespaces | 1 | 46 | 46 |
| DB | Tablespace | Schema | Table | Analyze count | Autoanalyze count | Ins | Upd | Del | Upd(HOT) |
|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | c_import_entry | 143 | 13530 | 13530 | 13530 | ||
| openbravo | pg_default | profile | last_stat_tables | 46 | 23 | 39238 | 4237 | 39238 | 70 |
| openbravo | pg_default | profile | last_stat_indexes | 46 | 23 | 67298 | 1616 | 67298 | 3 |
| openbravo | pg_default | profile | last_stat_user_functions | 46 | 23 | 9039 | 988 | 9039 | 49 |
| openbravo | pg_default | public | obpos_applications | 55 | 3372 | 3208 | |||
| openbravo | pg_default | public | ad_sequence | 35 | 4262 | 4103 | |||
| openbravo | pg_default | profile | last_stat_tablespaces | 23 | 46 | 46 | |||
| openbravo | pg_default | public | fin_financial_account | 15 | 1530 | 1519 | |||
| openbravo | pg_default | public | ad_process_request | 7 | 271 | 270 | |||
| openbravo | pg_default | public | ad_ep_instance_para | 4 | 114 | 114 | |||
| openbravo | pg_default | public | ad_session | 1 | 2 | 63 | 377 | 486 | 262 |
| openbravo | pg_default | profile | last_stat_database | 3 | 92 | 92 | |||
| openbravo | pg_default | profile | sample_stat_indexes | 3 | 1151 | 1238 | |||
| openbravo | pg_default | profile | sample_statements | 3 | 1017 | 1150 | |||
| openbravo | pg_default | profile | sample_stat_user_functions | 3 | 520 | 551 | |||
| openbravo | pg_default | public | ad_pinstance | 1 | 1 | 3 | 6 | 298 | 6 |
| openbravo | pg_default | public | ad_process_run | 1 | 1 | 214 | 214 | 3160 | |
| openbravo | pg_default | public | c_import_entry_archive | 1 | 1 | 5910 | 25923 | ||
| openbravo | pg_default | public | m_stock_proposed | 1 | 1 | 2131 | 10300 | ||
| openbravo | pg_default | public | obmobc_logclient | 1 | 1 | 75903 | 415015 |
| DB | Tablespace | Schema | Table | Index | ~Vacuum bytes | Vacuum cnt | Autovacuum cnt | IX size | Relsize |
|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | obmobc_logclient | obmobc_logclient_context | 1521 MB | 1 | 13 | 109 MB | 463 MB |
| openbravo | pg_default | public | obmobc_logclient | obmobc_logclient_pk | 1195 MB | 1 | 13 | 85 MB | 463 MB |
| openbravo | pg_default | public | obmobc_logclient | obmobc_logclient_timestamp | 925 MB | 1 | 13 | 66 MB | 463 MB |
| openbravo | pg_default | public | obmobc_logclient | obmobc_logclient_cache | 808 MB | 1 | 13 | 58 MB | 463 MB |
| openbravo | pg_default | public | obmobc_logclient | obmobc_logclient_term_date | 646 MB | 1 | 13 | 46 MB | 463 MB |
| openbravo | pg_default | public | m_stock_proposed | m_stock_proposed_key | 47 MB | 1 | 13 | 3472 kB | 12 MB |
| openbravo | pg_default | public | m_stock_proposed | m_stock_proposed_pinstance_id | 47 MB | 1 | 13 | 3472 kB | 12 MB |
| openbravo | pg_default | public | m_stock_proposed | m_stock_proposed_storage_det | 47 MB | 1 | 13 | 3440 kB | 12 MB |
| openbravo | pg_default | public | c_import_entry_archive | c_import_ea_key | 38 MB | 1 | 2 | 13 MB | 95 MB |
| openbravo | pg_default | public | c_import_entry | c_import_entry_key | 20 MB | 83 | 235 kB | 1792 kB | |
| openbravo | pg_default | public | c_import_entry_archive | em_obpos_app_import_ea_fk | 19 MB | 1 | 2 | 6400 kB | 95 MB |
| openbravo | pg_default | public | c_import_entry | c_import_entry_type_status_idx | 18 MB | 83 | 213 kB | 1792 kB | |
| openbravo | pg_default | profile | last_stat_indexes | pk_last_stat_indexes | 17 MB | 35 | 504 kB | 1936 kB | |
| openbravo | pg_default | public | ad_process_run | ad_process_run_key | 17 MB | 1 | 13 | 1208 kB | 3720 kB |
| openbravo | pg_default | public | c_import_entry | c_import_entry_idx | 12 MB | 83 | 147 kB | 1792 kB | |
| openbravo | pg_default | public | c_import_entry | em_obpos_application_fk | 12 MB | 83 | 147 kB | 1792 kB | |
| openbravo | pg_default | public | ad_process_run | ad_process_run_ad_prequest_id | 12 MB | 1 | 13 | 880 kB | 3720 kB |
| openbravo | pg_default | public | c_import_entry_archive(TOAST) | pg_toast_53118_index | 11 MB | 1 | 11 MB | 947 MB | |
| openbravo | pg_default | profile | last_stat_tables | pk_last_stat_tables | 10 MB | 35 | 304 kB | 1486 kB | |
| openbravo | pg_default | public | c_import_entry_archive | c_import_entry_archive_idx | 9816 kB | 1 | 2 | 3272 kB | 95 MB |
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 | 31104 | 5030 | 13 | 2026-07-17 23:00:56.394842+02 | 9816 kB |
| openbravo | pg_catalog | pg_attribute | 35057 | 1240 | 3 | 2026-07-15 03:13:28.384746+02 | 5296 kB |
Table shows modified tuples statistics since last analyze.
Data in this section is not differential. This data is valid for last report sample only.
| DB | Schema | Table | Live | Dead | Mod | %Mod | Last AA | Size |
|---|---|---|---|---|---|---|---|---|
| openbravo | pg_catalog | pg_attribute | 35057 | 1240 | 2498 | 6 | 2026-07-15 03:13:28.612937+02 | 5296 kB |
| openbravo | profile | sample_stat_tables | 31104 | 5030 | 2486 | 6 | 2026-07-18 20:00:38.274992+02 | 9816 kB |
| openbravo | public | m_product_trl | 14061 | 0 | 108 | 0 | 2026-06-25 01:01:29.881601+02 | 5408 kB |
| Defined settings | ||||
|---|---|---|---|---|
| Setting | reset_val | Unit | Source | Notes |
| checkpoint_completion_target | 0.9 | /etc/postgresql/10/main/postgresql.conf:211 | ||
| client_encoding | UTF8 | |||
| cluster_name | 10/main | /etc/postgresql/10/main/postgresql.conf:477 | ||
| config_file | /etc/postgresql/10/main/postgresql.conf | |||
| data_checksums | on | |||
| data_directory | /var/lib/postgresql/10/main | |||
| DateStyle | ISO, DMY | /etc/postgresql/10/main/postgresql.conf:566 | ||
| default_text_search_config | pg_catalog.spanish | /etc/postgresql/10/main/postgresql.conf:588 | ||
| effective_cache_size | 9830400 | 8kB | /etc/postgresql/10/main/postgresql.conf:315 | |
| effective_io_concurrency | 200 | /etc/postgresql/10/main/postgresql.conf:164 | ||
| external_pid_file | /var/run/postgresql/10-main.pid | /etc/postgresql/10/main/postgresql.conf:49 | ||
| hba_file | /etc/postgresql/10/main/pg_hba.conf | |||
| ident_file | /etc/postgresql/10/main/pg_ident.conf | |||
| lc_collate | es_ES.UTF-8 | |||
| lc_ctype | es_ES.UTF-8 | |||
| lc_messages | en_US.UTF-8 | /etc/postgresql/10/main/conf.d/15-pgbadger.conf:11 | ||
| lc_monetary | es_ES.UTF-8 | /etc/postgresql/10/main/postgresql.conf:583 | ||
| lc_numeric | en_US.UTF-8 | /etc/postgresql/10/main/conf.d/01-openbravo-standard-postgres10.conf:38 | ||
| lc_time | es_ES.UTF-8 | /etc/postgresql/10/main/postgresql.conf:585 | ||
| listen_addresses | * | /etc/postgresql/10/main/postgresql.conf:59 | ||
| log_autovacuum_min_duration | 0 | ms | /etc/postgresql/10/main/conf.d/15-pgbadger.conf:9 | |
| log_checkpoints | on | /etc/postgresql/10/main/conf.d/01-openbravo-standard-postgres10.conf:26 | ||
| log_connections | on | /etc/postgresql/10/main/conf.d/15-pgbadger.conf:1 | ||
| log_disconnections | on | /etc/postgresql/10/main/conf.d/15-pgbadger.conf:2 | ||
| log_line_prefix | %t [%p]:[%l-1] db=%d,user=%u,app=%a,client=%h | /etc/postgresql/10/main/conf.d/15-pgbadger.conf:4 | ||
| log_lock_waits | on | /etc/postgresql/10/main/conf.d/15-pgbadger.conf:5 | ||
| log_min_duration_statement | 1000 | ms | /etc/postgresql/10/main/conf.d/15-pgbadger.conf:10 | |
| log_temp_files | 0 | kB | /etc/postgresql/10/main/conf.d/15-pgbadger.conf:7 | |
| log_timezone | localtime | /etc/postgresql/10/main/conf.d/01-openbravo-standard-postgres10.conf:22 | ||
| maintenance_work_mem | 2097152 | kB | /etc/postgresql/10/main/postgresql.conf:123 | |
| max_connections | 200 | /etc/postgresql/10/main/postgresql.conf:64 | ||
| max_locks_per_transaction | 128 | /etc/postgresql/10/main/conf.d/01-openbravo-standard-postgres10.conf:17 | ||
| max_stack_depth | 2048 | kB | ||
| min_wal_size | 4096 | MB | /etc/postgresql/10/main/postgresql.conf:210 | |
| pg_conf_load_time | 2026-07-15 03:00:05.218477+02 | |||
| pg_postmaster_start_time | 2026-07-15 03:00:05.809034+02 | |||
| pg_stat_statements.max | 10000 | /etc/postgresql/10/main/postgresql.conf:660 | ||
| pg_stat_statements.track | all | /etc/postgresql/10/main/postgresql.conf:661 | ||
| random_page_cost | 1.1 | /etc/postgresql/10/main/postgresql.conf:307 | ||
| server_encoding | UTF8 | |||
| shared_buffers | 3276800 | 8kB | /etc/postgresql/10/main/postgresql.conf:113 | |
| shared_preload_libraries | $libdir/pg_stat_statements | /etc/postgresql/10/main/postgresql.conf:659 | ||
| ssl | on | /etc/postgresql/10/main/postgresql.conf:79 | ||
| ssl_cert_file | /etc/ssl/certs/ssl-cert-snakeoil.pem | /etc/postgresql/10/main/postgresql.conf:84 | ||
| ssl_key_file | /etc/ssl/private/ssl-cert-snakeoil.key | /etc/postgresql/10/main/postgresql.conf:85 | ||
| stats_temp_directory | /var/run/postgresql/10-main.pg_stat_tmp | /etc/postgresql/10/main/postgresql.conf:493 | ||
| TimeZone | localtime | /etc/postgresql/10/main/conf.d/01-openbravo-standard-postgres10.conf:23 | ||
| timezone_abbreviations | Default | |||
| track_functions | all | /etc/postgresql/10/main/conf.d/15-pgbadger.conf:8 | ||
| version | PostgreSQL 10.23 (Ubuntu 10.23-0ubuntu0.18.04.2) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0, 64-bit | |||
| wal_buffers | 2048 | 8kB | /etc/postgresql/10/main/postgresql.conf:198 | |
| work_mem | 32768 | kB | /etc/postgresql/10/main/postgresql.conf:122 | |
| Default settings | ||||
| Setting | reset_val | Unit | Source | Notes |
| allow_in_place_tablespaces | off | |||
| allow_system_table_mods | off | |||
| application_name | ||||
| archive_command | ||||
| archive_mode | off | |||
| archive_timeout | 0 | s | ||
| array_nulls | on | |||
| authentication_timeout | 60 | s | ||
| autovacuum | on | |||
| autovacuum_analyze_scale_factor | 0.1 | |||
| autovacuum_analyze_threshold | 50 | |||
| autovacuum_freeze_max_age | 200000000 | |||
| autovacuum_max_workers | 3 | |||
| autovacuum_multixact_freeze_max_age | 400000000 | |||
| autovacuum_naptime | 60 | s | ||
| autovacuum_vacuum_cost_delay | 20 | ms | ||
| autovacuum_vacuum_cost_limit | -1 | |||
| autovacuum_vacuum_scale_factor | 0.2 | |||
| autovacuum_vacuum_threshold | 50 | |||
| autovacuum_work_mem | -1 | kB | ||
| backend_flush_after | 0 | 8kB | ||
| backslash_quote | safe_encoding | |||
| bgwriter_delay | 200 | ms | ||
| bgwriter_flush_after | 64 | 8kB | ||
| bgwriter_lru_maxpages | 100 | |||
| bgwriter_lru_multiplier | 2 | |||
| block_size | 8192 | |||
| bonjour | off | |||
| bonjour_name | ||||
| bytea_output | hex | |||
| check_function_bodies | on | |||
| checkpoint_flush_after | 32 | 8kB | ||
| checkpoint_timeout | 300 | s | ||
| checkpoint_warning | 30 | s | ||
| client_min_messages | notice | |||
| commit_delay | 0 | |||
| commit_siblings | 5 | |||
| constraint_exclusion | partition | |||
| cpu_index_tuple_cost | 0.005 | |||
| cpu_operator_cost | 0.0025 | |||
| cpu_tuple_cost | 0.01 | |||
| cursor_tuple_fraction | 0.1 | |||
| data_sync_retry | off | |||
| db_user_namespace | off | |||
| deadlock_timeout | 1000 | ms | ||
| debug_assertions | off | |||
| debug_pretty_print | on | |||
| debug_print_parse | off | |||
| debug_print_plan | off | |||
| debug_print_rewritten | off | |||
| default_statistics_target | 100 | /etc/postgresql/10/main/postgresql.conf:329 | ||
| default_tablespace | ||||
| default_transaction_deferrable | off | |||
| default_transaction_isolation | read committed | |||
| default_transaction_read_only | off | |||
| default_with_oids | off | |||
| dynamic_library_path | $libdir | |||
| dynamic_shared_memory_type | posix | /etc/postgresql/10/main/postgresql.conf:127 | ||
| enable_bitmapscan | on | |||
| enable_gathermerge | on | |||
| enable_hashagg | on | |||
| enable_hashjoin | on | |||
| enable_indexonlyscan | on | |||
| enable_indexscan | on | |||
| enable_material | on | |||
| enable_mergejoin | on | |||
| enable_nestloop | on | |||
| enable_seqscan | on | |||
| enable_sort | on | |||
| enable_tidscan | on | |||
| escape_string_warning | on | |||
| event_source | PostgreSQL | |||
| exit_on_error | off | |||
| extra_float_digits | 0 | |||
| force_parallel_mode | off | |||
| from_collapse_limit | 8 | |||
| fsync | on | |||
| full_page_writes | on | |||
| geqo | on | |||
| geqo_effort | 5 | |||
| geqo_generations | 0 | |||
| geqo_pool_size | 0 | |||
| geqo_seed | 0 | |||
| geqo_selection_bias | 2 | |||
| geqo_threshold | 12 | |||
| gin_fuzzy_search_limit | 0 | |||
| gin_pending_list_limit | 4096 | kB | ||
| hot_standby | on | |||
| hot_standby_feedback | off | |||
| huge_pages | try | |||
| idle_in_transaction_session_timeout | 0 | ms | ||
| ignore_checksum_failure | off | |||
| ignore_system_indexes | off | |||
| integer_datetimes | on | |||
| IntervalStyle | postgres | |||
| join_collapse_limit | 8 | |||
| krb_caseins_users | off | |||
| krb_server_keyfile | FILE:/etc/postgresql-common/krb5.keytab | |||
| local_preload_libraries | ||||
| lock_timeout | 0 | ms | ||
| lo_compat_privileges | off | |||
| log_destination | stderr | |||
| log_directory | log | |||
| log_duration | off | /etc/postgresql/10/main/conf.d/15-pgbadger.conf:3 | ||
| log_error_verbosity | default | |||
| log_executor_stats | off | |||
| log_file_mode | 384 | |||
| log_filename | postgresql-%Y-%m-%d_%H%M%S.log | |||
| logging_collector | off | |||
| log_hostname | off | |||
| log_min_error_statement | error | |||
| log_min_messages | warning | |||
| log_parser_stats | off | |||
| log_planner_stats | off | |||
| log_replication_commands | off | |||
| log_rotation_age | 1440 | min | ||
| log_rotation_size | 10240 | kB | ||
| log_statement | none | /etc/postgresql/10/main/conf.d/15-pgbadger.conf:6 | ||
| log_statement_stats | off | |||
| log_truncate_on_rotation | off | |||
| max_files_per_process | 1000 | |||
| max_function_args | 100 | |||
| max_identifier_length | 63 | |||
| max_index_keys | 32 | |||
| max_logical_replication_workers | 4 | |||
| max_parallel_workers | 8 | |||
| max_parallel_workers_per_gather | 2 | |||
| max_pred_locks_per_page | 2 | |||
| max_pred_locks_per_relation | -2 | |||
| max_pred_locks_per_transaction | 64 | |||
| max_prepared_transactions | 0 | |||
| max_replication_slots | 10 | |||
| max_standby_archive_delay | 30000 | ms | ||
| max_standby_streaming_delay | 30000 | ms | ||
| max_sync_workers_per_subscription | 2 | |||
| max_wal_senders | 10 | |||
| max_wal_size | 1024 | MB | /etc/postgresql/10/main/postgresql.conf:209 | |
| max_worker_processes | 8 | |||
| min_parallel_index_scan_size | 64 | 8kB | ||
| min_parallel_table_scan_size | 1024 | 8kB | ||
| old_snapshot_threshold | -1 | min | ||
| operator_precedence_warning | off | |||
| parallel_setup_cost | 1000 | |||
| parallel_tuple_cost | 0.1 | |||
| password_encryption | md5 | |||
| pg_profile.topn | 20 | |||
| pg_stat_statements.save | on | |||
| pg_stat_statements.track_utility | on | |||
| port | 5432 | /etc/postgresql/10/main/postgresql.conf:63 | ||
| post_auth_delay | 0 | s | ||
| pre_auth_delay | 0 | s | ||
| quote_all_identifiers | off | |||
| replacement_sort_tuples | 150000 | |||
| restart_after_crash | on | |||
| row_security | on | |||
| search_path | "$user", public | |||
| segment_size | 131072 | 8kB | ||
| seq_page_cost | 1 | |||
| server_version | 10.23 (Ubuntu 10.23-0ubuntu0.18.04.2) | |||
| server_version_num | 100023 | |||
| session_preload_libraries | ||||
| session_replication_role | origin | |||
| ssl_ca_file | ||||
| ssl_ciphers | HIGH:MEDIUM:+3DES:!aNULL | |||
| ssl_crl_file | ||||
| ssl_dh_params_file | ||||
| ssl_ecdh_curve | prime256v1 | |||
| ssl_prefer_server_ciphers | on | |||
| standard_conforming_strings | on | |||
| statement_timeout | 0 | ms | ||
| superuser_reserved_connections | 3 | |||
| synchronize_seqscans | on | |||
| synchronous_commit | on | |||
| synchronous_standby_names | ||||
| syslog_facility | local0 | |||
| syslog_ident | postgres | |||
| syslog_sequence_numbers | on | |||
| syslog_split_messages | on | |||
| system_identifier | 7083440090454890352 | |||
| tcp_keepalives_count | 0 | |||
| tcp_keepalives_idle | 0 | s | ||
| tcp_keepalives_interval | 0 | s | ||
| temp_buffers | 1024 | 8kB | ||
| temp_file_limit | -1 | kB | ||
| temp_tablespaces | ||||
| trace_notify | off | |||
| trace_recovery_messages | log | |||
| trace_sort | off | |||
| track_activities | on | |||
| track_activity_query_size | 1024 | |||
| track_commit_timestamp | off | |||
| track_counts | on | |||
| track_io_timing | off | |||
| transaction_deferrable | off | |||
| transaction_isolation | default | |||
| transaction_read_only | off | |||
| transform_null_equals | off | |||
| unix_socket_directories | /var/run/postgresql | /etc/postgresql/10/main/postgresql.conf:66 | ||
| unix_socket_group | ||||
| unix_socket_permissions | 511 | |||
| update_process_title | on | |||
| vacuum_cost_delay | 0 | ms | ||
| vacuum_cost_limit | 200 | |||
| vacuum_cost_page_dirty | 20 | |||
| vacuum_cost_page_hit | 1 | |||
| vacuum_cost_page_miss | 10 | |||
| vacuum_defer_cleanup_age | 0 | |||
| vacuum_freeze_min_age | 50000000 | |||
| vacuum_freeze_table_age | 150000000 | |||
| vacuum_multixact_freeze_min_age | 5000000 | |||
| vacuum_multixact_freeze_table_age | 150000000 | |||
| wal_block_size | 8192 | |||
| wal_compression | off | |||
| wal_consistency_checking | ||||
| wal_keep_segments | 0 | |||
| wal_level | replica | |||
| wal_log_hints | off | |||
| wal_receiver_status_interval | 10 | s | ||
| wal_receiver_timeout | 60000 | ms | ||
| wal_retrieve_retry_interval | 5000 | ms | ||
| wal_segment_size | 2048 | 8kB | ||
| wal_sender_timeout | 60000 | ms | ||
| wal_sync_method | fdatasync | |||
| wal_writer_delay | 200 | ms | ||
| wal_writer_flush_after | 128 | 8kB | ||
| xmlbinary | base64 | |||
| xmloption | content | |||
| zero_damaged_pages | off | |||