Postgres profile report (StartID: 452, EndID: 475)

pg_profile version 0.3.6

Server name: local

Report interval: 2026-07-18 04:00:01+02 - 2026-07-19 03:00:01+02

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

Report sections

Server statistics

Database statistics

DatabaseTransactionsBlock statisticsTuplesTemp filesSizeGrowth
CommitsRollbacksDeadlocksHit(%)ReadHitRetFetInsUpdDelSizeFiles
openbravo147305213799.992197793445135947197081130013956884603070988386970479050 GB1723851521 GB169 MB
postgres11705100.0065849919017273481086367 kB
Total159010213799.992197793445794446197271302713960365683070988386970479050 GB1723851521 GB169 MB

Statement statistics by database

DatabaseCallsTime (s)Fetched (blk)Dirtied (blk)Temp (blk)Local (blk)Statements
ExecReadWriteTrgSharedLocalSharedLocalReadWriteReadWrite
openbravo5843802818523.2612.123550540185785996391374672315598419603
postgres561211.2286779345
template163486.107176276
Total5844998818540.5812.123550634140785996391374672315598420224

Cluster statistics

MetricValue
Scheduled checkpoints275
Requested checkpoints4
Checkpoint write time (s)35712.85
Checkpoint sync time (s)9.78
Checkpoints buffers written775659
Background buffers written
Backend buffers written25409
Backend fsync count
Bgwriter interrupts (too many buffers)
Number of buffers allocated67984
WAL generated5004 MB
WAL segments archived
WAL segments archive failed

Tablespace statistics

TablespacePathSizeGrowth
pg_default21 GB169 MB
pg_global766 kB

SQL query statistics

Top SQL by execution time

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

29bf42b1ab

[7d43ad7e]

openbravo8928.5648.16133168721116070.0081112763.6531120726.6312614.0318

4af3e2b8c4

[26c6f357]

openbravo5659.8230.53634855707477.460697812.826724176.4097598.3558

d11440f550

[dfbf0ec0]

openbravo702.473.79334107.997122.6256443.9611828.322171

3f546d3e2b

[a0643fcb]

openbravo458.362.47785733457294.92455532.18958797.030904.4778

fe2c4fe6df

[4c390f69]

openbravo247.221.33511574430902.61518847.46536294.5705435.7658

241cae8477

[42430e3c]

openbravo227.781.23573185528472.98623644.56631688.0522586.2768

c5df179779

[2870663b]

openbravo183.540.99139517270.0130.0065.2480.00513951727

b52b0c82ea

[4f5926de]

openbravo171.560.93272040421444.63315401.94025905.0133616.7048

08db126a91

[b0ebb687]

openbravo125.370.68303635215670.74713406.85718111.2351296.1058

1f5a522082

[f27cc8c7]

openbravo85.450.4636031612.256999.6202591.826308.27153

018c5dd71e

[eb509fc7]

openbravo81.150.44272035410143.5619102.17114387.1601637.1958

f0238ffe1b

[806faf8c]

openbravo77.610.4259386177607.11877607.11877607.1181

0b24cb5d2f

[738f9776]

openbravo75.000.4058858574998.50974998.50974998.5091

61aed5765c

[9c0a6d60]

openbravo66.520.368461956.5531722.0552042.77049.64234

d3dcdac298

[ce4e88c2]

openbravo61.640.33137494480.0040.0032.7310.00213749448

33f5216a17

[5b59cf42]

openbravo59.910.32139517270.0040.0032.0440.00213951727

24e13ace2f

[1e425839]

openbravo59.120.32269192111.4462059.4842378.25266.71728

7e35c14916

[be51200d]

openbravo55.140.302288471.292442.905549.15817.207117

12a0f36339

[acae3908]

openbravo51.300.28203252.71495.308425.61781.586203

225c51d0db

[ab242de4]

openbravo47.150.2514810947149.95247149.95247149.9521

Top SQL by executions

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

c5df179779

[2870663b]

openbravo1395172723.87139517270.0130.0065.2480.005183.5

33f5216a17

[5b59cf42]

openbravo1395172723.87139517270.0040.0032.0440.00259.9

75c88383e3

[196c6f74]

openbravo1395172723.87139517270.0030.0022.8580.00239.8

d3dcdac298

[ce4e88c2]

openbravo1374944823.52137494480.0040.0032.7310.00261.6

19825253ef

[cf182c3a]

openbravo4684480.80145700.0310.00816.2550.07814.5

8e8235137e

[b19ed954]

openbravo1643810.281643810.0090.0030.9720.0071.5

5f8e9d0065

[8e21a910]

openbravo1582720.271582720.0070.0021.2810.0071.2

74a1d87233

[3cb4d968]

openbravo1224160.211224160.0030.0020.3100.0010.4

93a759b1da

[6f9b1a85]

openbravo1156170.200.0020.0007.1740.0220.2

9455753479

[2049516b]

openbravo1134850.190.0010.0000.4230.0020.1

caede7e47b

[3051ec96]

openbravo758980.13758980.2430.108204.4092.03318.5

3ca20ddb6c

[afe3cf8b]

openbravo500520.09500520.0250.0111.9610.0301.2

0483033486

[2e63909b]

openbravo460370.0825990.0050.0030.7490.0050.2

3e80950586

[5c26872c]

openbravo314840.05314840.0160.0072.3920.0230.5

1eec949137

[6b7612aa]

openbravo302970.05302970.0030.0020.0910.0010.1

82f60a877f

[c149854]

openbravo259230.040.0010.0010.0650.0010.0

27b400c7db

[8a770ed5]

openbravo248160.04248160.0880.01614.7300.1592.2

62ab39c10c

[17ab2ce8]

openbravo190610.03190610.0080.0030.5820.0060.1

bf60147669

[9e09aee4]

openbravo190100.03190100.0490.0121.0330.0270.9

e5e056b68d

[bc36ac07]

openbravo171460.03171460.0190.0060.5640.0220.3

Top SQL by shared blocks fetched

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

4af3e2b8c4

[26c6f357]

openbravo254983725071.81100.005659.86348558

3f546d3e2b

[a0643fcb]

openbravo1894006155.33100.00458.478573348

d11440f550

[dfbf0ec0]

openbravo1521447514.29100.00702.533171

29bf42b1ab

[7d43ad7e]

openbravo1231906183.47100.008928.6133168728

241cae8477

[42430e3c]

openbravo761739222.15100.00227.857318558

b52b0c82ea

[4f5926de]

openbravo492172381.39100.00171.627204048

08db126a91

[b0ebb687]

openbravo479887661.35100.00125.430363528

c5df179779

[2870663b]

openbravo419063041.18100.00183.51395172713951727

d3dcdac298

[ce4e88c2]

openbravo275500190.78100.0061.61374944813749448

018c5dd71e

[eb509fc7]

openbravo274153350.77100.0081.127203548

61aed5765c

[9c0a6d60]

openbravo241466130.68100.0066.584634

fe2c4fe6df

[4c390f69]

openbravo219233430.62100.00247.251157448

133291c890

[be089ba]

