Postgres profile report (StartID: 332, EndID: 355)

pg_profile version 0.3.6

Server name: local

Report interval: 2026-07-13 04:00:02+02 - 2026-07-14 03:00:01+02

Warning!Report includes 23 sample(s) with setting pg_stat_statements.track = all.Value of %Total columns may be incorrect.

Report sections

Server statistics

Database statistics

DatabaseTransactionsBlock statisticsTuplesTemp filesSizeGrowth
CommitsRollbacksDeadlocksHit(%)ReadHitRetFetInsUpdDelSizeFiles
openbravo1226761404100.001449203804884609331147645916313227775120137622140874194 GB1714386021 GB651 MB
postgres11711100.00165888519030173483536327 kB
Total1343871404100.001449213805543494331337947616316711305120137622140874194 GB1714386021 GB651 MB

Statement statistics by database

DatabaseCallsTime (s)Fetched (blk)Dirtied (blk)Temp (blk)Local (blk)Statements
ExecReadWriteTrgSharedLocalSharedLocalReadWriteReadWrite
openbravo5918986720567.3524.533964843491605876429195322892277121753
postgres561411.5186809346
template163486.077176276
Total5920182920584.9324.533964937476605876429195322892277122375

Cluster statistics

MetricValue
Scheduled checkpoints275
Requested checkpoints2
Checkpoint write time (s)32873.97
Checkpoint sync time (s)8.19
Checkpoints buffers written701183
Background buffers written
Backend buffers written84990
Backend fsync count
Bgwriter interrupts (too many buffers)
Number of buffers allocated144897
WAL generated4581 MB
WAL segments archived
WAL segments archive failed

Tablespace statistics

TablespacePathSizeGrowth
pg_default21 GB651 MB
pg_global766 kB

SQL query statistics

Top SQL by execution time

Query IDDatabaseExec (s)%TotalRowsExecution times (ms)Executions
MeanMinMaxStdErr

29bf42b1ab

[7d43ad7e]

openbravo8813.7542.82132140261101718.3481096615.2541107631.7743796.3478

4af3e2b8c4

[26c6f357]

openbravo5529.0026.86633373691124.939677756.020701346.9317346.3898

d11440f550

[dfbf0ec0]

openbravo1965.589.551643758.27193.0426800.5831791.244523

3f546d3e2b

[a0643fcb]

openbravo465.472.26783212858183.64257414.68858936.821493.1378

6d9be72c35

[f084a995]

openbravo382.741.862745139.431130.307187.5303.6092745

bd39ae5005

[75f84ff3]

openbravo365.371.77133.104124.658178.4983.4242745

fe2c4fe6df

[4c390f69]

openbravo263.211.28510867732901.15028521.43438216.9593089.7138

2841013087

[dab326f6]

openbravo206.081.00569481825759.39820560.58431635.9243675.9338

c5df179779

[2870663b]

openbravo180.040.87138473990.0130.00610.0910.00513847399

b52b0c82ea

[4f5926de]

openbravo163.220.79270716420402.14012789.87928027.5364453.6408

08db126a91

[b0ebb687]

openbravo101.530.49301472812691.29611911.64113842.831611.8158

102454699d

[1596f0d4]

openbravo84.190.415206475.9946386.7416663.88863.95013

6db59d04c7

[f5a01114]

openbravo81.330.40431891.3931856.8391968.54427.75543

f0238ffe1b

[806faf8c]

openbravo76.940.3758865376936.72776936.72776936.7271

018c5dd71e

[eb509fc7]

openbravo75.160.3727071179394.7688970.5099596.989242.4238

0b24cb5d2f

[738f9776]

openbravo74.300.3658347374296.74474296.74474296.7441

61aed5765c

[9c0a6d60]

openbravo65.470.327361984.0611925.2122088.37038.33633

1f5a522082

[f27cc8c7]

openbravo62.410.3013621327.8571016.2931529.092114.53447

e0fba79faa

[86dd33b4]

openbravo58.850.29138473990.0040.0032.3470.00213847399

3a2c9ad99b

[3373e588]

openbravo58.750.29296482098.3572067.7752157.89117.87228

Top SQL by executions

Query IDDatabaseExecutions%TotalRowsMean(ms)Min(ms)Max(ms)StdErr(ms)Elapsed(s)

c5df179779

[2870663b]

openbravo1384739923.39138473990.0130.00610.0910.005180.0

e0fba79faa

[86dd33b4]

openbravo1384739923.39138473990.0040.0032.3470.00258.9

75c88383e3

[196c6f74]

openbravo1384739923.39138473990.0030.0027.1000.00336.6

d3dcdac298

[ce4e88c2]

openbravo1364472223.05136447220.0040.0039.1800.00356.9

0483033486

[2e63909b]

openbravo12330012.085691520.0050.0012.3100.0045.8

19825253ef

[cf182c3a]

openbravo3749440.63101680.0250.00718.3470.0599.3

11b0ff0695

[7bce5566]

openbravo1290150.2227450.0050.0041.0650.0060.7

8e8235137e

[b19ed954]

openbravo1276460.221276460.0090.0032.3640.0121.2

5f8e9d0065

[8e21a910]

openbravo1236650.211236650.0080.0029.4290.0281.0

74a1d87233

[3cb4d968]

openbravo1224800.211224800.0030.0020.4620.0020.4

93a759b1da

[6f9b1a85]

openbravo908400.150.0020.0002.5890.0090.1

9455753479

[2049516b]

openbravo894520.150.0010.0000.2000.0020.1

caede7e47b

[3051ec96]

openbravo524990.09524990.2500.107114.1291.74813.1

1eec949137

[6b7612aa]

openbravo397440.07397440.0030.0020.0490.0010.1

3ca20ddb6c

[afe3cf8b]

openbravo365910.06365910.0250.01120.1930.1080.9

3e80950586

[5c26872c]

openbravo280770.05280770.0150.0070.6840.0100.4

27b400c7db

[8a770ed5]

openbravo186720.03186720.0840.0162.5680.1021.6

bf60147669

[9e09aee4]

openbravo184030.03184030.0490.0122.2880.0320.9

d1e21ddf3e

[c78d8d00]

openbravo156020.03156020.3740.0304.3750.1995.8

e5e056b68d

[bc36ac07]

openbravo141830.02141830.0190.0058.2490.0750.3

Top SQL by shared blocks fetched

Query IDDatabaseblks fetched%TotalHits(%)Elapsed(s)RowsExecutions

4af3e2b8c4

[26c6f357]

openbravo252838191763.77100.005529.06333738

d11440f550

[dfbf0ec0]

openbravo42349316610.68100.001965.6164523

3f546d3e2b

[a0643fcb]

openbravo1887559734.76100.00465.578321288

29bf42b1ab

[7d43ad7e]

openbravo1223135503.08100.008813.7132140268

2841013087

[dab326f6]

openbravo756613171.91100.00206.156948188

b52b0c82ea

[4f5926de]

openbravo489775751.24100.00163.227071648

08db126a91

[b0ebb687]

openbravo476194691.20100.00101.530147288

c5df179779

[2870663b]

openbravo416280701.05100.00180.01384739913847399

6d9be72c35

[f084a995]

openbravo410724501.04100.00382.727452745

bd39ae5005

[75f84ff3]

openbravo382323600.96100.00365.42745

a7629f58d0

[2b7e2bce]

openbravo353780330.89100.0058.76262

d3dcdac298

[ce4e88c2]

openbravo273753170.69100.0056.91364472213644722

018c5dd71e

[eb509fc7]

openbravo272817230.69100.0075.227071178

6db59d04c7

[f5a01114]

openbravo245525770.62100.0081.34343

61aed5765c

[9c0a6d60]

openbravo232701420.59100.0065.573633

fe2c4fe6df

[4c390f69]

openbravo218327740.55100.00263.251086778

102454699d

[1596f0d4]

openbravo180871820.46100.0084.252013

133291c890

[be089ba]

openbravo164181700.41100.0033.76

75c88383e3

[196c6f74]

openbravo138473990.35100.0036.61384739913847399

e0fba79faa

[86dd33b4]

openbravo138473990.35100.0058.91384739913847399

Top SQL by shared blocks read

Query IDDatabaseReads%TotalHits(%)Elapsed(s)RowsExecutions

538a251d53

[ca0b25f5]

openbravo6400236.9294.8515.127452745

caede7e47b

[3051ec96]

openbravo87805.0799.3813.15249952499

181fd1b092

[b76c5e2]

openbravo39242.2694.841.818291829

c6bb0f6f9b

[5c31e9de]

openbravo36722.1290.240.816061606

7cd7d30ef6

[e4c45266]

openbravo36722.1296.252.12539

4f42690015

[38c3f6e1]

openbravo30581.7698.261.7165630

f3f57fdf42

[4ae26da8]

openbravo30401.7598.342.566

a874297fd2

[67d29389]

openbravo30401.7598.332.566