openbravo164984050.46100.0034.16

b854ac1a69

[5ca0fee8]

openbravo156764050.44100.0023.83397491

75c88383e3

[196c6f74]

openbravo139517270.39100.0039.81395172713951727

33f5216a17

[5b59cf42]

openbravo139517270.39100.0059.91395172713951727

12a0f36339

[acae3908]

openbravo138673210.39100.0051.3203203

0a9b2d6035

[68af0d51]

openbravo111682560.31100.0020.36

19825253ef

[cf182c3a]

openbravo91310790.26100.0014.514570468448

a89f0eb5f9

[84642cf4]

openbravo87017760.25100.0021.149134

Top SQL by shared blocks read

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

c9878c2668

[4211bbca]

openbravo1117414.5794.873.31

caede7e47b

[3051ec96]

openbravo933512.1799.5518.57589875898

181fd1b092

[b76c5e2]

openbravo37964.9596.572.326302630

4f740b8e64

[3819b415]

openbravo36604.7799.251.44071831

8cb37f78ee

[e2543c48]

openbravo33114.3299.084.624352435

604436a476

[3afdf1db]

openbravo33044.3198.071.741924192

017d00aa12

[a852adf9]

openbravo29723.8797.531.2245531

2d19e5b311

[b34f1d1f]

openbravo28163.6795.382.515111511

8d633ecaab

[ee4ba68d]

openbravo26083.4096.951.316971697

4f42690015

[38c3f6e1]

openbravo26063.4098.992.0245531

70caf7bb1e

[f7c054b4]

openbravo24513.2095.761.715131513

616a44c111

[97aab45d]

openbravo21132.7596.041.814811481

3ff50f5232

[e81c3c12]

openbravo18712.4495.891.415131513

24f0f61153

[84a8bcfc]

openbravo15942.0899.071.914091409

66bc870e45

[d37bd6d7]

openbravo15852.0798.031.114081408

6b67fe6923

[5d2e4e6c]

openbravo13791.8099.282.122352235

d1c0672c81

[a1b7c5f]

openbravo13771.8099.322.922462246

4f9621bcb7

[ddcc675a]

openbravo9501.2499.462.0719719

7280c24d29

[b83898a6]

openbravo8471.1099.250.784931

313b1ecda9

[978c2f22]

openbravo8381.0999.694.993339333

Top SQL by shared blocks dirtied

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

caede7e47b

[3051ec96]

openbravo17076021.7399.5518.57589875898

5500567ca4

[6ee18a4d]

openbravo10941113.9299.703.61

c9878c2668

[4211bbca]

openbravo616557.8494.873.31

4f740b8e64

[3819b415]

openbravo246193.1399.251.44071831

32d90994b5

[b6b4b66e]

openbravo226282.8899.971.1259231

382d19fc6d

[40fd3671]

openbravo189762.41100.0037.823

905bffc89c

[92975a8e]

openbravo189762.41100.0037.82323

8cb37f78ee

[e2543c48]

openbravo137771.7599.084.624352435

4f42690015

[38c3f6e1]

openbravo131141.6798.992.0245531

50e85a5d5e

[fed47e50]

openbravo123971.5899.9914.524202420

48f140c821

[edb3cd2d]

openbravo110911.4199.830.8245531

4f9621bcb7

[ddcc675a]

openbravo102401.3099.462.0719719

24f0f61153

[84a8bcfc]

openbravo93911.1999.071.914091409

fe62dd3708

[fcea205c]

openbravo92491.1899.611.022102210

313b1ecda9

[978c2f22]

openbravo90711.1599.694.993339333

d1c0672c81

[a1b7c5f]

openbravo89891.1499.322.922462246

f398687456

[f1896355]

openbravo85561.0999.731.7686686

6b67fe6923

[5d2e4e6c]

openbravo84811.0899.282.122352235

604436a476

[3afdf1db]

openbravo78531.0098.071.741924192

2d19e5b311

[b34f1d1f]

openbravo77960.9995.382.515111511

Top SQL by shared blocks written

Query IDDatabaseWritten%Total%BackendWHits(%)Elapsed(s)RowsExecutions

19fa46b9b1

[9a64cac6]

openbravo10.000.0096.220.21

Top SQL by temp usage

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

29bf42b1ab

[7d43ad7e]

openbravo1785421777.103508767689.658928.6133168728

d11440f550

[dfbf0ec0]

openbravo319723613.8120291535.18702.533171

241cae8477

[42430e3c]

openbravo11375574.9111381812.91227.857318558

7e35c14916

[be51200d]

openbravo3389901.463388730.8755.12288117

24e13ace2f

[1e425839]

openbravo2592531.122594210.6659.12691928

102454699d

[1596f0d4]

openbravo2015820.871169120.3038.82406

fe2c4fe6df

[4c390f69]

openbravo1573800.681574760.40247.251157448

d3457bdce0

[25bcd965]

openbravo97690.0497750.024.28501

Complete list of SQL texts

QueryIDQuery Text
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)
82f60a877fUPDATE ONLY "public"."obedl_request_line" SET "c_import_entry_archive_id" = $2 WHERE $1::pg_catalog.text OPERATOR(pg_catalog.=) "c_import_entry_archive_id"::pg_catalog.text
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
62ab39c10cSELECT 1 FROM ONLY "public"."c_currency" x WHERE "c_currency_id"::pg_catalog.text OPERATOR(pg_catalog.=) $1::pg_catalog.text FOR KEY SHARE OF x
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)
24e13ace2fSELECT 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 )
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 ) "_"
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
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, 'Y', to_timestamp(to_char($4), to_char('YYYY-MM-DD HH24:MI:SS')), $5, to_timestamp(to_char($6), to_char('YYYY-MM-DD HH24:MI:SS')), $7, to_number($8), $9, $10, $11, $12, $13, $14 )
4f740b8e64delete from obmobc_logclient where Created<now()-10 and (Loglevel not in ('Warn' , 'Error'))
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)
c9878c2668vacuum analyze obmobc_logclient
241cae8477select "_"."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 ) "_"
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 ) "_"
33f5216a17SELECT 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) )
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
b854ac1a69SELECT c_bpartner_id as "ObjectID" , name as "Name" , isprospect as "IsProspect" , isvendor as "IsVendor" , iscustomer as "IsCustomer" , isemployee as "IsEmployee" , (select u.phone from ad_user u where u.c_bpartner_id = c_bpartner.c_bpartner_id LIMIT $1) as Phone , (select u.email from ad_user u where u.c_bpartner_id = c_bpartner.c_bpartner_id LIMIT $2) as Email , (select u.commercialauth from ad_user u where u.c_bpartner_id = c_bpartner.c_bpartner_id LIMIT $3) as CommercialAuth , (select cl.address1 from c_bpartner_location cbl inner join c_location cl on cbl.c_location_id = cl.c_location_id where cbl.c_bpartner_id = c_bpartner.c_bpartner_id limit $4) as Address , (select cl.city from c_bpartner_location cbl inner join c_location cl on cbl.c_location_id = cl.c_location_id where cbl.c_bpartner_id = c_bpartner.c_bpartner_id limit $5) as City , (select cl.postal from c_bpartner_location cbl inner join c_location cl on cbl.c_location_id = cl.c_location_id where cbl.c_bpartner_id = c_bpartner.c_bpartner_id limit $6) as "PostalCode" , (select cc.name from c_bpartner_location cbl inner join c_location cl on cbl.c_location_id = cl.c_location_id left join c_country cc on cc.c_country_id = cl.c_country_id where cbl.c_bpartner_id = c_bpartner.c_bpartner_id limit $7) as Country , created as "DateCreated" , is_customer_consent as "IsCustomerConsent" , cast(birthday as TEXT) as "BirthdayDate" FROM c_bpartner
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)
0a9b2d6035SELECT * FROM (SELECT DISTINCT iol.m_product_id as referencekey_id, $2 as ad_role_id, $3 as ad_user_id, $4 || p.name || $5 as description, $6 as isactive, iol.ad_org_id as ad_org_id, iol.ad_client_id as ad_client_id, now() as created, $7 as createdBy, now() as updated, $8 as updatedBy, p.name as RECORD_ID FROM m_inoutline iol JOIN m_inout io ON iol.m_inout_id = io.m_inout_id AND io.issotrx = $9 AND io.docstatus = $10 JOIN m_transaction t ON iol.m_inoutline_id = t.m_inoutline_id JOIN c_bpartner bp ON io.c_bpartner_id = bp.c_bpartner_id JOIN m_product p ON iol.m_product_id = p.m_product_id JOIN m_costing_rule cr ON ad_isorgincluded(io.ad_org_id, cr.ad_org_id, io.ad_client_id) >= $11 AND cr.datefrom <= t.trxprocessdate AND cr.dateto > t.trxprocessdate JOIN m_costing_algorithm ca ON cr.m_costing_algorithm_id = ca.m_costing_algorithm_id AND ca.classname = $12 WHERE NOT EXISTS (SELECT $13 FROM m_matchpo mp WHERE mp.m_inoutline_id = iol.m_inoutline_id AND mp.c_orderline_id IS NOT NULL) AND NOT EXISTS (SELECT $14 FROM m_costing c WHERE c.m_product_id = iol.m_product_id AND c.costtype IN ($15, $16) AND c.datefrom <= t.trxprocessdate AND c.dateto > t.trxprocessdate) AND NOT EXISTS (SELECT $17 FROM m_productprice pp JOIN m_pricelist_version ppv ON pp.m_pricelist_version_id = ppv.m_pricelist_version_id JOIN m_pricelist pl ON pl.m_pricelist_id = ppv.m_pricelist_id WHERE pp.m_product_id = iol.m_product_id AND (bp.po_pricelist_id = ppv.m_pricelist_id OR (bp.po_pricelist_id IS NULL AND pl.issopricelist = $18)) AND ppv.validfrom <= t.trxprocessdate) AND NOT EXISTS (SELECT $19 FROM c_orderline ol JOIN c_order o ON ol.c_order_id = o.c_order_id AND o.issotrx = $20 AND o.processed = $21 WHERE ol.m_product_id = iol.m_product_id AND o.c_bpartner_id = bp.c_bpartner_id AND ad_isorgincluded(o.ad_org_id, cr.ad_org_id, io.ad_client_id) >= $22)) AAA where not exists (select $23 from ad_alert a where a.ad_alertrule_id = $1 and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, $24) != $25)
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
5500567ca4vacuum analyze C_Import_Entry_Archive
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
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
a89f0eb5f9select businesspa0_.C_BPartner_Location_ID as col_0_0_, businesspa1_.C_BPartner_ID as col_1_0_, coalesce(location2_.Address1, location2_.Postal, location2_.City, businesspa0_.Name) as col_2_0_, coalesce(location2_.Address2, $9) as col_3_0_, location2_.Postal as col_4_0_, location2_.City as col_5_0_, coalesce((select countrytrl4_.Name from C_Country_Trl countrytrl4_ where countrytrl4_.C_Country_ID=location2_.C_Country_ID and countrytrl4_.AD_Language=$10), country5_.Name) as col_6_0_, location2_.C_Country_ID as col_7_0_, businesspa0_.IsBillTo as col_8_0_, businesspa0_.IsShipTo as col_9_0_, businesspa0_.Isdefault_Shipto as col_10_0_, businesspa0_.Isdefault_Billto as col_11_0_, coalesce(region3_.Name, $11) as col_12_0_, coalesce(region3_.C_Region_ID, $12) as col_13_0_, businesspa0_.Created as col_14_0_, businesspa0_.Updated as col_15_0_, coalesce((location2_.Address1||case when location2_.Address2 is not null then $13 end||location2_.Address2), location2_.Address1, location2_.Address2, location2_.Postal, location2_.City) as col_16_0_, case when businesspa0_.IsActive=$14 and businesspa1_.IsActive=$15 then $16 else $17 end as col_17_0_, now() as col_18_0_ from C_BPartner_Location businesspa0_ inner join C_BPartner businesspa1_ on businesspa0_.C_BPartner_ID=businesspa1_.C_BPartner_ID left outer join C_Location location2_ on businesspa0_.C_Location_ID=location2_.C_Location_ID left outer join C_Region region3_ on location2_.C_Region_ID=region3_.C_Region_ID cross join C_Country country5_ where location2_.C_Country_ID=country5_.C_Country_ID and $18=$19 and businesspa1_.IsCustomer=$20 and (businesspa1_.M_PriceList_ID is not null) and businesspa0_.IsActive=$21 and businesspa1_.IsActive=$22 and (businesspa0_.AD_Client_ID in ($23 , $24)) and (businesspa0_.AD_Org_ID in ($1 , $2 , $3 , $4 , $5 , $6)) and businesspa0_.C_BPartner_Location_ID>$7 order by businesspa0_.C_BPartner_Location_ID limit $8
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)
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)
19fa46b9b1vacuum analyze AD_Alert
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)
225c51d0dbCOPY public.c_import_entry_archive (c_import_entry_archive_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, imported, jsoninfo, importstatus, typeofdata, errorinfo, ad_role_id, responseinfo, em_obpos_applications_id, isnonblocking) TO stdout
12a0f36339SELECT COALESCE(sum(month_total_amount),$1) AS month_total_amount, COALESCE(sum(week_total_amount),$2) AS week_total_amount, COALESCE(sum(day_total_amount),$3) AS day_total_amount, COALESCE(sum(month_total_units),$4) AS month_total_units, COALESCE(sum(week_total_units),$5) AS week_total_units, COALESCE(sum(day_total_units),$6) AS day_total_units, COALESCE(sum(month_total_amount_ret),$7) AS month_total_amount_ret, COALESCE(sum(week_total_amount_ret),$8) AS week_total_amount_ret, COALESCE(sum(day_total_amount_ret),$9) AS day_total_amount_ret, COALESCE(sum(month_total_units_ret),$10) AS month_total_units_ret, COALESCE(sum(week_total_units_ret),$11) AS week_total_units_ret, COALESCE(sum(day_total_units_ret),$12) AS day_total_units_ret FROM ( SELECT -- Pedidos CASE WHEN ol.line_gross_amount > $13 THEN ol.line_gross_amount END month_total_amount, CASE WHEN ol.line_gross_amount > $14 THEN ol.qtyordered END month_total_units, CASE WHEN o.created >= d.actual_week_date AND ol.line_gross_amount > $15 THEN ol.line_gross_amount END AS week_total_amount, CASE WHEN o.created >= d.actual_week_date AND ol.line_gross_amount > $16 THEN ol.qtyordered END AS week_total_units, CASE WHEN o.created >= d.actual_date AND ol.line_gross_amount > $17 THEN ol.line_gross_amount END AS day_total_amount, CASE WHEN o.created >= d.actual_date AND ol.line_gross_amount > $18 THEN ol.qtyordered END AS day_total_units, -- Devos CASE WHEN ol.line_gross_amount < $19 THEN ol.line_gross_amount END month_total_amount_ret, CASE WHEN ol.line_gross_amount < $20 THEN ol.qtyordered END month_total_units_ret, CASE WHEN o.created >= d.actual_week_date AND ol.line_gross_amount < $21 THEN ol.line_gross_amount END AS week_total_amount_ret, CASE WHEN o.created >= d.actual_week_date AND ol.line_gross_amount < $22 THEN ol.qtyordered END AS week_total_units_ret, CASE WHEN o.created >= d.actual_date AND ol.line_gross_amount < $23 THEN ol.line_gross_amount END AS day_total_amount_ret, CASE WHEN o.created >= d.actual_date AND ol.line_gross_amount < $24 THEN ol.qtyordered END AS day_total_units_ret FROM c_orderline ol LEFT JOIN c_order o ON ol.c_order_id = o.c_order_id LEFT JOIN c_doctype cd ON cd.c_doctype_id=o.c_doctypetarget_id , ( SELECT trunc(now()) actual_date, date_trunc($25,now()) actual_week_date, date_trunc($26,now()) actual_month_date FROM dual) d WHERE o.ad_org_id = $27 AND o.created >= d.actual_month_date AND cd.docsubtypeso<>$28 AND o.issotrx=$29 ) AS f1
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
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)
32d90994b5delete from C_Import_Entry_Archive where Created<now()-$1
7280c24d29insert into c_invoice (c_invoice_id, ad_client_id, ad_org_id, ad_orgtrx_id, isactive, created, createdby, updated, updatedby, issotrx, documentno, docstatus, docaction, processing, processed, posted, c_doctype_id, c_doctypetarget_id, c_order_id, description, dateordered, salesrep_id, dateinvoiced, dateacct, c_bpartner_id, c_bpartner_location_id, c_currency_id, c_paymentterm_id, totallines, grandtotal, m_pricelist_id, ispaid, totalpaid, outstandingamt, fin_paymentmethod_id, ad_user_id, em_aprm_processinvoice, iscashvat, bpartner_extref) select get_uuid(), o.ad_client_id, o.ad_org_id, o.ad_orgtrx_id, $10, to_timestamp(to_char($1), to_char($12)), $2, to_timestamp(to_char($3), to_char($13)), $4, $14, $5, $16, $18, $20, $22, $24, dt.c_doctypeaggrinvoice_id, dt.c_doctypeaggrinvoice_id, $26, $6, $28, max(o.salesrep_id), to_date(substr(to_char($7), $30, $31), to_char($32)), to_date(substr(to_char($8), $33, $34), to_char($35)), o.c_bpartner_id, coalesce(o.billto_id, o.c_bpartner_location_id), o.c_currency_id, bp.c_paymentterm_id, sum(o.totallines), sum(o.grandtotal), max(o.m_pricelist_id), $36, sum(o.grandtotal), $38, bp.fin_paymentmethod_id, o.ad_user_id, $39, o.iscashvat, o.bpartner_extref from c_order o, obpos_applications ap, ad_org org, c_doctype dt, c_bpartner bp where o.em_obpos_applications_id = ap.obpos_applications_id and o.ad_org_id = org.ad_org_id and dt.c_doctype_id in (org.em_obpos_c_doctype_id, org.em_obpos_c_doctyperet_id) and $41=$42 and o.c_doctype_id = dt.c_doctype_id and o.c_bpartner_id = bp.c_bpartner_id and o.em_obpos_app_cashup_id = $9 and o.c_doctype_id in (org.em_obpos_c_doctype_id, org.em_obpos_c_doctyperet_id) and o.em_obpos_islayaway = $43 and o.invoicerule = $44 and exists (select $45 from c_orderline ol2 where ol2.qtyinvoiced = $46 and ol2.em_obpos_isdeleted = $47 and ol2.c_order_id = o.c_order_id) and o.em_obpos_notinvoiceoncashup = $48 group by o.ad_client_id, o.ad_org_id, o.ad_orgtrx_id, dt.c_doctypeaggrinvoice_id, dt.c_doctypeaggrinvoice_id, o.c_bpartner_id, coalesce(o.billto_id, o.c_bpartner_location_id), o.c_currency_id, bp.c_paymentterm_id, o.m_pricelist_id, bp.fin_paymentmethod_id, o.ad_user_id, o.iscashvat, o.bpartner_extref
e5e056b68dSELECT 1 FROM ONLY "public"."ad_user" x WHERE "ad_user_id"::pg_catalog.text OPERATOR(pg_catalog.=) $1::pg_catalog.text FOR KEY SHARE OF x
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
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
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)
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)
3ff50f5232insert into C_OrderTax (C_Order_ID, C_Tax_ID, AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, TaxBaseAmt, TaxAmt, Line, C_OrderTax_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13)
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))
8d633ecaabinsert into C_Import_Entry_Archive (AD_Client_ID, AD_Org_ID, Isactive, Created, Createdby, Updated, Updatedby, Imported, Jsoninfo, ImportStatus, Typeofdata, AD_Role_ID, Responseinfo, Isnonblocking, C_Import_Entry_Archive_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15)
f398687456insert into C_Order (AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, IsSOTrx, DocumentNo, DocStatus, DocAction, Processing, Processed, C_DocType_ID, C_DocTypeTarget_ID, Description, IsDelivered, IsInvoiced, IsPrinted, IsSelected, SalesRep_ID, DateOrdered, DatePromised, DateAcct, C_BPartner_ID, BillTo_ID, C_BPartner_Location_ID, IsDiscountPrinted, C_Currency_ID, PaymentRule, C_PaymentTerm_ID, InvoiceRule, DeliveryRule, FreightCostRule, DeliveryViaRule, ChargeAmt, PriorityRule, TotalLines, GrandTotal, M_Warehouse_ID, M_PriceList_ID, IsTaxIncluded, Posted, AD_User_ID, CopyFrom, IsSelfService, AD_OrgTrx_ID, Generatetemplate, CopyFromPO, FIN_Paymentmethod_ID, RM_PickFromShipment, RM_ReceiveMaterials, RM_CreateInvoice, RM_AddOrphanLine, Calculate_Promotions, Convertquotation, Create_POLines, EM_Obdisc_Addpack, Iscashvat, EM_OBMFM_Selectfreight, RM_Pickfromreceipt, Cancelandreplace, EM_APRM_AddPayment, Confirmcancelandreplace, EM_Obwpl_Generatepicking, EM_Obwpl_Isinpickinglist, EM_Fash_Sendbeforedate, EM_Obwpl_Readypl, EM_Poss_Businessdate, Iscancelled, EM_OBMFM_Set_Weight, EM_Obpos_Applications_ID, EM_Obpos_Sendemail, EM_Obpos_App_Cashup_ID, EM_Obpos_Createdabsolute, EM_OBPOS_NotInvoiceOnCashUp, EM_Obpos_Isdeleted, EM_Obpos_Islayaway, EM_Obpos_Prepaymentamt, EM_Obpos_Prepaymentlimitamt, EM_Obpos_Prepaymentlaylimitamt, EM_Obpos_Rounding_Amount, EM_Obpos_Sequencename, EM_Obpos_Sequencenumber, EM_Prpp_Generatepicking, EM_Api_Resend, EM_Prouti_Order_Stock, EM_Prouti_Pregenerate_Minout, EM_Prouti_Sotopo, EM_Prouti_Generate_Pick_Inv, EM_Prouti_Changebpartner, EM_Prouti_Recalculate_Price, EM_Prouti_Reactiveorder, EM_Izi_Exported, EM_Izijoy_Export_Enjoy, EM_Izi_Splio_Exported, em_prouti_Invoiced, em_prouti_Received, em_prouti_initial_received, EM_Prouti_Status_Of_Review, EM_Prouti_Validate_Order, EM_Prouti_Start_Review, EM_Obpos_Skip_Tax_Calculation, EM_Prouti_Addlines_Btn, EM_Avisver_Export, EM_Prouti_Select_Soline, EM_Prgr_Assign, C_Order_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40, $41, $42, $43, $44, $45, $46, $47, $48, $49, $50, $51, $52, $53, $54, $55, $56, $57, $58, $59, $60, $61, $62, $63, $64, $65, $66, $67, $68, $69, $70, $71, $72, $73, $74, $75, $76, $77, $78, $79, $80, $81, $82, $83, $84, $85, $86, $87, $88, $89, $90, $91, $92, $93, $94, $95, $96, $97, $98, $99, $100, $101, $102, $103, $104, $105, $106, $107, $108)
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
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, 'Y', TO_DATE(NOW()), v_AD_User_ID, TO_DATE(NOW()), v_AD_User_ID, p_uuid, v_Count, Cur_Stock.M_STORAGE_DETAIL_ID, Cur_Stock.Qty, Cur_Stock.QtyOrder, 'Y' )
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_order130 GB141587466951559767148111338
c_order(TOAST)
openbravopg_defaultpublicc_bpartner43 GB262184812415148239521483
c_bpartner(TOAST)
openbravopg_defaultpublicad_user28 GB2644252160742524879521594513
ad_user(TOAST)
openbravopg_defaultpublicfin_payment15 GB244636946079141643661200
fin_payment(TOAST)
openbravopg_defaultpublicfin_payment_schedule10 GB24579112761158142247225912139
fin_payment_schedule(TOAST)
openbravopg_defaultpublicm_transaction8674 MB142008504819512637
m_transaction(TOAST)
openbravopg_defaultpublicm_inout7047 MB16520185392520185388141114234
m_inout(TOAST)62926167129
openbravopg_defaultpg_catalogpg_class6373 MB7156916507963201
openbravopg_defaultprofilelast_stat_database4812 MB1231769292
openbravopg_defaultpublicm_inoutline3937 MB622467981545233941266289
m_inoutline(TOAST)
openbravopg_defaultpublicc_location3267 MB481753592436933821410411
c_location(TOAST)
openbravopg_defaultpublicc_invoice2369 MB911719354852849907
c_invoice(TOAST)
openbravopg_defaultprofilelast_stat_tablespaces2044 MB436144646
last_stat_tablespaces(TOAST)
openbravopg_defaultpg_catalogpg_proc1615 MB8376268590175
pg_proc(TOAST)18635051
openbravopg_defaultpublicad_table1537 MB21626262
ad_table(TOAST)
openbravopg_defaultpublicm_product1215 MB29530836083394540
m_product(TOAST)
openbravopg_defaultpublicc_orderline1193 MB160745035855580263051942091
c_orderline(TOAST)
openbravopg_defaultpublicobcfr_ticketreprint965 MB1151115111511
obcfr_ticketreprint(TOAST)5542581435
openbravopg_defaultpublicad_org742 MB316628800494289664186038
ad_org(TOAST)4262842628
openbravopg_defaultpublicobmobc_logclient463 MB1243474775903415015
obmobc_logclient(TOAST)