017d00aa12

[a852adf9]

openbravo29341.6996.411.0165630

8cb37f78ee

[e2543c48]

openbravo26491.5398.903.016721672

2d19e5b311

[b34f1d1f]

openbravo26391.5293.582.010401040

70caf7bb1e

[f7c054b4]

openbravo22671.3194.181.310041004

86d303be14

[73c81c2]

openbravo21851.2699.170.311

6a9f69c63c

[dbfd872]

openbravo21321.2399.8012.23636

e51fcb1765

[7714882d]

openbravo21321.2399.8012.23636

1a26268f3a

[d15fa5ac]

openbravo21321.2399.8012.23636

5d08533031

[284ff9b1]

openbravo20971.2199.677.910841084

604436a476

[3afdf1db]

openbravo18491.0798.401.028022802

616a44c111

[97aab45d]

openbravo18111.0494.691.4952952

66bc870e45

[d37bd6d7]

openbravo17951.0496.400.9901901

Top SQL by shared blocks dirtied

Query IDDatabaseDirtied%TotalHits(%)Elapsed(s)RowsExecutions

caede7e47b

[3051ec96]

openbravo12429020.5199.3813.15249952499

538a251d53

[ca0b25f5]

openbravo6415710.5994.8515.127452745

6d9be72c35

[f084a995]

openbravo6131110.12100.00382.727452745

382d19fc6d

[40fd3671]

openbravo182703.02100.0041.123

905bffc89c

[92975a8e]

openbravo182703.02100.0041.12323

8cb37f78ee

[e2543c48]

openbravo94511.5698.903.016721672

50e85a5d5e

[fed47e50]

openbravo93521.5499.979.516521652

4f42690015

[38c3f6e1]

openbravo90701.5098.261.7165630

48f140c821

[edb3cd2d]

openbravo74331.2399.850.6165630

fe62dd3708

[fcea205c]

openbravo73161.2198.960.815901590

4f9621bcb7

[ddcc675a]

openbravo69781.1599.241.3466466

528c231cbe

[b1de800e]

openbravo69471.1599.750.730553055

313b1ecda9

[978c2f22]

openbravo69031.1499.553.466936693

6b67fe6923

[5d2e4e6c]

openbravo64681.0798.741.715451545

d1c0672c81

[a1b7c5f]

openbravo63231.0498.812.115451545

24f0f61153

[84a8bcfc]

openbravo60831.0098.621.4907907

2d19e5b311

[b34f1d1f]

openbravo54210.8993.582.010401040

f3f57fdf42

[4ae26da8]

openbravo53360.8898.342.566

a874297fd2

[67d29389]

openbravo53360.8898.332.566

181fd1b092

[b76c5e2]

openbravo51000.8494.841.818291829

Top SQL by shared blocks written

No data in this section

Top SQL by temp usage

Query IDDatabaseLocal fetchedHits(%)Local (blk)Temp (blk)Elapsed(s)RowsExecutions
Write%TotalRead%TotalWrite%TotalRead%Total

29bf42b1ab

[7d43ad7e]

openbravo1775450561.393489079981.298813.7132140268

d11440f550

[dfbf0ec0]

openbravo888804630.73593122513.821965.6164523

2841013087

[dab326f6]

openbravo11305983.9111312222.64206.156948188

102454699d

[1596f0d4]

openbravo4348281.502513100.5984.252013

3a2c9ad99b

[3373e588]

openbravo2579260.892580940.6058.82964828

7e35c14916

[be51200d]

openbravo2526730.872525860.5941.2168387

fe2c4fe6df

[4c390f69]

openbravo1592710.551593670.37263.251086778

fb45d4a61f

[61e8ee09]

openbravo351820.12351810.0811.7251

d3457bdce0

[25bcd965]

openbravo97420.0397480.024.28451

Complete list of SQL texts