Top tables by blocks fetched

DBTablespaceSchemaTableHeapIxTOASTTOAST-Ix
Blks%TotalBlks%TotalBlks%TotalBlks%Total
openbravopg_defaultpublicm_inout52116316815.12156741733145.477140.0057360.00
openbravopg_defaultpublicm_inoutline52761942315.31714914622.07
openbravopg_defaultpublicad_user462682731.341278774663.71
openbravopg_defaultpublicc_bpartner_location365100571.06567168051.65
openbravopg_defaultpublicc_location373545341.08528431801.53
openbravopg_defaultpublicc_order551307401.60213355430.62
openbravopg_defaultpublicad_org292699610.85288009440.84426280.001283130.00
openbravopg_defaultpublicc_orderline288693940.8429651360.09
openbravopg_defaultpublicc_country143827620.42143822320.42
openbravopg_defaultpublicm_costing279043900.81
openbravopg_defaultpublicc_bpartner208442010.6058237030.17
openbravopg_defaultpublicfin_payment_schedule75190110.22174577990.51
openbravopg_defaultpublicfin_payment_detail151228100.442375670.01
openbravopg_defaultpublicc_import_entry82983360.2416825420.051828190.014507120.01
openbravopg_defaultpublicm_matchpo25923520.0878188180.23
openbravopg_defaultpublicm_product35329370.1062915030.18
openbravopg_defaultpublicfin_payment_scheduledetail58516090.172735220.01
openbravopg_defaultprofilelast_stat_tables46852760.141333670.00
openbravopg_defaultpublicobmobc_logclient16828250.0521918990.06
openbravopg_defaultpg_catalogpg_class17396280.0518547340.05

Top tables by blocks read

DBTablespaceSchemaTableHeapIxTOASTTOAST-IxHit(%)
Blks%TotalBlks%TotalBlks%TotalBlks%Total
openbravopg_defaultpublicobmobc_logclient45122.0516257573.9795.69
openbravopg_defaultpublicc_import_entry_archive4360.2029711.3548782.221680.0899.63
openbravopg_defaultpublicc_orderline3590.1637541.7199.99
openbravopg_defaultpublicc_orderlinetax1370.0637041.6994.88
openbravopg_defaultpublicc_invoicelinetax1070.0528651.3092.51
openbravopg_defaultpublicobcfr_ticketreprint3580.1624481.11100.0098.77
openbravopg_defaultpublicfin_payment_scheduledetail1230.0625151.1499.96
openbravopg_defaultpublicc_invoiceline1670.0824431.1198.38
openbravopg_defaultpublicobcfr_tickettax1280.0622031.0094.48
openbravopg_defaultpublicobcfr_ticket3360.1517740.8150.0096.93
openbravopg_defaultpublicm_inout1720.0816870.77400.02100.00
openbravopg_defaultpublicc_order3130.1414830.67100.00
openbravopg_defaultpublicc_ordertax850.0416510.7593.31
openbravopg_defaultpublicm_transaction1610.0715080.6999.91
openbravopg_defaultpublicm_inoutline1940.0913890.63100.00
openbravopg_defaultpublicc_import_entry4310.20260.0110160.46200.0199.99
openbravopg_defaultpublicfin_finacc_transaction1580.0712890.5999.86
openbravopg_defaultpublicc_invoice1750.088730.4099.87
openbravopg_defaultpublicfin_payment_schedule1850.088390.38100.00
openbravopg_defaultpublicfin_payment2970.146610.3099.96