QueryIDQuery Text
86d303be14select order0_.C_Order_ID as c_order_1_255_, order0_.AD_Client_ID as ad_clien2_255_, order0_.AD_Org_ID as ad_org_i3_255_, order0_.IsActive as isactive4_255_, order0_.Created as created5_255_, order0_.CreatedBy as createdb6_255_, order0_.Updated as updated7_255_, order0_.UpdatedBy as updatedb8_255_, order0_.IsSOTrx as issotrx9_255_, order0_.DocumentNo as documen10_255_, order0_.DocStatus as docstat11_255_, order0_.DocAction as docacti12_255_, order0_.Processing as process13_255_, order0_.Processed as process14_255_, order0_.C_DocType_ID as c_docty15_255_, order0_.C_DocTypeTarget_ID as c_docty16_255_, order0_.Description as descrip17_255_, order0_.IsDelivered as isdeliv18_255_, order0_.IsInvoiced as isinvoi19_255_, order0_.IsPrinted as isprint20_255_, order0_.IsSelected as isselec21_255_, order0_.SalesRep_ID as salesre22_255_, order0_.DateOrdered as dateord23_255_, order0_.DatePromised as datepro24_255_, order0_.DatePrinted as datepri25_255_, order0_.DateAcct as dateacc26_255_, order0_.C_BPartner_ID as c_bpart27_255_, order0_.BillTo_ID as billto_28_255_, order0_.C_BPartner_Location_ID as c_bpart29_255_, order0_.POReference as porefer30_255_, order0_.IsDiscountPrinted as isdisco31_255_, order0_.C_Currency_ID as c_curre32_255_, order0_.PaymentRule as payment33_255_, order0_.C_PaymentTerm_ID as c_payme34_255_, order0_.InvoiceRule as invoice35_255_, order0_.DeliveryRule as deliver36_255_, order0_.FreightCostRule as freight37_255_, order0_.FreightAmt as freight38_255_, order0_.DeliveryViaRule as deliver39_255_, order0_.M_Shipper_ID as m_shipp40_255_, order0_.C_Charge_ID as c_charg41_255_, order0_.ChargeAmt as chargea42_255_, order0_.PriorityRule as priorit43_255_, order0_.TotalLines as totalli44_255_, order0_.GrandTotal as grandto45_255_, order0_.M_Warehouse_ID as m_wareh46_255_, order0_.M_PriceList_ID as m_price47_255_, order0_.IsTaxIncluded as istaxin48_255_, order0_.C_Campaign_ID as c_campa49_255_, order0_.C_Project_ID as c_proje50_255_, order0_.C_Activity_ID as c_activ51_255_, order0_.Posted as posted52_255_, order0_.AD_User_ID as ad_user53_255_, order0_.CopyFrom as copyfro54_255_, order0_.DropShip_BPartner_ID as dropshi55_255_, order0_.DropShip_Location_ID as dropshi56_255_, order0_.DropShip_User_ID as dropshi57_255_, order0_.IsSelfService as isselfs58_255_, order0_.AD_OrgTrx_ID as ad_orgt59_255_, order0_.User1_ID as user60_255_, order0_.User2_ID as user61_255_, order0_.Deliverynotes as deliver62_255_, order0_.C_Incoterms_ID as c_incot63_255_, order0_.Incotermsdescription as incoter64_255_, order0_.Generatetemplate as generat65_255_, order0_.Delivery_Location_ID as deliver66_255_, order0_.CopyFromPO as copyfro67_255_, order0_.FIN_Paymentmethod_ID as fin_pay68_255_, order0_.FIN_Payment_Priority_ID as fin_pay69_255_, order0_.RM_PickFromShipment as rm_pick70_255_, order0_.RM_ReceiveMaterials as rm_rece71_255_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_255_, order0_.RM_CreateInvoice as rm_crea73_255_, order0_.C_Return_Reason_ID as c_retur74_255_, order0_.RM_AddOrphanLine as rm_addo75_255_, order0_.A_Asset_ID as a_asset76_255_, order0_.Calculate_Promotions as calcula77_255_, order0_.C_Costcenter_ID as c_costc78_255_, order0_.Convertquotation as convert79_255_, order0_.C_Reject_Reason_ID as c_rejec80_255_, order0_.validuntil as validun81_255_, order0_.Quotation_ID as quotati82_255_, order0_.SO_Res_Status as so_res_83_255_, order0_.Create_POLines as create_84_255_, order0_.EM_Obdisc_Addpack as em_obdi85_255_, order0_.Iscashvat as iscashv86_255_, order0_.EM_OBMFM_Selectfreight as em_obmf87_255_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf88_255_, order0_.RM_Pickfromreceipt as rm_pick89_255_, order0_.Cancelandreplace as cancela90_255_, order0_.EM_APRM_AddPayment as em_aprm91_255_, order0_.EM_OBMFM_Delivery_Charges as em_obmf92_255_, order0_.Confirmcancelandreplace as confirm93_255_, order0_.EM_Fash_Datelimit as em_fash94_255_, order0_.EM_OBMFM_Freight_ID as em_obmf95_255_, order0_.EM_Obwpl_Generatepicking as em_obwp96_255_, order0_.Cancelledorder_id as cancell97_255_, order0_.EM_Fash_Datevalue as em_fash98_255_, order0_.EM_OBMFM_Weight as em_obmf99_255_, order0_.EM_Obwpl_Isinpickinglist as em_obw100_255_, order0_.EM_Fash_Sendbeforedate as em_fas101_255_, order0_.EM_Obwpl_Readypl as em_obw102_255_, order0_.EM_Poss_Businessdate as em_pos103_255_, order0_.Replacedorder_id as replac104_255_, order0_.EM_Fash_Order_Type_ID as em_fas105_255_, order0_.Iscancelled as iscanc106_255_, order0_.EM_OBMFM_Weight_Uom_ID as em_obm107_255_, order0_.Replacementorder_ID as replac108_255_, order0_.EM_OBMFM_Set_Weight as em_obm109_255_, order0_.BPartner_ExtRef as bpartn110_255_, order0_.C_Alternate_Location_ID as c_alte111_255_, order0_.EM_Obpos_Applications_ID as em_obp112_255_, order0_.EM_Obpos_Sendemail as em_obp113_255_, order0_.EM_Obpos_Email_Status as em_obp114_255_, order0_.EM_Obpos_App_Cashup_ID as em_obp115_255_, order0_.EM_Obpos_Createdabsolute as em_obp116_255_, order0_.EM_OBPOS_NotInvoiceOnCashUp as em_obp117_255_, order0_.EM_Obpos_Rejected_Quotat_ID as em_obp118_255_, order0_.EM_Obpos_Isdeleted as em_obp119_255_, order0_.EM_Obpos_Islayaway as em_obp120_255_, order0_.EM_Obpos_Prepaymentamt as em_obp121_255_, order0_.EM_Obpos_Prepaymentlimitamt as em_obp122_255_, order0_.EM_Fash_Servefrom as em_fas123_255_, order0_.EM_Obpos_Prepaymentlaylimitamt as em_obp124_255_, order0_.EM_Obpos_Rounding_Amount as em_obp125_255_, order0_.EM_Obpos_Sequencename as em_obp126_255_, order0_.EM_Obpos_Sequencenumber as em_obp127_255_, order0_.EM_Prpp_Generatepicking as em_prp128_255_, order0_.EM_Api_Resend as em_api129_255_, order0_.C_Invoice_Alternate_Loc_ID as c_invo130_255_, order0_.EM_OBSMAIL_EmailAddress as em_obs131_255_, order0_.EM_Prouti_Order_Stock as em_pro132_255_, order0_.EM_Prouti_Pregenerate_Minout as em_pro133_255_, order0_.EM_Prouti_Sotopo as em_pro134_255_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro135_255_, order0_.EM_Prouti_Order_ID as em_pro136_255_, order0_.EM_Prouti_Grandtotalinitial as em_pro137_255_, order0_.EM_Prouti_Dateclosed as em_pro138_255_, order0_.EM_Prouti_Totallinesinitial as em_pro139_255_, order0_.EM_Prouti_Changebpartner as em_pro140_255_, order0_.EM_Prouti_Recalculate_Price as em_pro141_255_, order0_.EM_Prouti_Pricecalculatetdate as em_pro142_255_, order0_.EM_Prouti_Reactiveorder as em_pro143_255_, order0_.EM_Izi_Exported as em_izi144_255_, order0_.EM_Prouti_Totalizations as em_pro145_255_, order0_.EM_Izijoy_Export_Enjoy as em_izi146_255_, order0_.EM_Izi_Splio_Exported as em_izi147_255_, order0_.em_prouti_Invoiced as em_pro148_255_, order0_.em_prouti_Received as em_pro149_255_, order0_.em_prouti_initial_received as em_pro150_255_, order0_.EM_Prouti_Status_Of_Review as em_pro151_255_, order0_.EM_Prouti_Validate_Order as em_pro152_255_, order0_.EM_Poss_Orgloc_Locid as em_pos153_255_, order0_.EM_Prouti_Start_Review as em_pro154_255_, order0_.EM_Obpos_Skip_Tax_Calculation as em_obp155_255_, order0_.EM_Prpgr_Ticketno as em_prp156_255_, order0_.EM_Prouti_Addlines_Btn as em_pro157_255_, order0_.EM_Prgr_Locator_ID as em_prg158_255_, order0_.EM_Prrgr_Locator_ID as em_prr159_255_, order0_.EM_Avisver_Export as em_avi160_255_, order0_.EM_Prgr_Assigned_ID as em_prg161_255_, order0_.EM_Prouti_Select_Soline as em_pro162_255_, order0_.EM_Prgr_Assign as em_prg163_255_ from C_Order order0_ cross join C_DocType documentty1_ where order0_.C_DocTypeTarget_ID=documentty1_.C_DocType_ID and order0_.DocStatus=$1 and order0_.IsSOTrx=$62 and documentty1_.IsReturn=$63 and (order0_.AD_Org_ID in ($2 , $3 , $4 , $5 , $6 , $7 , $8 , $9 , $10 , $11 , $12 , $13 , $14 , $15 , $16 , $17 , $18 , $19 , $20 , $21 , $22 , $23 , $24 , $25 , $26 , $27 , $28 , $29 , $30 , $31 , $32 , $33 , $34 , $35 , $36 , $37 , $38 , $39 , $40 , $41 , $42 , $43 , $44 , $45 , $46 , $47 , $48 , $49 , $50 , $51 , $52 , $53 , $54 , $55 , $56 , $57 , $58)) and (order0_.AD_Client_ID in ($59 , $60)) order by order0_.DateOrdered, order0_.C_Order_ID limit $61
d1c0672c81insert 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)
181fd1b092insert 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)
133291c890SELECT * 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)
6a9f69c63cSELECT * FROM C_ORDER_POST($1)
102454699dselect 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
75c88383e3SELECT 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)
9455753479COMMIT
d3457bdce0SELECT 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
4af3e2b8c4select "_"."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 ) "_"
5d08533031insert into C_OrderLine (AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, C_Order_ID, Line, C_BPartner_ID, C_BPartner_Location_ID, DateOrdered, DatePromised, M_Product_ID, M_Warehouse_ID, DirectShip, C_UOM_ID, QtyOrdered, QtyDelivered, QtyInvoiced, C_Currency_ID, PriceList, PriceActual, PriceLimit, 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_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, 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, $59)
c5df179779SELECT 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
a7629f58d0select sum(order0_.GrandTotal) as col_0_0_, sum(order0_.EM_Prouti_Grandtotalinitial) as col_1_0_ from C_Order order0_ cross join C_DocType documentty1_ where order0_.C_DocTypeTarget_ID=documentty1_.C_DocType_ID and order0_.IsSOTrx=$62 and documentty1_.IsReturn=$63 and (documentty1_.DocSubTypeSO not like $64) and (order0_.Updated>$1 or order0_.Processed=$65) and (order0_.AD_Org_ID in ($2 , $3 , $4 , $5 , $6 , $7 , $8 , $9 , $10 , $11 , $12 , $13 , $14 , $15 , $16 , $17 , $18 , $19 , $20 , $21 , $22 , $23 , $24 , $25 , $26 , $27 , $28 , $29 , $30 , $31 , $32 , $33 , $34 , $35 , $36 , $37 , $38 , $39 , $40 , $41 , $42 , $43 , $44 , $45 , $46 , $47 , $48 , $49 , $50 , $51 , $52 , $53 , $54 , $55 , $56 , $57 , $58)) and (order0_.AD_Client_ID in ($59 , $60)) limit $61
0483033486SELECT LEVELNO FROM AD_ORG_TREE WHERE AD_ORG_ID = p_orgid AND AD_PARENT_ORG_ID = p_parentorgid AND AD_CLIENT_ID = p_clientid
caede7e47binsert into obmobc_logclient ( obmobc_logclient_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, tstamp, deviceid, context, msg, loglevel, cache_session_id, isonline ) values ( $1, $2, $3, $15, to_timestamp(to_char($4), to_char($16)), $5, to_timestamp(to_char($6), to_char($17)), $7, to_number($8), $9, $10, $11, $12, $13, $14 )
3a2c9ad99bSELECT 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 )
4f42690015insert 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
604436a476insert 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)
74a1d87233SELECT $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
382d19fc6dSELECT * FROM take_sample_subset(1,0)
f3f57fdf42SELECT * FROM M_InOut_Post0($1)
fe2c4fe6dfselect "_"."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" ) "_"
b52b0c82easelect "_"."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 ) "_"
3e80950586SELECT $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
c6bb0f6f9bSELECT sum(ol.qtyordered) FROM c_orderline ol WHERE ol.c_order_id = p_order_id AND ol.m_product_id = p_product_id
6b67fe6923insert 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)
fb45d4a61fselect orderline0_.M_Product_ID as col_0_0_, product1_.Name as col_1_0_, sum(orderline0_.QtyOrdered) as col_2_0_, uom3_.Name as col_3_0_, product1_.C_UOM_ID as col_4_0_ from C_OrderLine orderline0_ cross join M_Product product1_ cross join C_UOM uom3_ cross join C_Order order5_ cross join M_Product product7_ where orderline0_.M_Product_ID=product1_.M_Product_ID and product1_.C_UOM_ID=uom3_.C_UOM_ID and orderline0_.C_Order_ID=order5_.C_Order_ID and orderline0_.M_Product_ID=product7_.M_Product_ID and order5_.DocStatus=$61 and order5_.IsSOTrx=$62 and $63=$64 and orderline0_.AD_Client_ID=$1 and (product7_.Name like $2) and (orderline0_.AD_Org_ID in ($3 , $4 , $5 , $6 , $7 , $8 , $9 , $10 , $11 , $12 , $13 , $14 , $15 , $16 , $17 , $18 , $19 , $20 , $21 , $22 , $23 , $24 , $25 , $26 , $27 , $28 , $29 , $30 , $31 , $32 , $33 , $34 , $35 , $36 , $37 , $38 , $39 , $40 , $41 , $42 , $43 , $44 , $45 , $46 , $47 , $48 , $49 , $50 , $51 , $52 , $53 , $54 , $55 , $56 , $57 , $58 , $59)) group by product1_.Name , uom3_.Name , orderline0_.M_Product_ID , product1_.C_UOM_ID order by sum(orderline0_.QtyOrdered) desc limit $60
a874297fd2SELECT M_INOUT_POST(PInstance_ID, $2)
1eec949137SELECT $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
93a759b1daBEGIN
0b24cb5d2fCOPY 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
bd39ae5005SELECT $2 FROM ONLY "public"."ad_user" x WHERE $1::pg_catalog.text OPERATOR(pg_catalog.=) "ad_image_id"::pg_catalog.text FOR KEY SHARE OF x
e51fcb1765SELECT C_ORDER_POST1(p_PInstance_ID, $2)
11b0ff0695SELECT $2 FROM ONLY "public"."ad_image" x WHERE "ad_image_id"::pg_catalog.text OPERATOR(pg_catalog.=) $1::pg_catalog.text FOR KEY SHARE OF x
29bf42b1abselect "_"."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 ) "_"
f0238ffe1bCOPY 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
24f0f61153insert 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)
e0fba79faaSELECT 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) )
27b400c7dbselect 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
5f8e9d0065SELECT 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
905bffc89cSELECT profile.take_sample()
313b1ecda9insert 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)
616a44c111insert 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)
61aed5765cselect 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
bf60147669SELECT COUNT(*) AS TOTAL FROM AD_SESSION WHERE AD_SESSION_ID = $1 AND SESSION_ACTIVE = $2 AND ISACTIVE = $3
3f546d3e2bselect "_"."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 ) "_"
017d00aa12insert 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)
3ca20ddb6cselect 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
08db126a91select "_"."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 ) "_"
8e8235137eSELECT 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
528c231cbeUPDATE M_STORAGE_DETAIL SET QTYONHAND=QTYONHAND + COALESCE(p_qty, $20), QTYORDERONHAND=QTYORDERONHAND + v_qtyorder, DATELASTINVENTORY=COALESCE(p_datelastinventory, DATELASTINVENTORY), PREQTYONHAND=PREQTYONHAND + COALESCE(p_preqty, $21), PREQTYORDERONHAND=PREQTYORDERONHAND + v_preqtyorder, AD_CLIENT_ID=p_client, UPDATED=TO_DATE(NOW()), UPDATEDBY=p_user WHERE M_PRODUCT_ID=p_product AND M_LOCATOR_ID=p_locator AND M_ATTRIBUTESETINSTANCE_ID=v_attributesetinstance AND C_UOM_ID=p_uom AND COALESCE(M_PRODUCT_UOM_ID, $22)=COALESCE(p_product_uom, $23)
2d19e5b311insert 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)
e5e056b68dSELECT $2 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
7e35c14916select 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
d1e21ddf3eSELECT REPLACE(REPLACE(SQL_RECORD_IDENTIFIER, $4, $5 || p_Language || $6), $7, p_Record_ID) FROM AD_TABLE WHERE UPPER(TABLENAME)=UPPER(p_TableName)
538a251d53insert into AD_Image (AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, Name, BinaryData, Width, Height, Mimetype, AD_Image_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13)
d3dcdac298SELECT AD_LEGALENTITY_ORG_ID FROM AD_Org WHERE AD_Org_ID = p_org_id
19825253efselect 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
1a26268f3aSELECT C_ORDER_POST1($1, $2, $3)
66bc870e45insert 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)
2841013087select "_"."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 ) "_"
4f9621bcb7insert 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)
d11440f550select 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
8cb37f78eeinsert 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)
7cd7d30ef6select orderline0_.M_Product_ID as col_0_0_, ad_column_identifier_std($1, orderline0_.M_Product_ID) as col_1_0_, abs(prrgr_getqtypending($2, $3, orderline0_.M_Product_ID)) as col_2_0_ from C_OrderLine orderline0_ left outer join C_Order order1_ on orderline0_.C_Order_ID=order1_.C_Order_ID where order1_.DocStatus=$4 and order1_.C_Order_ID=$5 group by orderline0_.M_Product_ID having prrgr_getqtypending($6, $7, orderline0_.M_Product_ID)>$8
018c5dd71eselect 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
48f140c821update 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))
6d9be72c35delete from AD_Image where AD_Image_ID=$1
1f5a522082select 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
6db59d04c7select sum(order0_.GrandTotal) as col_0_0_, sum(order0_.EM_Prouti_Grandtotalinitial) as col_1_0_ from C_Order order0_ cross join C_DocType documentty1_ where order0_.C_DocTypeTarget_ID=documentty1_.C_DocType_ID and order0_.IsSOTrx=$61 and documentty1_.IsReturn=$62 and (documentty1_.DocSubTypeSO not like $63) and (order0_.AD_Org_ID in ($1 , $2 , $3 , $4 , $5 , $6 , $7 , $8 , $9 , $10 , $11 , $12 , $13 , $14 , $15 , $16 , $17 , $18 , $19 , $20 , $21 , $22 , $23 , $24 , $25 , $26 , $27 , $28 , $29 , $30 , $31 , $32 , $33 , $34 , $35 , $36 , $37 , $38 , $39 , $40 , $41 , $42 , $43 , $44 , $45 , $46 , $47 , $48 , $49 , $50 , $51 , $52 , $53 , $54 , $55 , $56 , $57)) and (order0_.AD_Client_ID in ($58 , $59)) limit $60
70caf7bb1einsert 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)
fe62dd3708INSERT INTO m_stock_proposed ( m_stock_proposed_id, ad_client_id, ad_org_id, isactive, created , createdby, updated, updatedby, ad_pinstance_id, priority, m_storage_detail_id, quantity, qtyorder, isfinal ) VALUES ( get_uuid(), v_ClientID, v_OrgID, $60, TO_DATE(NOW()), v_AD_User_ID, TO_DATE(NOW()), v_AD_User_ID, p_uuid, v_Count, Cur_Stock.M_STORAGE_DETAIL_ID, Cur_Stock.Qty, Cur_Stock.QtyOrder, $61 )
50e85a5d5eSELECT * 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)

Schema object statistics

Top tables by estimated sequentially scanned volume

DBTablespaceSchemaTable~SeqBytesSeqScanIxScanIxFetInsUpdDelUpd(HOT)
openbravopg_defaultpublicc_bpartner228 GB13892157042553859043526139
c_bpartner(TOAST)
openbravopg_defaultpublicc_order120 GB1326539684168910366102125051276
c_order(TOAST)
openbravopg_defaultpublicad_user67 GB6299985186899865445352417364
ad_user(TOAST)
openbravopg_defaultpublicm_product33 GB58234152598304908822745
m_product(TOAST)
openbravopg_defaultpublicad_orgtype26 GB3462532340340
openbravopg_defaultpublicm_inout14 GB325159407225159987579711126128
m_inout(TOAST)102714017263173
openbravopg_defaultpublicfin_payment13 GB2131660314149552960837
fin_payment(TOAST)
openbravopg_defaultpublicfin_payment_schedule11 GB25573843560595701401141615230
fin_payment_schedule(TOAST)
openbravopg_defaultpublicm_transaction8602 MB141999344807022210
m_transaction(TOAST)
openbravopg_defaultpublicad_table6660 MB947222072207
ad_table(TOAST)
openbravopg_defaultpg_catalogpg_class5586 MB6441768730750045
openbravopg_defaultprofilelast_stat_database4814 MB1232409292
openbravopg_defaultpublicc_orderline4715 MB4446015362747052957744211534
c_orderline(TOAST)
openbravopg_defaultpublicm_inoutline4546 MB72241360254082365325943842231
m_inoutline(TOAST)
openbravopg_defaultpublicc_location3849 MB571629098534911524352354
c_location(TOAST)
openbravopg_defaultpublicc_invoice2342 MB9926134751052367370
c_invoice(TOAST)
openbravopg_defaultprofilelast_stat_tablespaces1987 MB436554646
last_stat_tablespaces(TOAST)
openbravopg_defaultpg_catalogpg_proc1814 MB940695459700811
pg_proc(TOAST)1930537611
openbravopg_defaultpublicad_org934 MB415528274396283769945740
ad_org(TOAST)3202932029
openbravopg_defaultpublicad_client791 MB50628884884
ad_client(TOAST)