Top DML tables

DBTablespaceSchemaTableInsUpdDelUpd(HOT)SeqScanSeqFetIxScanIxFet
openbravopg_defaultpublicobmobc_logclient7590341501519867052434747
obmobc_logclient(TOAST)
openbravopg_defaultpublicc_import_entry_archive59102592311481091350325923
c_import_entry_archive(TOAST)2061584014136403579543
openbravopg_defaultprofilelast_stat_indexes672981616672983184107676841199405404
openbravopg_defaultpublicc_import_entry135301353013530545981413035
c_import_entry(TOAST)224322243235734114044
openbravopg_defaultprofilelast_stat_tables392384237392387018462780893104137731
openbravopg_defaultpg_catalogpg_statistic1500214535612214517044
pg_statistic(TOAST)2275227355251122258
openbravopg_defaultprofilelast_stat_user_functions9039988903949388268812
last_stat_user_functions(TOAST)
openbravopg_defaultpublicm_stock_proposed2131103002630601695316453
m_stock_proposed(TOAST)
openbravopg_defaultprofilesample_stat_tables4049449116877082
openbravopg_defaultpublicc_orderline2630519420911196348160745035855580
c_orderline(TOAST)
openbravopg_defaultpublicfin_payment14164366120024172120534636946079
fin_payment(TOAST)
openbravopg_defaultpublicfin_payment_scheduledetail141642701351496925784233
fin_payment_scheduledetail(TOAST)
openbravopg_defaultpublicfin_finacc_transaction15513019149012421705
fin_finacc_transaction(TOAST)
openbravopg_defaultpublicfin_payment_schedule2247225912139243068322657911276115814
fin_payment_schedule(TOAST)
openbravopg_defaultpublicad_sequence42624103323287738773
ad_sequence(TOAST)
openbravopg_defaultpublicad_process_run21421431602200561062920936
ad_process_run(TOAST)16180130577
openbravopg_defaultpublicobpos_applications337232082051261010911377912
obpos_applications(TOAST)
openbravopg_defaultpublicm_inout1411142341611644659520185392520185388
m_inout(TOAST)16712962926
openbravopg_defaultpublicm_storage_detail1928451498634855405296580863
m_storage_detail(TOAST)
openbravopg_defaultpublicm_inoutline2662896905155822467981545233941
m_inoutline(TOAST)

Top tables by updated/deleted tuples

DBTablespaceSchemaTableUpdUpd(HOT)DelVacuumAutoVacuumAnalyzeAutoAnalyze
openbravopg_defaultpublicobmobc_logclient41501511311
obmobc_logclient(TOAST)1
openbravopg_defaultpublicc_import_entry_archive259231211
c_import_entry_archive(TOAST)840141
openbravopg_defaultprofilelast_stat_indexes1616367298354623
openbravopg_defaultpublicc_import_entry135301353083143
c_import_entry(TOAST)2243252
openbravopg_defaultprofilelast_stat_tables42377039238354623
openbravopg_defaultpg_catalogpg_statistic15002145351
pg_statistic(TOAST)22736
openbravopg_defaultpublicm_stock_proposed1030011311
m_stock_proposed(TOAST)1
openbravopg_defaultprofilelast_stat_user_functions988499039354623
last_stat_user_functions(TOAST)
openbravopg_defaultpublicc_orderline51942091
c_orderline(TOAST)
openbravopg_defaultprofilesample_stat_tables44912
openbravopg_defaultpublicfin_payment43661200
fin_payment(TOAST)
openbravopg_defaultpublicfin_payment_scheduledetail42701351
fin_payment_scheduledetail(TOAST)
openbravopg_defaultpublicad_sequence42624103735
ad_sequence(TOAST)
openbravopg_defaultpublicad_process_run214316011311
ad_process_run(TOAST)180113
openbravopg_defaultpublicobpos_applications337232084555
obpos_applications(TOAST)
openbravopg_defaultpublicfin_finacc_transaction3019
fin_finacc_transaction(TOAST)
openbravopg_defaultpublicm_storage_detail28451491
m_storage_detail(TOAST)
openbravopg_defaultpublicfin_payment_schedule225913912
fin_payment_schedule(TOAST)
openbravopg_defaultpublicobpos_app_cashup1629125
obpos_app_cashup(TOAST)
openbravopg_defaultpublicm_inout14234
m_inout(TOAST)129

Top growing tables

DBTablespaceSchemaTableSizeGrowthInsUpdDelUpd(HOT)
openbravopg_defaultpublicad_process_run3720 kB80 kB2142143160
ad_process_run(TOAST)1184 kB40 kB16180
openbravopg_defaultprofilelast_stat_user_functions248 kB24 kB9039988903949
last_stat_user_functions(TOAST)
openbravopg_defaultpg_catalogpg_statistic5048 kB16 kB1500214535
pg_statistic(TOAST)3792 kB22752273
openbravopg_defaultpublicad_process_request136 kB8192 bytes271270
ad_process_request(TOAST)208 kB
openbravopg_defaultpublicfin_financial_account232 kB8192 bytes15301519
fin_financial_account(TOAST)
openbravopg_defaultprofilelast_stat_tables1488 kB8192 bytes3923842373923870
openbravopg_defaultprofilestmt_list512 kB8192 bytes64
stmt_list(TOAST)168 kB

Top indexes by blocks fetched

DBTablespaceSchemaTableIndexScansBlks%Total
openbravopg_defaultpublicm_inoutm_inout_key520181302156731109245.47
openbravopg_defaultpublicad_userad_user_partner423328581273020863.69
openbravopg_defaultpublicm_inoutlinem_inoutline_orderline21793583657742841.91
openbravopg_defaultpublicc_bpartner_locationc_bplocation_bpartner18759724564128281.64
openbravopg_defaultpublicc_locationc_location_key17535924528403641.53
openbravopg_defaultpublicad_orgad_org_key28797141287970430.84
openbravopg_defaultpublicm_costingm_costing_product_date27903454279036880.81
openbravopg_defaultpublicc_orderc_order_key5853530177106880.51
openbravopg_defaultpublicfin_payment_schedulefin_payment_schedule_key5765380173460390.50
openbravopg_defaultpublicc_countryc_country_key14380420143806410.42
openbravopg_defaultpublicm_matchpom_matchpo_inout260011678187790.23
openbravopg_defaultpublicm_productm_product_key307834361922110.18
openbravopg_defaultpublicm_inoutlinem_inoutline_product63508755476990.16
openbravopg_defaultpublicc_bpartnerc_bpartner_key180775954334900.16
openbravopg_defaultpublicc_orderc_order_client_org_date_docno24931868090.09
openbravopg_defaultpublicc_orderlineem_obpos_orderedqty53223223033440.07
openbravopg_defaultpg_catalogpg_attributepg_attribute_relid_attnum_index90540218279060.05
openbravopg_defaultpg_catalogpg_classpg_class_oid_index84115216960570.05
openbravopg_defaultpublicc_country_trlc_country_trl_country_langu_un68733613746840.04
openbravopg_defaultpg_catalogpg_statisticpg_statistic_relid_att_inh_index56957111485280.03

Top indexes by blocks read

DBTablespaceSchemaTableIndexScansBlk Reads%TotalHits(%)
openbravopg_defaultpublicobmobc_logclientobmobc_logclient_timestamp8045436.6177.74
openbravopg_defaultpublicobmobc_logclientobmobc_logclient_cache7412833.7381.93
openbravopg_defaultpublicobmobc_logclientobmobc_logclient_term_date243751.9998.69
openbravopg_defaultpublicobmobc_logclientobmobc_logclient_context26781.2299.61
openbravopg_defaultpublicc_import_entry_archiveem_obpos_app_import_ea_fk14720.6776.41
openbravopg_defaultpublicc_orderlinetaxc_orderlinetax_key13180.6087.55
openbravopg_defaultpublicc_orderlinetaxc_orderlinetax_orderline487212980.5995.69
openbravopg_defaultpublicc_orderlineem_obpos_deliveredqty11580.5395.02
openbravopg_defaultpublicc_orderlinec_orderline_order11570.5395.02
openbravopg_defaultpublicc_orderlinec_orderline_order211570.5395.02
openbravopg_defaultpublicm_transactionm_transaction_key11360.5285.09
openbravopg_defaultpublicc_invoicelinetaxc_invoicelinetax_key11190.5184.83
openbravopg_defaultpublicc_invoicelinec_invoiceline_key251310900.5092.69
openbravopg_defaultpublicc_invoicelinetaxc_invoicelinetax_invoiceline10680.4985.52
openbravopg_defaultpublicc_orderlinetaxc_orderlinetax_orderid9980.4589.64
openbravopg_defaultpublicobcfr_tickettaxobcfr_tickettax_term_hash9550.4382.92
openbravopg_defaultpublicobcfr_ticketreprintobcfr_ticketreprint_term_hash9530.4383.05
openbravopg_defaultpublicc_import_entry_archivec_import_entry_archive_idx19300.4228.52
openbravopg_defaultpublicobcfr_ticketobcfr_ticket_term_hash9270.4282.78
openbravopg_defaultpublicobmobc_logclientobmobc_logclient_log_idx8820.4031.20

Top growing indexes

DBTablespaceSchemaTableIndexIndexTable
SizeGrowthInsUpdDel
openbravopg_defaultpublicad_process_runad_process_run_ad_prequest_id880 kB24 kB1951953160
openbravopg_defaultpg_catalogpg_statistic(TOAST)pg_toast_2619_index112 kB16 kB17931800
openbravopg_defaultpublicad_process_runad_process_run_status320 kB8192 bytes1751753160
openbravopg_defaultprofilesample_statementsix_sample_stmts_qid1208 kB8192 bytes753828

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 bytes1551553160

User function statistics

Top functions by total time

DBSchemaFunctionExecutionsTime (s)
TotalSelfMeanMean self
openbravopublicm_get_cost139517272205.5975.570.0000.000
openbravopublicm_get_cost139517272130.02193.720.0000.000
openbravopublicm_get_no_trx_product_cost139517271362.7169.100.0000.000
openbravopublicm_get_no_trx_product_cost139517271293.61982.250.0000.000
openbravopublicm_get_product_cost13951727371.82371.820.0000.000
openbravopublicad_get_org_le_bu13749468311.44311.440.0000.000
openbravopublictrunc20380874195.82195.820.0000.000
openbravopublicto_date13961849109.63109.630.0000.000
openbravopublicc_currency_convert_precision1395172792.3092.300.0000.000
openbravoprofiletake_sample2337.850.021.6450.001
openbravoprofiletake_sample_subset2337.820.091.6440.004
openbravoprofiletake_sample2337.742.531.6410.110
openbravopublicsubstract_days2859359836.9636.960.0000.000
openbravoprofiledblink62122.9122.910.0370.037
openbravopublicad_column_identifier2191415.9315.740.0010.001
openbravopublicad_column_identifier_std2050215.420.760.0010.000
openbravoprofilecollect_obj_stats2315.044.400.6540.191
openbravopublicm_get_stock_param243514.5714.280.0060.006
openbravoprofilecollect_pg_stat_statements_stats2310.920.520.4750.023
openbravopublicretstk_product_stock_json25510.227.770.0400.030

Top functions by executions

DBSchemaFunctionExecutionsTime (s)
TotalSelfMeanMean self
openbravopublicsubstract_days2859359836.9636.960.0000.000
openbravopublictrunc20380874195.82195.820.0000.000
openbravopublicto_date13961849109.63109.630.0000.000
openbravopublicc_currency_convert_precision1395172792.3092.300.0000.000
openbravopublicm_get_cost139517272205.5975.570.0000.000
openbravopublicm_get_cost139517272130.02193.720.0000.000
openbravopublicm_get_no_trx_product_cost139517271362.7169.100.0000.000
openbravopublicm_get_no_trx_product_cost139517271293.61982.250.0000.000
openbravopublicm_get_product_cost13951727371.82371.820.0000.000
openbravopublicad_get_org_le_bu13749468311.44311.440.0000.000
openbravopublictrunc17221846.346.340.0000.000
openbravopublicto_char2500530.730.730.0000.000
openbravopublicad_istriggerenabled1769881.721.720.0000.000
openbravopublicto_number845020.730.730.0000.000
openbravopublicad_isorgincluded482951.071.070.0000.000
openbravopublicuuid_generate_v4300990.190.190.0000.000
openbravopublicad_column_identifier2191415.9315.740.0010.001
openbravopublicad_column_identifier_std2050215.420.760.0010.000
openbravopublicto_char152840.050.050.0000.000
openbravopublicobequals148480.140.140.0000.000

Top trigger functions by total time