Top tables by blocks fetched

DBTablespaceSchemaTableHeapIxTOASTTOAST-Ix
Blks%TotalBlks%TotalBlks%TotalBlks%Total
openbravopg_defaultpublicm_inout51753354613.60155433348840.8348970.00317400.00
openbravopg_defaultpublicm_inoutline52340384713.75713081001.87
openbravopg_defaultpublicad_user1086608882.853002749837.89
openbravopg_defaultpublicc_order1200172153.15243502690.64
openbravopg_defaultpublicc_bpartner_location355153790.93524468601.38
openbravopg_defaultpublicc_location354059340.93490679421.29
openbravopg_defaultpublicc_bpartner615378891.6274719010.20
openbravopg_defaultpublicad_org287013120.75282675340.74320290.00963690.00
openbravopg_defaultpublicc_orderline297905490.7824711150.06
openbravopg_defaultpublicc_country142057840.37142054070.37
openbravopg_defaultpublicm_costing276957340.73
openbravopg_defaultpublicfin_payment_schedule74871630.20172830530.45
openbravopg_defaultpublicm_product108648850.2987007190.23
openbravopg_defaultpublicm_matchpo25704510.0777518400.20
openbravopg_defaultpublicfin_payment_detail85842740.231366590.00
openbravopg_defaultpublicfin_payment_scheduledetail50721000.132238240.01
openbravopg_defaultpublicc_import_entry34768650.0912795170.031169320.002851200.01
openbravopg_defaultprofilelast_stat_tables49839570.131353400.00
openbravopg_defaultpublicad_orgtype34628720.094000.00
openbravopg_defaultpg_catalogpg_class14328180.0415564550.04

Top tables by blocks read

DBTablespaceSchemaTableHeapIxTOASTTOAST-IxHit(%)
Blks%TotalBlks%TotalBlks%TotalBlks%Total
openbravopg_defaultpublicad_image890.06330.026321043.626950.4897.41
openbravopg_defaultpublicc_orderline6190.4391116.2999.97
openbravopg_defaultpublicobmobc_logclient31122.1556693.9199.26
openbravopg_defaultpublicc_invoiceline1190.0862164.2997.16
openbravopg_defaultpublicc_orderlinetax1450.1059474.1096.29
openbravopg_defaultpublicc_order3630.2548363.34100.00
openbravopg_defaultpublicfin_payment_scheduledetail770.0539932.7699.92
openbravopg_defaultpublicc_import_entry_archive3000.21910.0631402.171140.0899.73
openbravopg_defaultpublicc_invoicelinetax710.0528631.9889.06
openbravopg_defaultpublicobcfr_ticketreprint2430.1724221.67170.0191.66
openbravopg_defaultpublicm_inoutline1650.1124621.70100.00
openbravopg_defaultpublicm_transaction1280.0922811.5799.87
openbravopg_defaultpublicobcfr_tickettax800.0622091.5293.01
openbravopg_defaultpublicm_inout1140.0818641.29630.04120.01100.00
openbravopg_defaultpublicfin_finacc_transaction980.0719281.3398.59
openbravopg_defaultpublicobcfr_ticket2240.1516751.1630.0096.01
openbravopg_defaultpublicc_ordertax960.0714020.9798.44
openbravopg_defaultpublicc_import_entry2610.1812330.8599.97
openbravopg_defaultpublicm_product2330.1610540.7399.99
openbravopg_defaultpublicfin_payment1700.1211040.7699.94

Top DML tables

DBTablespaceSchemaTableInsUpdDelUpd(HOT)SeqScanSeqFetIxScanIxFet
openbravopg_defaultpublicad_image274527451342878017
ad_image(TOAST)2533512533518017484110
openbravopg_defaultprofilelast_stat_indexes672981577672981184107676841160405365
openbravopg_defaultprofilelast_stat_tables392384278392385818462780894254416869
openbravopg_defaultpublicc_import_entry957895789578429313289290
c_import_entry(TOAST)14939149392349276007
openbravopg_defaultpublicobmobc_logclient52517
obmobc_logclient(TOAST)
openbravopg_defaultprofilelast_stat_user_functions90391050903948388268812
last_stat_user_functions(TOAST)
openbravopg_defaultpublicc_import_entry_archive405511275769563
c_import_entry_archive(TOAST)13778100008425238
openbravopg_defaultpg_catalogpg_statistic1291212432464602383514
pg_statistic(TOAST)177017694062087724
openbravopg_defaultpublicc_orderline29577442115344780860844601536274705
c_orderline(TOAST)
openbravopg_defaultprofilesample_stat_tables409144711237654415817666
openbravopg_defaultpublicfin_payment955296083721149644503166031414
fin_payment(TOAST)
openbravopg_defaultpublicfin_payment_scheduledetail9552875919397945026743
fin_payment_scheduledetail(TOAST)
openbravopg_defaultpublicc_order1021250512761321086001356539684168910366
c_order(TOAST)
openbravopg_defaultpublicm_storage_detail293102163197125833027662595575
m_storage_detail(TOAST)
openbravopg_defaultpublicm_inoutline2594384223171047390122413602540823653
m_inoutline(TOAST)
openbravopg_defaultpublicc_orderlinetax2956541521195271058404751
c_orderlinetax(TOAST)
openbravopg_defaultpublicfin_finacc_transaction1017197450446323
fin_finacc_transaction(TOAST)
openbravopg_defaultpublicad_sequence289428732963963276327
ad_sequence(TOAST)
openbravopg_defaultpublicfin_payment_schedule1401141615230253178443357384356059570
fin_payment_schedule(TOAST)
openbravopg_defaultpublicm_product2745582338278603415259830490882
m_product(TOAST)

Top tables by updated/deleted tuples

DBTablespaceSchemaTableUpdUpd(HOT)DelVacuumAutoVacuumAnalyzeAutoAnalyze
openbravopg_defaultpublicad_image274511
ad_image(TOAST)2533511
openbravopg_defaultprofilelast_stat_indexes1577167298354623
openbravopg_defaultprofilelast_stat_tables42785839238354623
openbravopg_defaultpublicc_import_entry9578957872117
c_import_entry(TOAST)1493948
openbravopg_defaultpg_catalogpg_statistic1291212432
pg_statistic(TOAST)17696
openbravopg_defaultprofilelast_stat_user_functions1050489039354623
last_stat_user_functions(TOAST)
openbravopg_defaultpublicc_orderline744215341
c_orderline(TOAST)
openbravopg_defaultprofilesample_stat_tables447113
openbravopg_defaultpublicm_storage_detail31026311
m_storage_detail(TOAST)
openbravopg_defaultpublicfin_payment2960837
fin_payment(TOAST)
openbravopg_defaultpublicad_sequence28942873125
ad_sequence(TOAST)
openbravopg_defaultpublicfin_payment_scheduledetail2875919
fin_payment_scheduledetail(TOAST)
openbravopg_defaultpublicm_product274511
m_product(TOAST)
openbravopg_defaultpublicc_order25051276
c_order(TOAST)
openbravopg_defaultpublicobpos_applications23322246938
obpos_applications(TOAST)
openbravopg_defaultpublicfin_finacc_transaction1974
fin_finacc_transaction(TOAST)
openbravopg_defaultpublicm_storage_pending1573188
m_storage_pending(TOAST)
openbravopg_defaultpublicfin_payment_schedule141623015
fin_payment_schedule(TOAST)
openbravopg_defaultprofilesample_stat_indexes141713
openbravopg_defaultpublicm_inout1126128
m_inout(TOAST)173

Top growing tables

DBTablespaceSchemaTableSizeGrowthInsUpdDelUpd(HOT)
openbravopg_defaultpublicm_stock_proposed9152 kB624 kB1528
m_stock_proposed(TOAST)
openbravopg_defaultprofilesample_stat_tables9928 kB592 kB40914471
openbravopg_defaultpublicad_process_run2952 kB144 kB307307
ad_process_run(TOAST)952 kB80 kB42
openbravopg_defaultpublicad_process_request112 kB32 kB19381379
ad_process_request(TOAST)120 kB88 kB38
openbravopg_defaultprofilesample_statements3328 kB120 kB10821291
sample_statements(TOAST)
openbravopg_defaultprofilesample_stat_indexes1896 kB80 kB11931417
openbravopg_defaultprofilesample_stat_user_functions696 kB40 kB812898
openbravopg_defaultprofilelast_stat_tablespaces48 kB32 kB4646
last_stat_tablespaces(TOAST)
openbravopg_defaultprofilesample_stat_database264 kB24 kB6876
openbravopg_defaultprofilesample_stat_tables_total376 kB24 kB120144
openbravopg_defaultpublicad_ep_instance_para32 kB16 kB528528
ad_ep_instance_para(TOAST)
openbravopg_defaultprofilesample_stat_indexes_total112 kB16 kB6880
openbravopg_defaultprofilesample_statements_total152 kB16 kB3339
sample_statements_total(TOAST)
openbravopg_defaultprofilelast_stat_user_functions264 kB8192 bytes90391050903948
last_stat_user_functions(TOAST)

Top indexes by blocks fetched

DBTablespaceSchemaTableIndexScansBlks%Total
openbravopg_defaultpublicm_inoutm_inout_key515924223155421069040.83
openbravopg_defaultpublicad_userad_user_partner997008022998154597.88
openbravopg_defaultpublicm_inoutlinem_inoutline_orderline21721040655570431.72
openbravopg_defaultpublicc_bpartner_locationc_bplocation_bpartner17329526521113161.37
openbravopg_defaultpublicc_locationc_location_key16290983490655511.29
openbravopg_defaultpublicad_orgad_org_key28244724282407530.74
openbravopg_defaultpublicm_costingm_costing_product_date27694798276950320.73
openbravopg_defaultpublicc_orderc_order_key6498517196524910.52
openbravopg_defaultpublicfin_payment_schedulefin_payment_schedule_key5718648172016790.45
openbravopg_defaultpublicc_countryc_country_key14204771142049730.37
openbravopg_defaultpublicm_productm_product_key413847883214040.22
openbravopg_defaultpublicm_matchpom_matchpo_inout257508277436030.20
openbravopg_defaultpublicc_bpartnerc_bpartner_key214388964425940.17
openbravopg_defaultpublicm_inoutlinem_inoutline_product63399455240570.15
openbravopg_defaultpublicc_orderc_order_client_org_date_docno1885642953400.11
openbravopg_defaultpublicad_org_treead_org_tree_orgparentclientlev119975124018710.06
openbravopg_defaultpublicm_product_trlm_product_trl_product_langu_un99270319997920.05
openbravopg_defaultpublicc_country_trlc_country_trl_country_langu_un90199318040180.05
openbravopg_defaultpublicc_orderlineem_obpos_orderedqty37087516662730.04
openbravopg_defaultpg_catalogpg_attributepg_attribute_relid_attnum_index76125315386790.04

Top indexes by blocks read

DBTablespaceSchemaTableIndexScansBlk Reads%TotalHits(%)
openbravopg_defaultpublicc_orderlinec_orderline_product1657158204.0295.98
openbravopg_defaultpublicobmobc_logclientobmobc_logclient_pk37322.5897.79
openbravopg_defaultpublicc_orderlinetaxc_orderlinetax_orderline578727041.8792.30
openbravopg_defaultpublicc_orderc_order_dateordered_id6323761.6493.89
openbravopg_defaultpublicc_invoicelinec_invoiceline_orderline473923691.6385.31
openbravopg_defaultpublicc_orderlinetaxc_orderlinetax_key1723041.5980.51
openbravopg_defaultpublicm_inoutlinem_inoutline_key866219431.3494.26
openbravopg_defaultpublicm_transactionm_transaction_key16881.1674.39
openbravopg_defaultpublicc_invoicelinec_invoiceline_inoutline76016561.1477.68
openbravopg_defaultpublicc_invoicelinetaxc_invoicelinetax_key11860.8276.16
openbravopg_defaultpublicc_invoicelinetaxc_invoicelinetax_invoiceline11770.8176.34
openbravopg_defaultpublicc_invoicelinec_invoiceline_key168811760.8188.28
openbravopg_defaultpublicc_orderc_order_ad_orgtrx1911550.8090.18
openbravopg_defaultpublicc_orderlinec_orderline_order29890.6897.44
openbravopg_defaultpublicc_orderlineem_obpos_deliveredqty9890.6897.39
openbravopg_defaultpublicc_orderlinec_orderline_order9870.6897.36
openbravopg_defaultpublicfin_payment_scheduledetailfin_pay_scheduledetail_in15749290.6489.39
openbravopg_defaultpublicobcfr_tickettaxobcfr_tickettax_term_hash8070.5678.56
openbravopg_defaultpublicfin_payment_scheduledetailfin_pay_scheduledetail_or155567500.5298.60
openbravopg_defaultpublicobcfr_ticketreprintobcfr_ticketreprint_term_hash7430.5179.04

Top growing indexes

DBTablespaceSchemaTableIndexIndexTable
SizeGrowthInsUpdDel
openbravopg_defaultpublicad_process_runad_process_run_key1024 kB176 kB268268
openbravopg_defaultprofilesample_stat_tablespk_sample_stat_tables1248 kB104 kB25393097
openbravopg_defaultprofilesample_statementsix_sample_stmts_qid1208 kB80 kB8851030
openbravopg_defaultprofilesample_stat_indexespk_sample_stat_indexes480 kB32 kB824966
openbravopg_defaultprofilesample_statementspk_sample_statements_n568 kB32 kB821968
openbravopg_defaultpublicad_process_runad_process_run_ad_prequest_id672 kB32 kB195195
openbravopg_defaultprofilesample_stat_user_functionspk_sample_stat_user_functions304 kB16 kB422537

Unused indexes

This table contains non-scanned indexes (during report period), ordered by number of DML operations on underlying tables. Constraint indexes are excluded.

DBTablespacesSchemaTableIndexIndexTable
SizeGrowthInsUpdDel
openbravopg_defaultpublicad_process_runad_process_run_ould_be_killed8192 bytes112112

User function statistics

Top functions by total time

DBSchemaFunctionExecutionsTime (s)
TotalSelfMeanMean self
openbravopublicm_get_cost138473992147.4475.420.0000.000
openbravopublicm_get_cost138473992072.01189.600.0000.000
openbravopublicm_get_no_trx_product_cost138473991322.9267.140.0000.000
openbravopublicm_get_no_trx_product_cost138473991255.78954.980.0000.000
openbravopublicm_get_product_cost13847399359.46359.460.0000.000
openbravopublicad_get_org_le_bu13645848300.90300.900.0000.000
openbravopublictrunc18708028183.65183.640.0000.000
openbravopublicto_date13863286108.64108.630.0000.000
openbravopublicc_currency_convert_precision1384739991.6391.630.0000.000
openbravoprofiletake_sample2341.090.021.7860.001
openbravoprofiletake_sample_subset2341.060.091.7850.004
openbravoprofiletake_sample2340.982.471.7820.107
openbravopublicsubstract_days2839525037.7337.730.0000.000
openbravoprofiledblink62126.3326.330.0420.042
openbravopublicad_org_isinnaturaltree52216225.834.800.0000.000
openbravopublicad_isorgincluded123553825.5125.510.0000.000
openbravopublicretstk_product_stock_json22316.7915.080.0750.068
openbravoprofilecollect_obj_stats2315.294.270.6650.186
openbravopublicad_column_identifier1968513.7813.620.0010.001
openbravoprofilecollect_pg_stat_statements_stats2213.330.480.6060.022

Top functions by executions

DBSchemaFunctionExecutionsTime (s)
TotalSelfMeanMean self
openbravopublicsubstract_days2839525037.7337.730.0000.000
openbravopublictrunc18708028183.65183.640.0000.000
openbravopublicto_date13863286108.64108.630.0000.000
openbravopublicc_currency_convert_precision1384739991.6391.630.0000.000
openbravopublicm_get_cost138473992147.4475.420.0000.000
openbravopublicm_get_cost138473992072.01189.600.0000.000
openbravopublicm_get_no_trx_product_cost138473991322.9267.140.0000.000
openbravopublicm_get_no_trx_product_cost138473991255.78954.980.0000.000
openbravopublicm_get_product_cost13847399359.46359.460.0000.000
openbravopublicad_get_org_le_bu13645848300.90300.900.0000.000
openbravopublicto_char32424473.773.770.0000.000
openbravopublicto_number19280075.445.440.0000.000
openbravopublicad_isorgincluded123553825.5125.510.0000.000
openbravopublictrunc7827042.922.920.0000.000
openbravopublicad_org_isinnaturaltree52216225.834.800.0000.000
openbravopublicad_istriggerenabled2045712.232.230.0000.000
openbravopublicuuid_generate_v4346560.260.260.0000.000
openbravopublicto_char262730.070.070.0000.000
openbravopublicobequals209040.160.160.0000.000
openbravopublicad_column_identifier1968513.7813.620.0010.001

Top trigger functions by total time