DBSchemaFunctionExecutionsTime (s)
TotalSelfMeanMean self
openbravopublicc_orderline2_trg78241.231.130.0000.000
openbravopublicfash_orderline_check_status78240.800.750.0000.000
openbravopublicc_ordline_chk_restrictions_trg78240.660.620.0000.000
openbravopublicc_bpartner_trg5690.600.580.0010.001
openbravopublicaprm_fin_pmt_check_trg57230.500.400.0000.000
openbravopublicm_transaction_trg26220.490.350.0000.000
openbravopublicc_orderline_trg278240.490.410.0000.000
openbravopublicfash_copy_c_orderline78240.430.190.0000.000
openbravopublicintr_m_inoutline_trg22330.400.140.0000.000
openbravopublicaprm_fin_pmt_detail_check_trg28160.400.350.0000.000
openbravopublicfash_update_fshordline_trg78240.400.340.0000.000
openbravopublicphieco_orderline_trg78240.380.340.0000.000
openbravopublicc_orderline_trg78240.380.320.0000.000
openbravopublicintr_c_orderline_trg78240.340.290.0000.000
openbravopublicaprm_fin_finacc_tran_check_trg28380.310.270.0000.000
openbravopublicc_bpartner_location_trg9990.290.150.0000.000
openbravopublicm_inoutline_trg20160.260.160.0000.000
openbravopublicc_order_chk_restrinctions_trg20130.220.160.0000.000
openbravopublicobcfr_obpos_applications_trg30070.180.130.0000.000
openbravopublicfin_financial_account_trg212760.160.140.0000.000

Vacuum-related statistics

Top tables by vacuum operations

DBTablespaceSchemaTableVacuum countAutovacuum countInsUpdDelUpd(HOT)
openbravopg_defaultpublicc_import_entry83135301353013530
openbravopg_defaultpublicobpos_applications4533723208
openbravopg_defaultprofilelast_stat_tables353923842373923870
openbravopg_defaultprofilelast_stat_indexes35672981616672983
openbravopg_defaultprofilelast_stat_user_functions359039988903949
openbravopg_defaultpublicad_pinstance113362986
openbravopg_defaultpublicad_process_run1132142143160
openbravopg_defaultpublicm_stock_proposed113213110300
openbravopg_defaultpublicobmobc_logclient11375903415015
openbravopg_defaultpublicad_sequence742624103
openbravopg_defaultpublicc_import_entry_archive12591025923
openbravopg_defaultpublicad_ep_instance_para2114114
openbravopg_defaultpublicad_session1163377486262
openbravopg_defaultprofilelast_stat_database29292
openbravopg_defaultpg_catalogpg_statistic11500214535
openbravopg_defaultpublicad_alert1721006
openbravopg_defaultprofilesamples1911
openbravopg_defaultprofilesample_stat_cluster11112
openbravopg_defaultprofilesample_stat_archiver156
openbravopg_defaultprofilelast_stat_tablespaces14646

Top tables by analyze operations

DBTablespaceSchemaTableAnalyze countAutoanalyze countInsUpdDelUpd(HOT)
openbravopg_defaultpublicc_import_entry143135301353013530
openbravopg_defaultprofilelast_stat_tables46233923842373923870
openbravopg_defaultprofilelast_stat_indexes4623672981616672983
openbravopg_defaultprofilelast_stat_user_functions46239039988903949
openbravopg_defaultpublicobpos_applications5533723208
openbravopg_defaultpublicad_sequence3542624103
openbravopg_defaultprofilelast_stat_tablespaces234646
openbravopg_defaultpublicfin_financial_account1515301519
openbravopg_defaultpublicad_process_request7271270
openbravopg_defaultpublicad_ep_instance_para4114114
openbravopg_defaultpublicad_session1263377486262
openbravopg_defaultprofilelast_stat_database39292
openbravopg_defaultprofilesample_stat_indexes311511238
openbravopg_defaultprofilesample_statements310171150
openbravopg_defaultprofilesample_stat_user_functions3520551
openbravopg_defaultpublicad_pinstance11362986
openbravopg_defaultpublicad_process_run112142143160
openbravopg_defaultpublicc_import_entry_archive11591025923
openbravopg_defaultpublicm_stock_proposed11213110300
openbravopg_defaultpublicobmobc_logclient1175903415015

Top indexes by estimated vacuum load

DBTablespaceSchemaTableIndex~Vacuum bytesVacuum cntAutovacuum cntIX sizeRelsize
openbravopg_defaultpublicobmobc_logclientobmobc_logclient_context1521 MB113109 MB463 MB
openbravopg_defaultpublicobmobc_logclientobmobc_logclient_pk1195 MB11385 MB463 MB
openbravopg_defaultpublicobmobc_logclientobmobc_logclient_timestamp925 MB11366 MB463 MB
openbravopg_defaultpublicobmobc_logclientobmobc_logclient_cache808 MB11358 MB463 MB
openbravopg_defaultpublicobmobc_logclientobmobc_logclient_term_date646 MB11346 MB463 MB
openbravopg_defaultpublicm_stock_proposedm_stock_proposed_key47 MB1133472 kB12 MB
openbravopg_defaultpublicm_stock_proposedm_stock_proposed_pinstance_id47 MB1133472 kB12 MB
openbravopg_defaultpublicm_stock_proposedm_stock_proposed_storage_det47 MB1133440 kB12 MB
openbravopg_defaultpublicc_import_entry_archivec_import_ea_key38 MB1213 MB95 MB
openbravopg_defaultpublicc_import_entryc_import_entry_key20 MB83235 kB1792 kB
openbravopg_defaultpublicc_import_entry_archiveem_obpos_app_import_ea_fk19 MB126400 kB95 MB
openbravopg_defaultpublicc_import_entryc_import_entry_type_status_idx18 MB83213 kB1792 kB
openbravopg_defaultprofilelast_stat_indexespk_last_stat_indexes17 MB35504 kB1936 kB
openbravopg_defaultpublicad_process_runad_process_run_key17 MB1131208 kB3720 kB
openbravopg_defaultpublicc_import_entryc_import_entry_idx12 MB83147 kB1792 kB
openbravopg_defaultpublicc_import_entryem_obpos_application_fk12 MB83147 kB1792 kB
openbravopg_defaultpublicad_process_runad_process_run_ad_prequest_id12 MB113880 kB3720 kB
openbravopg_defaultpublicc_import_entry_archive(TOAST)pg_toast_53118_index11 MB111 MB947 MB
openbravopg_defaultprofilelast_stat_tablespk_last_stat_tables10 MB35304 kB1486 kB
openbravopg_defaultpublicc_import_entry_archivec_import_entry_archive_idx9816 kB123272 kB95 MB

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_tables311045030132026-07-17 23:00:56.394842+029816 kB
openbravopg_catalogpg_attribute35057124032026-07-15 03:13:28.384746+025296 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_attribute350571240249862026-07-15 03:13:28.612937+025296 kB
openbravoprofilesample_stat_tables311045030248662026-07-18 20:00:38.274992+029816 kB
openbravopublicm_product_trl14061010802026-06-25 01:01:29.881601+025408 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-15 03:00:05.218477+02
pg_postmaster_start_time2026-07-15 03:00:05.809034+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