DBSchemaFunctionExecutionsTime (s)
TotalSelfMeanMean self
openbravopublicc_orderline_trg2104004.561.700.0000.000
openbravopublicintr_c_orderline_trg103972.530.370.0000.000
openbravopublicc_orderline2_trg104001.541.310.0000.000
openbravopublicintr_m_inoutline_trg24771.350.160.0010.000
openbravopublicfash_orderline_check_status102951.291.220.0000.000
openbravopublicc_orderline_trg104000.880.770.0000.000
openbravopublicm_inoutline_trg28990.850.440.0000.000
openbravopublicc_ordline_chk_restrictions_trg104000.840.770.0000.000
openbravopublicc_orderlinetax_trg20860.780.570.0000.000
openbravopublicm_transaction_trg22100.660.370.0000.000
openbravopublicfash_copy_c_orderline104000.610.230.0000.000
openbravopublicfash_update_fshordline_trg102950.530.450.0000.000
openbravopublicphieco_orderline_trg103990.460.400.0000.000
openbravopublicc_bpartner_trg4130.440.420.0010.001
openbravopublicc_invoiceline_trg217370.430.160.0000.000
openbravopublicfash_set_qtyinitial104000.410.330.0000.000
openbravopublicm_product_trg27450.390.340.0000.000
openbravopublicaprm_fin_pmt_check_trg39190.350.270.0000.000
openbravopublicfash_compo_nc8_code_trg27450.300.230.0000.000
openbravopublicm_product_bef_trg27450.270.120.0000.000

Vacuum-related statistics

Top tables by vacuum operations

DBTablespaceSchemaTableVacuum countAutovacuum countInsUpdDelUpd(HOT)
openbravopg_defaultpublicc_import_entry72957895789578
openbravopg_defaultprofilelast_stat_tables353923842783923858
openbravopg_defaultprofilelast_stat_indexes35672981577672981
openbravopg_defaultprofilelast_stat_user_functions3590391050903948
openbravopg_defaultpublicad_ep_instance_para9528528
openbravopg_defaultpublicobpos_applications923322246
openbravopg_defaultprofilelast_stat_database29292
openbravopg_defaultpublicad_image127452745
openbravopg_defaultpublicad_org15740
openbravopg_defaultpublicad_sequence128942873
openbravopg_defaultpublicm_product12745
openbravopg_defaultprofilelast_stat_tablespaces14646
openbravopg_defaultprofilesample_stat_database16876
openbravopg_defaultprofilesample_stat_tables140914471
openbravopg_defaultprofilesample_stat_tables_total1120144
openbravopg_defaultprofilesample_stat_indexes111931417
openbravopg_defaultprofilesample_stat_indexes_total16880
openbravopg_defaultprofilesample_statements110821291
openbravopg_defaultprofilesample_stat_user_functions1812898

Top tables by analyze operations

DBTablespaceSchemaTableAnalyze countAutoanalyze countInsUpdDelUpd(HOT)
openbravopg_defaultpublicc_import_entry117957895789578
openbravopg_defaultprofilelast_stat_tables46233923842783923858
openbravopg_defaultprofilelast_stat_indexes4623672981577672981
openbravopg_defaultprofilelast_stat_user_functions462390391050903948
openbravopg_defaultpublicobpos_applications3823322246
openbravopg_defaultpublicad_sequence2528942873
openbravopg_defaultprofilelast_stat_tablespaces234646
openbravopg_defaultpublicad_ep_instance_para15528528
openbravopg_defaultpublicfin_financial_account10990988
openbravopg_defaultpublicad_process_request919381379
openbravopg_defaultprofilelast_stat_database39292
openbravopg_defaultprofilesample_stat_tables340914471
openbravopg_defaultprofilesample_stat_indexes311931417
openbravopg_defaultprofilesample_statements310821291
openbravopg_defaultpublicad_pinstance2418280
openbravopg_defaultpublicad_session233521463
openbravopg_defaultprofilesample_stat_database26876
openbravopg_defaultprofilesample_stat_tables_total2120144
openbravopg_defaultprofilesample_stat_indexes_total26880
openbravopg_defaultprofilesample_stat_user_functions2812898

Top indexes by estimated vacuum load

DBTablespaceSchemaTableIndex~Vacuum bytesVacuum cntAutovacuum cntIX sizeRelsize
openbravopg_defaultprofilelast_stat_indexespk_last_stat_indexes17 MB35496 kB1936 kB
openbravopg_defaultpublicc_import_entryc_import_entry_key14 MB72192 kB1449 kB
openbravopg_defaultpublicc_import_entryc_import_entry_type_status_idx13 MB72184 kB1449 kB
openbravopg_defaultpublicad_image(TOAST)pg_toast_50787_index10 MB110 MB947 MB
openbravopg_defaultprofilelast_stat_tablespk_last_stat_tables10 MB35304 kB1488 kB
openbravopg_defaultpublicc_import_entryc_import_entry_idx9216 kB72128 kB1449 kB
openbravopg_defaultpublicc_import_entryem_obpos_application_fk8640 kB72120 kB1449 kB
openbravopg_defaultpublicc_import_entry(TOAST)pg_toast_53108_index4992 kB48104 kB2199 kB
openbravopg_defaultpublicm_productem_obpos_name_trgm1944 kB11944 kB5880 kB
openbravopg_defaultprofilesample_statementsix_sample_stmts_qid1208 kB11208 kB3328 kB
openbravopg_defaultprofilesample_stat_tablespk_sample_stat_tables1184 kB11184 kB9928 kB
openbravopg_defaultpublicm_productem_obpos_upc_trgm1064 kB11064 kB5880 kB
openbravopg_defaultpublicm_productm_product_name_id1032 kB11032 kB5880 kB
openbravopg_defaultpublicm_productem_obpos_value_trgm1024 kB11024 kB5880 kB
openbravopg_defaultpublicm_productm_product_value840 kB1840 kB5880 kB
openbravopg_defaultpublicm_productm_product_value_id832 kB1832 kB5880 kB
openbravopg_defaultpublicm_productm_product_key776 kB1776 kB5880 kB
openbravopg_defaultpublicm_productm_product_productcategory640 kB1640 kB5880 kB
openbravopg_defaultpublicm_productm_product_upc_id624 kB1624 kB5880 kB
openbravopg_defaultpg_catalogpg_statistic(TOAST)pg_toast_2619_index576 kB696 kB5264 kB

Top tables by dead tuples ratio

Data in this section is not differential. This data is valid for last report sample only.

DBSchemaTableLiveDead%DeadLast AVSize
openbravoprofilesample_stat_tables31294207962026-07-13 15:00:45.960183+029928 kB
openbravopg_toastpg_toast_261912925332026-07-14 01:01:52.772287+025264 kB
openbravopg_catalogpg_attribute3505862012026-07-12 03:13:30.221227+025328 kB

Top tables by modified tuples ratio

Table shows modified tuples statistics since last analyze.

Data in this section is not differential. This data is valid for last report sample only.

DBSchemaTableLiveDeadMod%ModLast AASize
openbravopg_catalogpg_attribute35058620124032026-07-12 03:13:30.533708+025328 kB
openbravoprofilesample_stat_tables31294207989122026-07-14 00:00:51.796432+029928 kB
openbravopublicm_stock_proposed28726051912026-07-13 16:29:44.95965+029152 kB

Cluster settings during the report interval

Defined settings
Settingreset_valUnitSourceNotes
checkpoint_completion_target0.9/etc/postgresql/10/main/postgresql.conf:211
client_encodingUTF8
cluster_name10/main/etc/postgresql/10/main/postgresql.conf:477
config_file/etc/postgresql/10/main/postgresql.conf
data_checksumson
data_directory/var/lib/postgresql/10/main
DateStyleISO, DMY/etc/postgresql/10/main/postgresql.conf:566
default_text_search_configpg_catalog.spanish/etc/postgresql/10/main/postgresql.conf:588
effective_cache_size98304008kB/etc/postgresql/10/main/postgresql.conf:315
effective_io_concurrency200/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_collatees_ES.UTF-8
lc_ctypees_ES.UTF-8
lc_messagesen_US.UTF-8/etc/postgresql/10/main/conf.d/15-pgbadger.conf:11
lc_monetaryes_ES.UTF-8/etc/postgresql/10/main/postgresql.conf:583
lc_numericen_US.UTF-8/etc/postgresql/10/main/conf.d/01-openbravo-standard-postgres10.conf:38
lc_timees_ES.UTF-8/etc/postgresql/10/main/postgresql.conf:585
listen_addresses*/etc/postgresql/10/main/postgresql.conf:59
log_autovacuum_min_duration0ms/etc/postgresql/10/main/conf.d/15-pgbadger.conf:9
log_checkpointson/etc/postgresql/10/main/conf.d/01-openbravo-standard-postgres10.conf:26
log_connectionson/etc/postgresql/10/main/conf.d/15-pgbadger.conf:1
log_disconnectionson/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_waitson/etc/postgresql/10/main/conf.d/15-pgbadger.conf:5
log_min_duration_statement1000ms/etc/postgresql/10/main/conf.d/15-pgbadger.conf:10
log_temp_files0kB/etc/postgresql/10/main/conf.d/15-pgbadger.conf:7
log_timezonelocaltime/etc/postgresql/10/main/conf.d/01-openbravo-standard-postgres10.conf:22
maintenance_work_mem2097152kB/etc/postgresql/10/main/postgresql.conf:123
max_connections200/etc/postgresql/10/main/postgresql.conf:64
max_locks_per_transaction128/etc/postgresql/10/main/conf.d/01-openbravo-standard-postgres10.conf:17
max_stack_depth2048kB
min_wal_size4096MB/etc/postgresql/10/main/postgresql.conf:210
pg_conf_load_time2026-07-12 03:00:05.386027+02
pg_postmaster_start_time2026-07-12 03:00:05.961796+02
pg_stat_statements.max10000/etc/postgresql/10/main/postgresql.conf:660
pg_stat_statements.trackall/etc/postgresql/10/main/postgresql.conf:661
random_page_cost1.1/etc/postgresql/10/main/postgresql.conf:307
server_encodingUTF8
shared_buffers32768008kB/etc/postgresql/10/main/postgresql.conf:113
shared_preload_libraries$libdir/pg_stat_statements/etc/postgresql/10/main/postgresql.conf:659
sslon/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
TimeZonelocaltime/etc/postgresql/10/main/conf.d/01-openbravo-standard-postgres10.conf:23
timezone_abbreviationsDefault
track_functionsall/etc/postgresql/10/main/conf.d/15-pgbadger.conf:8
versionPostgreSQL 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_buffers20488kB/etc/postgresql/10/main/postgresql.conf:198
work_mem32768kB/etc/postgresql/10/main/postgresql.conf:122
Default settings
Settingreset_valUnitSourceNotes
allow_in_place_tablespacesoff
allow_system_table_modsoff
application_name
archive_command
archive_modeoff
archive_timeout0s
array_nullson
authentication_timeout60s
autovacuumon
autovacuum_analyze_scale_factor0.1
autovacuum_analyze_threshold50
autovacuum_freeze_max_age200000000
autovacuum_max_workers3
autovacuum_multixact_freeze_max_age400000000
autovacuum_naptime60s
autovacuum_vacuum_cost_delay20ms
autovacuum_vacuum_cost_limit-1
autovacuum_vacuum_scale_factor0.2
autovacuum_vacuum_threshold50
autovacuum_work_mem-1kB
backend_flush_after08kB
backslash_quotesafe_encoding
bgwriter_delay200ms
bgwriter_flush_after648kB
bgwriter_lru_maxpages100
bgwriter_lru_multiplier2
block_size8192
bonjouroff
bonjour_name
bytea_outputhex
check_function_bodieson
checkpoint_flush_after328kB
checkpoint_timeout300s
checkpoint_warning30s
client_min_messagesnotice
commit_delay0
commit_siblings5
constraint_exclusionpartition
cpu_index_tuple_cost0.005
cpu_operator_cost0.0025
cpu_tuple_cost0.01
cursor_tuple_fraction0.1
data_sync_retryoff
db_user_namespaceoff
deadlock_timeout1000ms
debug_assertionsoff
debug_pretty_printon
debug_print_parseoff
debug_print_planoff
debug_print_rewrittenoff
default_statistics_target100/etc/postgresql/10/main/postgresql.conf:329
default_tablespace
default_transaction_deferrableoff
default_transaction_isolationread committed
default_transaction_read_onlyoff
default_with_oidsoff
dynamic_library_path$libdir
dynamic_shared_memory_typeposix/etc/postgresql/10/main/postgresql.conf:127
enable_bitmapscanon
enable_gathermergeon
enable_hashaggon
enable_hashjoinon
enable_indexonlyscanon
enable_indexscanon
enable_materialon
enable_mergejoinon
enable_nestloopon
enable_seqscanon
enable_sorton
enable_tidscanon
escape_string_warningon
event_sourcePostgreSQL
exit_on_erroroff
extra_float_digits0
force_parallel_modeoff
from_collapse_limit8
fsyncon
full_page_writeson
geqoon
geqo_effort5
geqo_generations0
geqo_pool_size0
geqo_seed0
geqo_selection_bias2
geqo_threshold12
gin_fuzzy_search_limit0
gin_pending_list_limit4096kB
hot_standbyon
hot_standby_feedbackoff
huge_pagestry
idle_in_transaction_session_timeout0ms
ignore_checksum_failureoff
ignore_system_indexesoff
integer_datetimeson
IntervalStylepostgres
join_collapse_limit8
krb_caseins_usersoff
krb_server_keyfileFILE:/etc/postgresql-common/krb5.keytab
local_preload_libraries
lock_timeout0ms
lo_compat_privilegesoff
log_destinationstderr
log_directorylog
log_durationoff/etc/postgresql/10/main/conf.d/15-pgbadger.conf:3
log_error_verbositydefault
log_executor_statsoff
log_file_mode384
log_filenamepostgresql-%Y-%m-%d_%H%M%S.log
logging_collectoroff
log_hostnameoff
log_min_error_statementerror
log_min_messageswarning
log_parser_statsoff
log_planner_statsoff
log_replication_commandsoff
log_rotation_age1440min
log_rotation_size10240kB
log_statementnone/etc/postgresql/10/main/conf.d/15-pgbadger.conf:6
log_statement_statsoff
log_truncate_on_rotationoff
max_files_per_process1000
max_function_args100
max_identifier_length63
max_index_keys32
max_logical_replication_workers4
max_parallel_workers8
max_parallel_workers_per_gather2
max_pred_locks_per_page2
max_pred_locks_per_relation-2
max_pred_locks_per_transaction64
max_prepared_transactions0
max_replication_slots10
max_standby_archive_delay30000ms
max_standby_streaming_delay30000ms
max_sync_workers_per_subscription2
max_wal_senders10
max_wal_size1024MB/etc/postgresql/10/main/postgresql.conf:209
max_worker_processes8
min_parallel_index_scan_size648kB
min_parallel_table_scan_size10248kB
old_snapshot_threshold-1min
operator_precedence_warningoff
parallel_setup_cost1000
parallel_tuple_cost0.1
password_encryptionmd5
pg_profile.topn20
pg_stat_statements.saveon
pg_stat_statements.track_utilityon
port5432/etc/postgresql/10/main/postgresql.conf:63
post_auth_delay0s
pre_auth_delay0s
quote_all_identifiersoff
replacement_sort_tuples150000
restart_after_crashon
row_securityon
search_path"$user", public
segment_size1310728kB
seq_page_cost1
server_version10.23 (Ubuntu 10.23-0ubuntu0.18.04.2)
server_version_num100023
session_preload_libraries
session_replication_roleorigin
ssl_ca_file
ssl_ciphersHIGH:MEDIUM:+3DES:!aNULL
ssl_crl_file
ssl_dh_params_file
ssl_ecdh_curveprime256v1
ssl_prefer_server_cipherson
standard_conforming_stringson
statement_timeout0ms
superuser_reserved_connections3
synchronize_seqscanson
synchronous_commiton
synchronous_standby_names
syslog_facilitylocal0
syslog_identpostgres
syslog_sequence_numberson
syslog_split_messageson
system_identifier7083440090454890352
tcp_keepalives_count0
tcp_keepalives_idle0s
tcp_keepalives_interval0s
temp_buffers10248kB
temp_file_limit-1kB
temp_tablespaces
trace_notifyoff
trace_recovery_messageslog
trace_sortoff
track_activitieson
track_activity_query_size1024
track_commit_timestampoff
track_countson
track_io_timingoff
transaction_deferrableoff
transaction_isolationdefault
transaction_read_onlyoff
transform_null_equalsoff
unix_socket_directories/var/run/postgresql/etc/postgresql/10/main/postgresql.conf:66
unix_socket_group
unix_socket_permissions511
update_process_titleon
vacuum_cost_delay0ms
vacuum_cost_limit200
vacuum_cost_page_dirty20
vacuum_cost_page_hit1
vacuum_cost_page_miss10
vacuum_defer_cleanup_age0
vacuum_freeze_min_age50000000
vacuum_freeze_table_age150000000
vacuum_multixact_freeze_min_age5000000
vacuum_multixact_freeze_table_age150000000
wal_block_size8192
wal_compressionoff
wal_consistency_checking
wal_keep_segments0
wal_levelreplica
wal_log_hintsoff
wal_receiver_status_interval10s
wal_receiver_timeout60000ms
wal_retrieve_retry_interval5000ms
wal_segment_size20488kB
wal_sender_timeout60000ms
wal_sync_methodfdatasync
wal_writer_delay200ms
wal_writer_flush_after1288kB
xmlbinarybase64
xmloptioncontent
zero_damaged_pagesoff