Postgres profile report (StartID: 570, EndID: 593)

pg_profile version 0.3.6

Server name: local

Report interval: 2026-07-17 04:00:01+02 - 2026-07-18 03:00:02+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
etendo2090472799.66509247148984670338097002252642676734563238094329632863 MB5992 kB
postgres1186799.8411627032421985219365428201286617726359 kB-72 kB
Total2209142799.66510409149687912340082221256296956754683246754347352869 MB5920 kB

Statement statistics by database

DatabaseCallsTime (s)Fetched (blk)Dirtied (blk)Temp (blk)Local (blk)Statements
ExecReadWriteTrgSharedLocalSharedLocalReadWriteReadWrite
etendo6091687641.1242.9684638325740948292086902420243515416
postgres561912.67127322230349
template163448.9247817229278
Total6103650662.7142.9684813464740948292091492420243516043

Cluster statistics

MetricValue
Scheduled checkpoints275
Requested checkpoints1
Checkpoint write time (s)9682.48
Checkpoint sync time (s)2.46
Checkpoints buffers written121941
Background buffers written
Backend buffers written143146
Backend fsync count
Bgwriter interrupts (too many buffers)
Number of buffers allocated504551
WAL generated3742 MB
WAL segments archived
WAL segments archive failed

Tablespace statistics

TablespacePathSizeGrowth
pg_default2883 MB5920 kB
pg_global542 kB

SQL query statistics

Top SQL by execution time

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

adb1c31f79

[948be82f]

etendo141.5921.36141587.437141587.437141587.4371

73e3636bec

[f410d7e7]

etendo74.0411.172881690.2570.1329.6230.091288169

4108c96b3f

[ca2988bd]

etendo62.439.42653867.128141.6281132.650103.69772

2b98e8b0ee

[3e7c63ef]

etendo34.955.271008400.3470.0075.0790.175100840

228d74fbf5

[cd9c0fd2]

etendo33.355.031349933352.27933352.27933352.2791

0c133f89fa

[47df1ade]

etendo16.862.5423732.985671.4501013.95777.12323

b9bb8a4422

[eb812a48]

etendo16.852.54732.773671.2671013.76177.12923

43ccd38b48

[359b313d]

etendo14.642.21570116.65410.48631.3572.670879

2cbac7b1a6

[f56befd3]

etendo13.302.01505170.2630.0072.1050.14050517

1d911b5cd9

[1c4d8fed]

etendo11.581.7528744.0301.77312.6231.4282874

44dc303aa7

[5048ce93]

etendo11.231.6988391.0850.9857.1660.24110353

e384d56110

[859f236f]

etendo9.661.46857415.94112.72541.7532.479606

32bad3f686

[acf905dd]

etendo8.901.34380880.2340.0062.6790.12938088

671fe12038

[66c83919]

etendo8.481.2819035568481.8278481.8278481.8271

c9e2eb425b

[de5cc8a]

etendo7.011.0618522840.0020.0021.8640.0022836414

75cdc9279a

[c0534667]

etendo6.470.9851293.7181285.2961307.2278.6395

503324b603

[d34207c3]

etendo6.230.942535520.0220.0052.0060.012289222

9166c19b70

[2d9f0a32]

etendo5.230.79126000.4150.1092.8840.14212600

0b651ca53d

[7318d810]

etendo5.210.796744695206.9805206.9805206.9801

847a368de1

[c1b80c7a]

etendo5.140.77252200.2040.0071.2000.11425220

Top SQL by executions

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

c9e2eb425b

[de5cc8a]

etendo283641446.4718522840.0020.0021.8640.0027.0

9625146448

[b7edb1a4]

etendo2895304.742895300.0100.0071.1880.0052.9

0c13a0abe2

[4ed26d58]

etendo2892684.74312100.0110.0060.5430.0053.1

503324b603

[d34207c3]

etendo2892224.742535520.0220.0052.0060.0126.2

73e3636bec

[f410d7e7]

etendo2881694.722881690.2570.1329.6230.09174.0

9ea37f4950

[39cec726]

etendo2564074.202564070.0090.0071.2130.0052.4

df99961951

[9cb9259b]

etendo1628862.671628860.0180.0121.6170.0082.9

1b3d7b3f6d

[a00bdbff]

etendo1460582.390.0070.0040.7480.0041.0

8c36a5bf11

[f560cf4b]

etendo1009181.651009180.0050.0020.6350.0050.5

891e82e5c1

[5a0bb3c]

etendo1009021.651009020.0030.0020.3060.0020.3

2b98e8b0ee

[3e7c63ef]

etendo1008401.651008400.3470.0075.0790.17535.0

5c208ba241

[381eb299]

etendo536220.88536220.0140.0102.0290.0100.8

e7485b12e8

[6b33f9cf]

etendo506100.83506100.0050.0030.6570.0050.2

2cbac7b1a6

[f56befd3]

etendo505170.83505170.2630.0072.1050.14013.3

fa1b74d06f

[c1b84187]

etendo493120.813593750.0410.0141.9520.0412.0

ebd66f2e50

[2f2197e3]

etendo471680.77294140.0140.0060.3230.0090.6

ffadc5ac47

[25ee072c]

etendo385460.63385390.0200.0080.1850.0080.8

5e81d39fe4

[7890bc51]

etendo381490.63381490.0050.0020.3870.0050.2

32bad3f686

[acf905dd]

etendo380880.62380880.2340.0062.6790.1298.9

d7389ab8e1

[af192082]

etendo284230.47284230.0020.0020.0300.0010.1

Top SQL by shared blocks fetched

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

4108c96b3f

[ca2988bd]

etendo1478389017.43100.0062.465372

73e3636bec

[f410d7e7]

etendo955733811.2799.9774.0288169288169

0c133f89fa

[47df1ade]

etendo50172855.9299.9816.92323

b9bb8a4422

[eb812a48]

etendo50171475.9299.9816.923

44dc303aa7

[5048ce93]

etendo34722814.09100.0011.2883910353

e384d56110

[859f236f]

etendo32858323.87100.009.78574606

adb1c31f79

[948be82f]

etendo30430123.5984.23141.61

c9e2eb425b

[de5cc8a]

etendo28364143.34100.007.018522842836414

75cdc9279a

[c0534667]

etendo24625512.90100.006.555

58d3d7b94c

[303fdc1e]

etendo24020892.83100.001.3251023

3a735c6f6a

[e9eb49bd]

etendo22416282.64100.003.428195

29e9be51ce

[b8952a6a]

etendo20590252.43100.003.2106501775

43ccd38b48

[359b313d]

etendo18071722.13100.0014.65701879

785a907bc3

[92946197]

etendo16378761.9399.974.787023

5fa24dc926

[22217272]

etendo16181191.91100.002.15103723

c2b6cfc2bf

[ad3afc69]

etendo14947891.76100.004.710704962941

9c83facac5

[411377d4]

etendo9785491.15100.002.9103538167

9625146448

[b7edb1a4]

etendo9078961.07100.002.9289530289530

0c13a0abe2

[4ed26d58]

etendo9064921.07100.003.131210289268

7c49e0fca3

[37eecc4]

etendo8340480.98100.004.82554

Top SQL by shared blocks read

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

adb1c31f79

[948be82f]

etendo48002994.0484.23141.61

f8cc1c12b0

[4f2bfd2e]

etendo32380.6399.361.62110

73e3636bec

[f410d7e7]

etendo24770.4999.9774.0288169288169

9cbca4d83c

[b7b6a128]

etendo19150.3888.580.218221822

50b8978166

[b54ea3e2]

etendo16200.3297.590.410

1e43f28979

[c3f6c9c8]

etendo13160.2691.280.41010

12a81791af

[7eea2aca]

etendo11880.2390.580.013221322

0c247acdf0

[948be82f]

template19710.1997.612.71

2e0b729b87

[948be82f]

postgres9480.1997.652.71

0c133f89fa

[47df1ade]

etendo9320.1899.9816.92323

b9bb8a4422

[eb812a48]

etendo9320.1899.9816.923

b8b9950890

[532de794]

etendo7740.1598.900.925242524

de891c1f5b

[a3acbb25]

etendo5790.1188.040.04

93accebb93

[bdc0f458]

etendo5570.1198.630.129972

6951a2f5d4

[43f0ca83]

etendo5280.1086.270.0205205

cbb0d2e65e

[4ec9dd54]

etendo5050.1092.660.188

785a907bc3

[92946197]

etendo4970.1099.974.787023

ebf986aa9f

[95980309]

etendo3880.0899.600.125011

9425961593

[7e6ec72b]

etendo3030.0699.650.42810221302

0c9140d9a9

[cccacad4]

etendo2880.0688.530.0274274

Top SQL by shared blocks dirtied

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

73e3636bec

[f410d7e7]

etendo7283834.8399.9774.0288169288169

adb1c31f79

[948be82f]

etendo6258529.9284.23141.61

0c133f89fa

[47df1ade]

etendo158887.6099.9816.92323

b9bb8a4422

[eb812a48]

etendo158887.6099.9816.923

fdd1193fad

[3b0e4e8a]

etendo41992.0199.963.65411946

b8b9950890

[532de794]

etendo34561.6598.900.925242524

d0b36135c7

[a0544a5f]

etendo32061.5399.973.73289046

9cbca4d83c

[b7b6a128]

etendo20770.9988.580.218221822

140f3eb685

[59d1e156]

etendo18360.8899.550.92323

c525c04235

[d2f1c69a]

etendo15610.7599.330.1307307

1e43f28979

[c3f6c9c8]

etendo14090.6791.280.41010

9b16673e73

[423e83ff]

etendo12840.6198.920.11

f68dd8a1a9

[d422fd3a]

etendo9810.47100.000.642

4813705ddb

[6f2d0383]

etendo8150.3999.990.313381338

174962df65

[f75cc0f0]

etendo6720.3296.740.1297297

6a18f0bfd3

[b26b8c5c]

etendo6550.3198.680.1761761

cbb0d2e65e

[4ec9dd54]

etendo5380.2692.660.188

167f11efcd

[76ede534]

etendo4960.2499.550.11

bda4372001

[a3318de1]

etendo4320.2199.880.1253917

65758f3c61

[2616291e]

etendo3950.1999.990.3574432

Top SQL by shared blocks written

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

adb1c31f79

[948be82f]

etendo5844222.0540.8384.23141.61

0c247acdf0

[948be82f]

template1550.020.0497.612.71

2e0b729b87

[948be82f]

postgres550.020.0497.652.71

Top SQL by temp usage

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

8c36a5bf11

[f560cf4b]

etendo10341499.1983534.290.5100918100918

e7485b12e8

[6b33f9cf]

etendo5186499.1942117.290.25061050610

5e81d39fe4

[7890bc51]

etendo3909199.1931713.020.23814938149

1624b38914

[25022289]

etendo2611499.182138.750.12548425484

c1deedb9c8

[c6131ffe]

etendo2583599.182118.670.12521125211

b039ad7443

[3f5ba964]

etendo1292599.171074.390.11261312613

0b66826a19

[6f637536]

etendo1291299.171074.390.11260012600

b561df93c5

[a08400ce]

etendo1301399.181074.390.11270112701

cb01d0ae5c

[3dd6e0f1]

etendo1291299.191044.270.11260012600

da21d1cd03

[9e227079]

etendo24098.3340.160.0237237

9824754258

[ea37d44a]

etendo27898.5640.160.0275275

fadc79e0e0

[55ff48e0]

etendo2796.3010.040.02727

d20baf16f4

[bd689f61]

etendo4197.5610.040.04141

18a7378ff7

[c7fedf86]

etendo2896.4310.040.02828

c42a2e4205

[ca0829e7]

etendo2395.6510.040.02323

a4410aa255

[d2721eaa]

etendo2495.8310.040.02424

Complete list of SQL texts

QueryIDQuery Text
7c49e0fca3select 1 as id from dual where exists ( select 1 from ( SELECT a.DateAcct as dateacct FROM M_InOut a WHERE a.ad_client_id = $1 AND a.ad_org_id in ('0', '1000003', 'E5C644C994CA4E6DB384AF0325704F1E', '1000002') AND a.posted = 'N' AND a.processed = 'Y' AND (a.processing = 'N' OR a.processing IS NULL) AND EXISTS ( SELECT 1 FROM c_period p WHERE a.DateAcct >= p.StartDate AND a.DateAcct < p.EndDate + 1 AND EXISTS ( SELECT 1 FROM c_periodcontrol pc WHERE pc.c_period_id = p.c_period_id AND ad_org_getperiodcontrolallow(a.ad_org_id) = pc.ad_org_id AND pc.docbasetype = $2 AND pc.periodstatus = 'O' ) )) b where 1=1 )
891e82e5c1SELECT $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
c9e2eb425bSELECT LEVELNO FROM AD_ORG_TREE WHERE AD_ORG_ID = p_orgid AND AD_PARENT_ORG_ID = p_parentorgid AND AD_CLIENT_ID = p_clientid
1d911b5cd9select adsystem0_.AD_System_ID as AD_Syste1_115_0_, adsystem0_.AD_Client_ID as AD_Clien2_115_0_, adsystem0_.AD_Org_ID as AD_Org_I3_115_0_, adsystem0_.IsActive as IsActive4_115_0_, adsystem0_.Created as Created5_115_0_, adsystem0_.CreatedBy as CreatedB6_115_0_, adsystem0_.Updated as Updated7_115_0_, adsystem0_.UpdatedBy as UpdatedB8_115_0_, adsystem0_.Name as Name9_115_0_, adsystem0_.Info as Info10_115_0_, adsystem0_.Version as Version11_115_0_, adsystem0_.ReleaseNo as Release12_115_0_, adsystem0_.TAD_Recordrange as TAD_Rec13_115_0_, adsystem0_.TAD_Recordrange_Info as TAD_Rec14_115_0_, adsystem0_.TAD_Transactionalrange as TAD_Tra15_115_0_, adsystem0_.TAD_Theme as TAD_The16_115_0_, adsystem0_.Instance_Key as Instanc17_115_0_, adsystem0_.Activation_Key as Activat18_115_0_ from AD_System adsystem0_ where adsystem0_.AD_System_ID=$1
5fa24dc926SELECT st.*,stio.idx_blks_read,stio.idx_blks_hit,CASE l.relation WHEN st.indexrelid THEN $1 ELSE pg_relation_size(st.indexrelid) END relsize,$2,pg_class.reltablespace as tablespaceid,(ix.indisunique OR con.conindid IS NOT NULL) AS indisunique,pg_class.relpages::bigint * current_setting($3)::bigint AS relpages_bytes,$4 AS relpages_bytes_diff FROM pg_catalog.pg_stat_all_indexes st JOIN pg_catalog.pg_statio_all_indexes stio USING (relid, indexrelid, schemaname, relname, indexrelname) JOIN pg_catalog.pg_index ix ON (ix.indexrelid = st.indexrelid) JOIN pg_catalog.pg_class ON (pg_class.oid = st.indexrelid) LEFT OUTER JOIN pg_catalog.pg_constraint con ON (con.conindid = ix.indexrelid AND con.contype in ($5,$6)) LEFT OUTER JOIN LATERAL (SELECT relation FROM pg_catalog.pg_locks WHERE (relation = st.indexrelid AND granted AND locktype = $7 AND mode=$8)) l ON (l.relation = st.indexrelid)
1624b38914insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4)
ffadc5ac47SELECT coalesce(t.MSGTEXT, m.MSGTEXT) AS MSGTEXT FROM AD_MESSAGE m left join AD_MESSAGE_TRL t on m.AD_MESSAGE_ID = t.AD_MESSAGE_ID and t.AD_LANGUAGE = $1 WHERE m.VALUE=$2
65758f3c61INSERT INTO last_stat_user_functions( server_id, sample_id, datid, funcid, schemaname, funcname, funcargs, calls, total_time, self_time, trg_fn ) SELECT sserver_id, s_id, qres.datid, funcid, schemaname, funcname, funcargs, dbl.calls AS calls, dbl.total_time AS total_time, dbl.self_time AS self_time, dbl.trg_fn FROM dblink($18, t_query) AS dbl ( funcid oid, schemaname name, funcname name, funcargs text, calls bigint, total_time double precision, self_time double precision, trg_fn boolean )
9166c19b70delete from ad_context_info
ebd66f2e50select financialm0_.C_Settlement_Generate_ID as C_Settl11_218_1_, financialm0_.C_Debt_Payment_ID as C_Debt_P1_218_1_, financialm0_.C_Debt_Payment_ID as C_Debt_P1_218_0_, financialm0_.AD_Client_ID as AD_Clien2_218_0_, financialm0_.AD_Org_ID as AD_Org_I3_218_0_, financialm0_.IsActive as IsActive4_218_0_, financialm0_.Created as Created5_218_0_, financialm0_.CreatedBy as CreatedB6_218_0_, financialm0_.Updated as Updated7_218_0_, financialm0_.UpdatedBy as UpdatedB8_218_0_, financialm0_.IsReceipt as IsReceip9_218_0_, financialm0_.C_Settlement_Cancel_ID as C_Settl10_218_0_, financialm0_.C_Settlement_Generate_ID as C_Settl11_218_0_, financialm0_.Description as Descrip12_218_0_, financialm0_.C_Invoice_ID as C_Invoi13_218_0_, financialm0_.C_BPartner_ID as C_BPart14_218_0_, financialm0_.C_Currency_ID as C_Curre15_218_0_, financialm0_.C_CashLine_ID as C_CashL16_218_0_, financialm0_.C_BankAccount_ID as C_BankA17_218_0_, financialm0_.C_CashBook_ID as C_CashB18_218_0_, financialm0_.PaymentRule as Payment19_218_0_, financialm0_.IsPaid as IsPaid20_218_0_, financialm0_.Amount as Amount21_218_0_, financialm0_.WriteOffAmt as WriteOf22_218_0_, financialm0_.Dateplanned as Datepla23_218_0_, financialm0_.IsManual as IsManua24_218_0_, financialm0_.IsValid as IsValid25_218_0_, financialm0_.C_BankStatementLine_ID as C_BankS26_218_0_, financialm0_.Changesettlementcancel as Changes27_218_0_, financialm0_.Cancel_Processed as Cancel_28_218_0_, financialm0_.Generate_Processed as Generat29_218_0_, financialm0_.GLItemAmt as GLItemA30_218_0_, financialm0_.Isdirectposting as Isdirec31_218_0_, financialm0_.C_Glitem_ID as C_Glite32_218_0_, financialm0_.C_Order_ID as C_Order33_218_0_, financialm0_.C_Project_ID as C_Proje34_218_0_, financialm0_.IsAutomaticGenerated as IsAutom35_218_0_, financialm0_.Status as Status36_218_0_, financialm0_.Status_Initial as Status_37_218_0_, financialm0_.C_Withholding_ID as C_Withh38_218_0_, financialm0_.Withholdingamount as Withhol39_218_0_ from C_Debt_Payment financialm0_ where financialm0_.C_Settlement_Generate_ID=$1
58d3d7b94cUPDATE last_stat_tables ulst SET in_sample = $5 FROM ( SELECT cur.server_id AS server_id, cur.sample_id AS sample_id, cur.datid AS datid, cur.relid AS relid, tcur.relid AS toastrelid, -- Seq. scanned blocks rank row_number() OVER (ORDER BY (cur.seq_scan - COALESCE(lst.seq_scan,$6)) * cur.relsize + (tcur.seq_scan - COALESCE(tlst.seq_scan,$7)) * tcur.relsize DESC) scan_rank, row_number() OVER (ORDER BY cur.n_tup_ins + cur.n_tup_upd + cur.n_tup_del - COALESCE(lst.n_tup_ins + lst.n_tup_upd + lst.n_tup_del, $8) + COALESCE(tcur.n_tup_ins + tcur.n_tup_upd + tcur.n_tup_del, $9) - COALESCE(tlst.n_tup_ins + tlst.n_tup_upd + tlst.n_tup_del, $10) DESC) dml_rank, row_number() OVER (ORDER BY cur.n_tup_upd+cur.n_tup_del - COALESCE(lst.n_tup_upd + lst.n_tup_del, $11) + COALESCE(tcur.n_tup_upd + tcur.n_tup_del, $12) - COALESCE(tlst.n_tup_upd + tlst.n_tup_del, $13) DESC) vacuum_dml_rank, row_number() OVER (ORDER BY cur.n_dead_tup / NULLIF(cur.n_live_tup+cur.n_dead_tup, $14) DESC NULLS LAST) dead_pct_rank, row_number() OVER (ORDER BY cur.n_mod_since_analyze / NULLIF(cur.n_live_tup, $15) DESC NULLS LAST) mod_pct_rank, -- Read rank row_number() OVER (ORDER BY cur.heap_blks_read - COALESCE(lst.heap_blks_read,$16) + cur.idx_blks_read - COALESCE(lst.idx_blks_read,$17) + cur.toast_blks_read - COALESCE(lst.toast_blks_read,$18) + cur.tidx_blks_read - COALESCE(lst.tidx_blks_read,$19) DESC) read_rank, -- Page processing rank row_number() OVER (ORDER BY cur.heap_blks_read+cur.heap_blks_hit+cur.idx_blks_read+cur.idx_blks_hit+ cur.toast_blks_read+cur.toast_blks_hit+cur.tidx_blks_read+cur.tidx_blks_hit- COALESCE(lst.heap_blks_read+lst.heap_blks_hit+lst.idx_blks_read+lst.idx_blks_hit+ lst.toast_blks_read+lst.toast_blks_hit+lst.tidx_blks_read+lst.tidx_blks_hit, $20) DESC) gets_rank, -- Vacuum rank row_number() OVER (ORDER BY cur.vacuum_count - COALESCE(lst.vacuum_count, $21) + cur.autovacuum_count - COALESCE(lst.autovacuum_count, $22) DESC) vacuum_rank, row_number() OVER (ORDER BY cur.analyze_count - COALESCE(lst.analyze_count,$23) + cur.autoanalyze_count - COALESCE(lst.autoanalyze_count,$24) DESC) analyze_rank FROM -- main relations diff last_stat_tables cur JOIN last_stat_database dbcur USING (server_id, sample_id, datid) LEFT OUTER JOIN last_stat_database dblst ON (dblst.server_id, dblst.datid, dblst.sample_id, dblst.stats_reset) = (dbcur.server_id, dbcur.datid, dbcur.sample_id - $25, dbcur.stats_reset) LEFT OUTER JOIN last_stat_tables lst ON (lst.server_id, lst.sample_id, lst.datid, lst.relid) = (dblst.server_id, dblst.sample_id, dblst.datid, cur.relid) -- toast relations diff LEFT OUTER JOIN last_stat_tables tcur ON (tcur.server_id, tcur.sample_id, tcur.datid, tcur.relid) = (dbcur.server_id, dbcur.sample_id, dbcur.datid, cur.reltoastrelid) LEFT OUTER JOIN last_stat_tables tlst ON (tlst.server_id, tlst.sample_id, tlst.datid, tlst.relid) = (dblst.server_id, dblst.sample_id, dblst.datid, lst.reltoastrelid) WHERE (cur.server_id, cur.sample_id, cur.in_sample) = (sserver_id, s_id, $26) AND cur.relkind IN ($27,$28)) diff WHERE least( scan_rank, dml_rank, dead_pct_rank, mod_pct_rank, vacuum_dml_rank, read_rank, gets_rank, vacuum_rank, analyze_rank ) <= topn AND (ulst.server_id, ulst.sample_id, ulst.datid, ulst.in_sample) = (diff.server_id, diff.sample_id, diff.datid, $29) AND (ulst.relid = diff.relid OR ulst.relid = diff.toastrelid)
43ccd38b48select advcrm_act0_.Advcrm_Activity_ID as Advcrm_A1_140_, advcrm_act0_.AD_Client_ID as AD_Clien2_140_, advcrm_act0_.AD_Org_ID as AD_Org_I3_140_, advcrm_act0_.Created as Created4_140_, advcrm_act0_.Createdby as Createdb5_140_, advcrm_act0_.Updated as Updated6_140_, advcrm_act0_.Updatedby as Updatedb7_140_, advcrm_act0_.Isactive as Isactive8_140_, advcrm_act0_.Type_Activity as Type_Act9_140_, advcrm_act0_.Name as Name10_140_, advcrm_act0_.Description as Descrip11_140_, advcrm_act0_.Date_Start as Date_St12_140_, advcrm_act0_.Date_End as Date_En13_140_, advcrm_act0_.Status as Status14_140_, advcrm_act0_.C_Location_ID as C_Locat15_140_, advcrm_act0_.AD_User_ID as AD_User16_140_, advcrm_act0_.Duration_Hours as Duratio17_140_, advcrm_act0_.Duration_Minutes as Duratio18_140_, advcrm_act0_.Advcrm_Activity_Parent_ID as Advcrm_19_140_, advcrm_act0_.Email_Reminder_Sent as Email_R20_140_, advcrm_act0_.External_Activity_ID as Externa21_140_, advcrm_act0_.Direction_Call as Directi22_140_, advcrm_act0_.Visibility as Visibil23_140_, advcrm_act0_.Priority as Priorit24_140_, advcrm_act0_.Auxiliary as Auxilia25_140_, advcrm_act0_.Reminder_Time as Reminde26_140_, advcrm_act0_.Email_Reminder_Time as Email_R27_140_, advcrm_act0_.Date_Closed as Date_Cl28_140_, advcrm_act0_.Isallday as Isallda29_140_, advcrm_act0_.Istemplate as Istempl30_140_, advcrm_act0_.EM_Sgpcrm_Securitygroups_ID as EM_Sgpc31_140_, advcrm_act0_.EM_Psat_Activity_Category_ID as EM_Psat32_140_, advcrm_act0_.EM_Psat_Request_Template_ID as EM_Psat33_140_, advcrm_act0_.EM_Advcrm1_Stack_Pl_Act_Li_ID as EM_Advc34_140_, advcrm_act0_.EM_Psat_Request_ID as EM_Psat35_140_, advcrm_act0_.EM_Advcrm1_Newso as EM_Advc36_140_, advcrm_act0_.EM_Psat_Add_Consumption as EM_Psat37_140_, advcrm_act0_.EM_Psat_Lineno as EM_Psat38_140_, advcrm_act0_.em_psat_create_order as em_psat39_140_, advcrm_act0_.EM_Psat_Addmaterials as EM_Psat40_140_, advcrm_act0_.EM_Psat_Checklist_ID as EM_Psat41_140_, advcrm_act0_.EM_Psat_Sign as EM_Psat42_140_, advcrm_act0_.EM_Psat_Namesign as EM_Psat43_140_, advcrm_act0_.EM_Psat_Observations as EM_Psat44_140_, advcrm_act0_.EM_Psat_Activity_Planned_ID as EM_Psat45_140_, advcrm_act0_.EM_Psat_Invoicerule as EM_Psat46_140_, advcrm_act0_.EM_Psat_Activity_Num as EM_Psat47_140_, advcrm_act0_.EM_Psat_Finish_Activity as EM_Psat48_140_, advcrm_act0_.Advcrm_Group_ID as Advcrm_49_140_, advcrm_act0_.EM_Psat_Date_Complete as EM_Psat50_140_, advcrm_act0_.EM_Psat_Complete_User_ID as EM_Psat51_140_ from advcrm_activity advcrm_act0_ where advcrm_act0_.EM_Psat_Request_ID=$1 and (advcrm_act0_.AD_Org_ID in ($2 , $3 , $4 , $5)) and (advcrm_act0_.AD_Client_ID in ($6 , $7)) order by advcrm_act0_.Date_Start desc, advcrm_act0_.Advcrm_Activity_ID desc limit $8
5c208ba241SELECT AD_CLIENT_ID,AD_ORG_ID, ISACTIVE, UPDATED,UPDATEDBY,ALIAS, COMBINATION, DESCRIPTION, ISFULLYQUALIFIED, C_ACCTSCHEMA_ID, ACCOUNT_ID, M_PRODUCT_ID, C_BPARTNER_ID,AD_ORGTRX_ID, C_LOCFROM_ID, C_LOCTO_ID, C_SALESREGION_ID, C_PROJECT_ID, C_CAMPAIGN_ID, C_ACTIVITY_ID, USER1_ID,USER2_ID, '' as UseSuspenseBalancing, '' as SuspenseBalancing_Acct, '' as UseSuspenseError, '' as SuspenseError_Acct, '' as UseCurrencyBalancing, '' as CurrencyBalancing_Acct, '' as RetainedEarning_Acct, '' as IncomeSummary_Acct, '' as InterCompanyDueTo_Acct, '' as InterCompanyDueFrom_Acct FROM C_ValidCombination WHERE C_ValidCombination_ID=$1
9ea37f4950select max(this_.Lastpayment) as y0_ from FIN_Payment_Sched_Inv_V this_ where this_.C_Invoice_ID=$1 and this_.Isactive=$2 limit $3
fdd1193fadINSERT INTO last_stat_indexes( server_id, sample_id, datid, relid, indexrelid, schemaname, relname, indexrelname, idx_scan, idx_tup_read, idx_tup_fetch, idx_blks_read, idx_blks_hit, relsize, relsize_diff, tablespaceid, indisunique, in_sample, relpages_bytes, relpages_bytes_diff ) SELECT sserver_id, s_id, qres.datid, relid, indexrelid, schemaname, relname, indexrelname, dbl.idx_scan AS idx_scan, dbl.idx_tup_read AS idx_tup_read, dbl.idx_tup_fetch AS idx_tup_fetch, dbl.idx_blks_read AS idx_blks_read, dbl.idx_blks_hit AS idx_blks_hit, dbl.relsize AS relsize, dbl.relsize_diff AS relsize_diff, CASE WHEN tablespaceid=$19 THEN qres.tablespaceid ELSE tablespaceid END tablespaceid, indisunique, $20, dbl.relpages_bytes, dbl.relpages_bytes_diff FROM dblink($21, t_query) AS dbl ( relid oid, indexrelid oid, schemaname name, relname name, indexrelname name, idx_scan bigint, idx_tup_read bigint, idx_tup_fetch bigint, idx_blks_read bigint, idx_blks_hit bigint, relsize bigint, relsize_diff bigint, tablespaceid oid, indisunique bool, relpages_bytes bigint, relpages_bytes_diff bigint )
cb01d0ae5cinsert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4)
2b98e8b0eedelete from ad_context_info
b039ad7443insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4)
9c83facac5select this_.Psat_Activity_Materials_ID as Psat_Act1_723_0_, this_.AD_Client_ID as AD_Clien2_723_0_, this_.AD_Org_ID as AD_Org_I3_723_0_, this_.Isactive as Isactive4_723_0_, this_.Created as Created5_723_0_, this_.Createdby as Createdb6_723_0_, this_.Updated as Updated7_723_0_, this_.Updatedby as Updatedb8_723_0_, this_.Advcrm_Activity_ID as Advcrm_A9_723_0_, this_.M_Product_ID as M_Produ10_723_0_, this_.Estimatedqty as Estimat11_723_0_, this_.Invoiceable as Invoice12_723_0_, this_.Generaterequisition as Generat13_723_0_, this_.M_Requisition_ID as M_Requi14_723_0_, this_.C_Orderline_ID as C_Order15_723_0_ from psat_activity_materials this_ where this_.Advcrm_Activity_ID=$1 and this_.Isactive=$2
9b16673e73vacuum analyze AD_Process_Run
6951a2f5d4SELECT CASE WHEN MIN(a.suma) = $2 THEN $3 ELSE ROUND(COALESCE(SUM(ABS(inv.qtyinvoiced)), $4)/MIN(a.suma) * $5, $6) END FROM m_inoutline minline JOIN c_invoiceline inv on minline.m_inoutline_id=inv.m_inoutline_id, (SELECT COALESCE(SUM(ABS(g.movementqty)), $7) AS suma FROM m_inoutline g WHERE g.m_inout_id =p_minoutid ) a WHERE minline.m_inout_id=p_minoutid AND EXISTS (SELECT $8 FROM c_invoice i WHERE i.c_invoice_id = inv.c_invoice_id AND i.processed = $9 AND i.docstatus <> $10 AND i.docstatus <> $11 AND i.docstatus <> $12)
0c133f89faSELECT profile.take_sample()
cbb0d2e65einsert into advcrm_activity (AD_Client_ID, AD_Org_ID, Created, Createdby, Updated, Updatedby, Isactive, Type_Activity, Name, Date_Start, Date_End, Status, AD_User_ID, Duration_Hours, Direction_Call, Visibility, Priority, Isallday, Istemplate, EM_Psat_Activity_Category_ID, EM_Psat_Request_ID, EM_Advcrm1_Newso, EM_Psat_Add_Consumption, EM_Psat_Lineno, em_psat_create_order, EM_Psat_Addmaterials, EM_Psat_Checklist_ID, EM_Psat_Invoicerule, EM_Psat_Finish_Activity, Advcrm_Activity_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)
0c13a0abe2select finpayment0_.C_Invoice_ID as C_Invoic8_373_1_, finpayment0_.Fin_Payment_Schedule_ID as Fin_Paym1_373_1_, finpayment0_.Fin_Payment_Schedule_ID as Fin_Paym1_373_0_, finpayment0_.AD_Client_ID as AD_Clien2_373_0_, finpayment0_.AD_Org_ID as AD_Org_I3_373_0_, finpayment0_.Created as Created4_373_0_, finpayment0_.Createdby as Createdb5_373_0_, finpayment0_.Updated as Updated6_373_0_, finpayment0_.Updatedby as Updatedb7_373_0_, finpayment0_.C_Invoice_ID as C_Invoic8_373_0_, finpayment0_.C_Order_ID as C_Order_9_373_0_, finpayment0_.Duedate as Duedate10_373_0_, finpayment0_.Fin_Paymentmethod_ID as Fin_Pay11_373_0_, finpayment0_.C_Currency_ID as C_Curre12_373_0_, finpayment0_.Amount as Amount13_373_0_, finpayment0_.Paidamt as Paidamt14_373_0_, finpayment0_.Outstandingamt as Outstan15_373_0_, finpayment0_.Isactive as Isactiv16_373_0_, finpayment0_.FIN_Payment_Priority_ID as FIN_Pay17_373_0_, finpayment0_.Update_Payment_Plan as Update_18_373_0_, finpayment0_.OrigDueDate as OrigDue19_373_0_, finpayment0_.Description as Descrip20_373_0_, finpayment0_.EM_Aprm_Modif_Paym_Sched as EM_Aprm21_373_0_, finpayment0_.EM_Aprm_Modif_Paym_Out_Sched as EM_Aprm22_373_0_, finpayment0_.ExpectedDate as Expecte23_373_0_ from FIN_Payment_Schedule finpayment0_ where finpayment0_.C_Invoice_ID=$1
f8cc1c12b0select --REQUEST psat_request.description as reqdesc, psat_request.requestdate, --ACTIVITY coalesce(advcrm_activity.em_psat_activity_num,psat_request.documentno) as documentno, advcrm_activity.type_activity, advcrm_activity.name as actname, advcrm_activity.description as actdesc, advcrm_activity.date_start, advcrm_activity.date_end, advcrm_activity.em_psat_namesign as namesign, advcrm_activity.em_psat_sign as actsign, -- case when chresseconduser.result is not null and chresseconduser.result <> $1 then activityuser.name || $2 || (select pcv."name" from psat_checklist_value pcv where pcv.psat_check_type_id = chresseconduser.psat_check_type_id and pcv.value = chresseconduser.result limit $3 ) else activityuser.name end as usernameact, -- advcrm_activity.em_psat_observations as actobservations, chresmachinetime.result as timemachine, chresworktime.result as worktime, coalesce(chresworkdone.result,chresworkdone.description) as logactivity, coalesce(chresmovementtime.result,$4) as timemovement, coalesce(chreskms.result,$5) as kms, coalesce(chreshrsguard.result,$6) as hoursGuard, --ORG ad_org.ad_org_id, --BPARTNER c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, contactuser.name as contactname, contactuser.email as contactmail, contactuser.phone as contactphone, --ADDRESSREQUEST c_location.address1 as address1, c_location.address2 as address2, c_location.postal as bppostal, c_location.city as bpcity, c_location_description(c_location.c_location_id) || $7|| upper(coalesce(c_country_trl.name, c_country.name)) || $8 AS locationdesc, --PRODUCT m_product.name as prodreqname, coalesce(m_attributesetinstance.description, psat_request.additional_info) as attributedesc, --CONSUMPTION coalesce(psat_related_products.em_cus_specific_id,prodconsum.value) as prodconsumvalue, coalesce(em_cus_specific_name,prodconsum.name) as prodconsumname, coalesce(cus_specific_mats_price.pricelist, psat_activity_consumption.priceactual) as consumpriceprod, coalesce(psat_activity_consumption.qty,$9) as consumitionQty, (select count($10) from advcrm_activity ac left join psat_activity_consumption pac on ac.advcrm_activity_id = pac.advcrm_activity_id where ac.advcrm_activity_id = advcrm_activity.advcrm_activity_id) as totalConsumitions, ROW_NUMBER() OVER (ORDER BY psat_activity_consumption.psat_activity_consumption_id ) as rownumber from advcrm_activity left join psat_request on advcrm_activity.em_psat_request_id = psat_request.psat_request_id left join psat_activity_consumption on advcrm_activity.advcrm_activity_id = psat_activity_consumption.advcrm_activity_id left join psat_related_products on psat_request.m_product_id=psat_related_products.m_product_id and psat_related_products.m_material_id=psat_activity_consumption.m_product_id left join psat_checklist_result chresmachinetime on advcrm_activity.advcrm_activity_id = chresmachinetime.advcrm_activity_id and chresmachinetime.psat_check_type_id= $11 left join psat_checklist_result chresworktime on advcrm_activity.advcrm_activity_id = chresworktime.advcrm_activity_id and chresworktime.psat_check_type_id= $12 left join psat_checklist_result chresmovementtime on advcrm_activity.advcrm_activity_id = chresmovementtime.advcrm_activity_id and chresmovementtime.psat_check_type_id= $13 left join psat_checklist_result chreskms on advcrm_activity.advcrm_activity_id = chreskms.advcrm_activity_id and chreskms.psat_check_type_id= $14 left join psat_checklist_result chreshrsguard on advcrm_activity.advcrm_activity_id = chreshrsguard.advcrm_activity_id and chreshrsguard.psat_check_type_id= $15 left join psat_checklist_result chresworkdone on advcrm_activity.advcrm_activity_id = chresworkdone.advcrm_activity_id and chresworkdone.psat_check_type_id= $16 left join psat_checklist_result chresseconduser on advcrm_activity.advcrm_activity_id = chresseconduser.advcrm_activity_id and chresseconduser.psat_check_type_id= $17 left join c_bpartner on psat_request.c_bpartner_id=c_bpartner.c_bpartner_id left join cus_specific_mats_price on c_bpartner.c_bpartner_id = cus_specific_mats_price.c_bpartner_id left join c_bpartner_location on psat_request.c_bpartner_location_id=c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id=c_location.c_location_id left join c_region on c_location.c_region_id=c_region.c_region_id left join c_country on c_location.c_country_id=c_country.c_country_id left join c_country_trl on c_country.c_country_id=c_country_trl.c_country_id and c_country_trl.ad_language=$18 left join m_product on psat_request.m_product_id=m_product.m_product_id left join m_attributesetinstance on psat_request.m_attributesetinstance_id=m_attributesetinstance.m_attributesetinstance_id left join m_product prodconsum on psat_activity_consumption.m_product_id = prodconsum.m_product_id left join c_doctype on psat_request.c_doctype_id=c_doctype.c_doctype_id left join ad_user activityuser on advcrm_activity.ad_user_id=activityuser.ad_user_id left join ad_user contactuser on coalesce(psat_request.requestor_id,psat_request.affected_contact_id)=contactuser.ad_user_id left join ad_org on psat_request.ad_org_id=ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id=ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id=c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id=c_regionorg.c_region_id where advcrm_activity.advcrm_activity_id in ($19)
44dc303aa7select this_.Psat_Activity_Consumption_ID as Psat_Act1_722_0_, this_.AD_Client_ID as AD_Clien2_722_0_, this_.AD_Org_ID as AD_Org_I3_722_0_, this_.Isactive as Isactive4_722_0_, this_.Created as Created5_722_0_, this_.Createdby as Createdb6_722_0_, this_.Updated as Updated7_722_0_, this_.Updatedby as Updatedb8_722_0_, this_.Advcrm_Activity_ID as Advcrm_A9_722_0_, this_.M_Product_ID as M_Produ10_722_0_, this_.Qty as Qty11_722_0_, this_.Priceactual as Priceac12_722_0_, this_.M_Attributesetinstance_ID as M_Attri13_722_0_, this_.M_Locator_ID as M_Locat14_722_0_, this_.Psat_Activity_Materials_ID as Psat_Ac15_722_0_, this_.Invoiced as Invoice16_722_0_, this_.isProcessed as isProce17_722_0_, this_.Description as Descrip18_722_0_, this_.M_Inoutline_ID as M_Inout19_722_0_ from psat_activity_consumption this_ where this_.Psat_Activity_Materials_ID=$1 and this_.Isactive=$2
b8b9950890INSERT INTO ad_session_usage_audit (ad_session_usage_audit_id, ad_client_id, ad_org_id, createdby, updatedby, ad_session_id, object_id, ad_module_id, command, classname, object_type, process_time) VALUES (get_uuid(),$10,$11,$1,$2,$3,$4,$5,$6,$7,$8,to_number($9))
fadc79e0e0insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4)
140f3eb685SELECT collect_pg_stat_statements_stats(server_properties, sserver_id, s_id, topn)
671fe12038COPY public.ad_audit_trail (ad_audit_trail_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, ad_table_id, record_id, record_revision, ad_user_id, event_time, processtype, process_id, action, ad_column_id, old_char, new_char, old_nchar, new_nchar, old_number, new_number, old_date, new_date, old_text, new_text) TO stdout
e7485b12e8insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4)
4813705ddbupdate C_Invoice set Updated=$1, DaysTillDue=$2, LastCalculatedOnDate=$3 where C_Invoice_ID=$4
0b66826a19insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4)
0b651ca53dCOPY public.fact_acct (fact_acct_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_acctschema_id, account_id, datetrx, dateacct, c_period_id, ad_table_id, record_id, line_id, gl_category_id, c_tax_id, m_locator_id, postingtype, c_currency_id, amtsourcedr, amtsourcecr, amtacctdr, amtacctcr, c_uom_id, qty, m_product_id, c_bpartner_id, ad_orgtrx_id, c_locfrom_id, c_locto_id, c_salesregion_id, c_project_id, c_campaign_id, c_activity_id, user1_id, user2_id, description, a_asset_id, fact_acct_group_id, seqno, factaccttype, docbasetype, acctvalue, acctdescription, record_id2, c_withholding_id, c_doctype_id, c_costcenter_id, ismodify, datebalanced) TO stdout
167f11efcdvacuum analyze prsync_entry
5e81d39fe4insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4)
9425961593select finpayment0_.FIN_Payment_Schedule_Invoice as FIN_Pay10_374_1_, finpayment0_.FIN_Payment_Scheduledetail_ID as FIN_Paym1_374_1_, finpayment0_.FIN_Payment_Scheduledetail_ID as FIN_Paym1_374_0_, finpayment0_.AD_Client_ID as AD_Clien2_374_0_, finpayment0_.AD_Org_ID as AD_Org_I3_374_0_, finpayment0_.Created as Created4_374_0_, finpayment0_.Createdby as Createdb5_374_0_, finpayment0_.Updated as Updated6_374_0_, finpayment0_.Updatedby as Updatedb7_374_0_, finpayment0_.FIN_Payment_Detail_ID as FIN_Paym8_374_0_, finpayment0_.FIN_Payment_Schedule_Order as FIN_Paym9_374_0_, finpayment0_.FIN_Payment_Schedule_Invoice as FIN_Pay10_374_0_, finpayment0_.Amount as Amount11_374_0_, finpayment0_.Isactive as Isactiv12_374_0_, finpayment0_.Writeoffamt as Writeof13_374_0_, finpayment0_.Iscanceled as Iscance14_374_0_, finpayment0_.C_Bpartner_ID as C_Bpart15_374_0_, finpayment0_.C_Activity_ID as C_Activ16_374_0_, finpayment0_.M_Product_ID as M_Produ17_374_0_, finpayment0_.C_Campaign_ID as C_Campa18_374_0_, finpayment0_.C_Project_ID as C_Proje19_374_0_, finpayment0_.C_Salesregion_ID as C_Sales20_374_0_, finpayment0_.C_Costcenter_ID as C_Costc21_374_0_, finpayment0_.User1_ID as User22_374_0_, finpayment0_.User2_ID as User23_374_0_, finpayment0_.DoubtfulDebt_Amount as Doubtfu24_374_0_, finpayment0_.Isinvoicepaid as Isinvoi25_374_0_ from FIN_Payment_ScheduleDetail finpayment0_ where finpayment0_.FIN_Payment_Schedule_Invoice=$1
12a81791afSELECT coalesce(( select ol.qtyordered - coalesce(sum(abs(coalesce(( select sum(il.movementqty) from m_inoutline il left join m_inout i on i.m_inout_id=il.m_inout_id where i.docstatus<>$2 and il.c_orderline_id=ol.c_orderline_id ),$3))), $4) restante from c_orderline ol where ol.c_orderline_id=p_record_id group by ol.c_orderline_id), $5)
e384d56110select product0_.M_Product_ID as M_Produc1_455_, product0_.AD_Client_ID as AD_Clien2_455_, product0_.AD_Org_ID as AD_Org_I3_455_, product0_.IsActive as IsActive4_455_, product0_.Created as Created5_455_, product0_.CreatedBy as CreatedB6_455_, product0_.Updated as Updated7_455_, product0_.UpdatedBy as UpdatedB8_455_, product0_.Value as Value9_455_, product0_.Name as Name10_455_, product0_.Description as Descrip11_455_, product0_.DocumentNote as Documen12_455_, product0_.Help as Help13_455_, product0_.UPC as UPC14_455_, product0_.SKU as SKU15_455_, product0_.C_UOM_ID as C_UOM_I16_455_, product0_.SalesRep_ID as SalesRe17_455_, product0_.IsSummary as IsSumma18_455_, product0_.IsStocked as IsStock19_455_, product0_.IsPurchased as IsPurch20_455_, product0_.IsSold as IsSold21_455_, product0_.IsBOM as IsBOM22_455_, product0_.IsInvoicePrintDetails as IsInvoi23_455_, product0_.IsPickListPrintDetails as IsPickL24_455_, product0_.IsVerified as IsVerif25_455_, product0_.M_Product_Category_ID as M_Produ26_455_, product0_.Classification as Classif27_455_, product0_.Volume as Volume28_455_, product0_.Weight as Weight29_455_, product0_.ShelfWidth as ShelfWi30_455_, product0_.ShelfHeight as ShelfHe31_455_, product0_.ShelfDepth as ShelfDe32_455_, product0_.UnitsPerPallet as UnitsPe33_455_, product0_.C_TaxCategory_ID as C_TaxCa34_455_, product0_.S_Resource_ID as S_Resou35_455_, product0_.Discontinued as Discont36_455_, product0_.DiscontinuedBy as Discont37_455_, product0_.Processing as Process38_455_, product0_.S_ExpenseType_ID as S_Expen39_455_, product0_.ProductType as Product40_455_, product0_.ImageURL as ImageUR41_455_, product0_.DescriptionURL as Descrip42_455_, product0_.GuaranteeDays as Guarant43_455_, product0_.VersionNo as Version44_455_, product0_.M_AttributeSet_ID as M_Attri45_455_, product0_.M_AttributeSetInstance_ID as M_Attri46_455_, product0_.DownloadURL as Downloa47_455_, product0_.M_FreightCategory_ID as M_Freig48_455_, product0_.M_Locator_ID as M_Locat49_455_, product0_.AD_Image_ID as AD_Imag50_455_, product0_.C_BPartner_ID as C_BPart51_455_, product0_.Ispriceprinted as Isprice52_455_, product0_.Name2 as Name53_455_, product0_.Stock_Min as Stock_M54_455_, product0_.Enforce_Attribute as Enforce55_455_, product0_.Calculated as Calcula56_455_, product0_.MA_Processplan_ID as MA_Proc57_455_, product0_.Production as Product58_455_, product0_.Capacity as Capacit59_455_, product0_.Delaymin as Delaymi60_455_, product0_.MRP_Planner_ID as MRP_Pla61_455_, product0_.MRP_Planningmethod_ID as MRP_Pla62_455_, product0_.Qtymax as Qtymax63_455_, product0_.Qtymin as Qtymin64_455_, product0_.Qtystd as Qtystd65_455_, product0_.Qtytype as Qtytype66_455_, product0_.Stockmin as Stockmi67_455_, product0_.EM_Aeat347_Isleasebusiness as EM_Aeat68_455_, product0_.Attrsetvaluetype as Attrset69_455_, product0_.EM_Aeat347_Situation as EM_Aeat70_455_, product0_.Isquantityvariable as Isquant71_455_, product0_.Isdeferredrevenue as Isdefer72_455_, product0_.EM_Aeat347_Referenceid as EM_Aeat73_455_, product0_.EM_Aeat347_Locationtype as EM_Aeat74_455_, product0_.Revplantype as Revplan75_455_, product0_.EM_Aeat347_Streetname as EM_Aeat76_455_, product0_.Periodnumber as Periodn77_455_, product0_.EM_Aeat347_Streetnumbertype as EM_Aeat78_455_, product0_.Isdeferredexpense as Isdefer79_455_, product0_.EM_Aeat347_Streetnumber as EM_Aeat80_455_, product0_.Expplantype as Expplan81_455_, product0_.EM_Aeat347_Streetnumberqua as EM_Aeat82_455_, product0_.Periodnumber_Exp as Periodn83_455_, product0_.DefaultPeriod as Default84_455_, product0_.EM_Aeat347_Building as EM_Aeat85_455_, product0_.DefaultPeriod_Exp as Default86_455_, product0_.EM_Aeat347_Hall as EM_Aeat87_455_, product0_.Bookusingpoprice as Bookusi88_455_, product0_.EM_Aeat347_Hallway as EM_Aeat89_455_, product0_.EM_Advcrm_Newactivity as EM_Advc90_455_, product0_.EM_Aeat347_Floor as EM_Aeat91_455_, product0_.C_Uom_Weight_ID as C_Uom_W92_455_, product0_.M_Brand_ID as M_Brand93_455_, product0_.EM_Aeat347_Apartment as EM_Aeat94_455_, product0_.EM_Aeat347_Complement as EM_Aeat95_455_, product0_.IsGeneric as IsGener96_455_, product0_.EM_Aeat347_Location as EM_Aeat97_455_, product0_.Generic_Product_ID as Generic98_455_, product0_.CreateVariants as CreateV99_455_, product0_.EM_Aeat347_County as EM_Aea100_455_, product0_.Characteristic_Desc as Charac101_455_, product0_.EM_Aeat347_Countycode as EM_Aea102_455_, product0_.EM_Aeat347_Regioncode as EM_Aea103_455_, product0_.Updateinvariants as Update104_455_, product0_.EM_Aeat347_Zipcode as EM_Aea105_455_, product0_.ManageVariants as Manage106_455_, product0_.Prod_Cat_Selection as Prod_C107_455_, product0_.Product_Selection as Produc108_455_, product0_.Print_Description as Print_109_455_, product0_.Returnable as Return110_455_, product0_.Overdue_Return_Days as Overdu111_455_, product0_.Ispricerulebased as Ispric112_455_, product0_.Unique_Per_Document as Unique113_455_, product0_.Relateprodcattoservice as Relate114_455_, product0_.Relateprodtoservice as Relate115_455_, product0_.Islinkedtoproduct as Islink116_455_, product0_.Quantity_Rule as Quanti117_455_, product0_.Allow_Deferred_Sell as Allow_118_455_, product0_.Deferred_Sell_Max_Days as Deferr119_455_, product0_.EM_Prlab_Qtylabels as EM_Prl120_455_, product0_.M_Product_Status_ID as M_Prod121_455_, product0_.EM_Psat_Isrepairable as EM_Psa122_455_, product0_.EM_Psat_Isavailablesat as EM_Psa123_455_, product0_.Ismodifytax as Ismodi124_455_, product0_.Relateprodcattaxtoservice as Relate125_455_, product0_.Copyservicemodifytaxconfig as Copyse126_455_ from M_Product product0_ where (upper((product0_.Value||$3||coalesce(to_char((select producttrl1_.Name from M_Product_Trl producttrl1_ where producttrl1_.M_Product_ID=product0_.M_Product_ID and producttrl1_.AD_Language=$4)), to_char(product0_.Name), $5))) like upper($1) escape $6) and (exists (select $7 from psat_request psat_reque2_ inner join M_Product product3_ on psat_reque2_.M_Product_ID=product3_.M_Product_ID where product3_.M_Product_ID=product0_.M_Product_ID and (psat_reque2_.AD_Org_ID in ($8 , $9 , $10 , $11)) and (psat_reque2_.AD_Client_ID in ($12 , $13)))) order by product0_.Value, product0_.Name limit $2
785a907bc3select invoice0_.C_Invoice_ID as C_Invoic1_249_, invoice0_.AD_Client_ID as AD_Clien2_249_, invoice0_.AD_Org_ID as AD_Org_I3_249_, invoice0_.IsActive as IsActive4_249_, invoice0_.Created as Created5_249_, invoice0_.CreatedBy as CreatedB6_249_, invoice0_.Updated as Updated7_249_, invoice0_.UpdatedBy as UpdatedB8_249_, invoice0_.IsSOTrx as IsSOTrx9_249_, invoice0_.DocumentNo as Documen10_249_, invoice0_.DocStatus as DocStat11_249_, invoice0_.DocAction as DocActi12_249_, invoice0_.Processing as Process13_249_, invoice0_.Processed as Process14_249_, invoice0_.Posted as Posted15_249_, invoice0_.C_DocType_ID as C_DocTy16_249_, invoice0_.C_DocTypeTarget_ID as C_DocTy17_249_, invoice0_.C_Order_ID as C_Order18_249_, invoice0_.Description as Descrip19_249_, invoice0_.IsPrinted as IsPrint20_249_, invoice0_.SalesRep_ID as SalesRe21_249_, invoice0_.DateInvoiced as DateInv22_249_, invoice0_.DatePrinted as DatePri23_249_, invoice0_.DateAcct as DateAcc24_249_, invoice0_.C_BPartner_ID as C_BPart25_249_, invoice0_.C_BPartner_Location_ID as C_BPart26_249_, invoice0_.POReference as PORefer27_249_, invoice0_.IsDiscountPrinted as IsDisco28_249_, invoice0_.DateOrdered as DateOrd29_249_, invoice0_.C_Currency_ID as C_Curre30_249_, invoice0_.C_PaymentTerm_ID as C_Payme31_249_, invoice0_.C_Charge_ID as C_Charg32_249_, invoice0_.ChargeAmt as ChargeA33_249_, invoice0_.TotalLines as TotalLi34_249_, invoice0_.GrandTotal as GrandTo35_249_, invoice0_.M_PriceList_ID as M_Price36_249_, invoice0_.IsTaxIncluded as IsTaxIn37_249_, invoice0_.C_Campaign_ID as C_Campa38_249_, invoice0_.C_Project_ID as C_Proje39_249_, invoice0_.C_Activity_ID as C_Activ40_249_, invoice0_.CreateFrom as CreateF41_249_, invoice0_.GenerateTo as Generat42_249_, invoice0_.AD_User_ID as AD_User43_249_, invoice0_.CopyFrom as CopyFro44_249_, invoice0_.IsSelfService as IsSelfS45_249_, invoice0_.AD_OrgTrx_ID as AD_OrgT46_249_, invoice0_.User1_ID as User47_249_, invoice0_.User2_ID as User48_249_, invoice0_.Withholdingamount as Withhol49_249_, invoice0_.Taxdate as Taxdate50_249_, invoice0_.C_Withholding_ID as C_Withh51_249_, invoice0_.Ispaid as Ispaid52_249_, invoice0_.EM_Einv_Generated as EM_Einv53_249_, invoice0_.Totalpaid as Totalpa54_249_, invoice0_.EM_Einv_Sent as EM_Einv55_249_, invoice0_.OutstandingAmt as Outstan56_249_, invoice0_.DaysTillDue as DaysTil57_249_, invoice0_.DueAmt as DueAmt58_249_, invoice0_.LastCalculatedOnDate as LastCal59_249_, invoice0_.FIN_Paymentmethod_ID as FIN_Pay60_249_, invoice0_.FIN_Payment_Priority_ID as FIN_Pay61_249_, invoice0_.Finalsettlement as Finalse62_249_, invoice0_.Daysoutstanding as Daysout63_249_, invoice0_.Percentageoverdue as Percent64_249_, invoice0_.C_Costcenter_ID as C_Costc65_249_, invoice0_.Calculate_Promotions as Calcula66_249_, invoice0_.A_Asset_ID as A_Asset67_249_, invoice0_.EM_APRM_Addpayment as EM_APRM68_249_, invoice0_.Iscashvat as Iscashv69_249_, invoice0_.EM_APRM_Processinvoice as EM_APRM70_249_, invoice0_.EM_Obcma_C_Poc_Email_ID as EM_Obcm71_249_, invoice0_.Prepaymentamt as Prepaym72_249_, invoice0_.Createfromorders as Createf73_249_, invoice0_.Createfrominouts as Createf74_249_, invoice0_.EM_Advcrm_Newactivity as EM_Advc75_249_, invoice0_.Paidamtatinvoicing as Paidamt76_249_, invoice0_.BPartner_ExtRef as BPartne77_249_, invoice0_.EM_Sgpcrm_Securitygroups_ID as EM_Sgpc78_249_, invoice0_.EM_Prouti_Recalculate_Price as EM_Prou79_249_, invoice0_.EM_Ml_Select_Product as EM_Ml_S80_249_, invoice0_.EM_Prouti_Pricecalculatetdate as EM_Prou81_249_, invoice0_.EM_Prouti_Totalizations as EM_Prou82_249_ from C_Invoice invoice0_ left outer join FIN_Payment_Schedule finpayment1_ on invoice0_.C_Invoice_ID=finpayment1_.C_Invoice_ID where invoice0_.Processed=$7 and (invoice0_.Ispaid=$8 or finpayment1_.Updated>=invoice0_.LastCalculatedOnDate or invoice0_.OutstandingAmt<>$9 or invoice0_.Finalsettlement is null) and (invoice0_.AD_Org_ID in ($1 , $2 , $3 , $4)) and (invoice0_.AD_Client_ID in ($5 , $6)) and invoice0_.IsActive=$10
0c247acdf0VACUUM (FULL, VERBOSE, ANALYZE)
2e0b729b87VACUUM (FULL, VERBOSE, ANALYZE)
adb1c31f79VACUUM (FULL, VERBOSE, ANALYZE)
ebf986aa9fselect fin_paymen0_.FIN_Payment_Scheduledetail_ID as FIN_Paym1_374_, fin_paymen0_.AD_Client_ID as AD_Clien2_374_, fin_paymen0_.AD_Org_ID as AD_Org_I3_374_, fin_paymen0_.Created as Created4_374_, fin_paymen0_.Createdby as Createdb5_374_, fin_paymen0_.Updated as Updated6_374_, fin_paymen0_.Updatedby as Updatedb7_374_, fin_paymen0_.FIN_Payment_Detail_ID as FIN_Paym8_374_, fin_paymen0_.FIN_Payment_Schedule_Order as FIN_Paym9_374_, fin_paymen0_.FIN_Payment_Schedule_Invoice as FIN_Pay10_374_, fin_paymen0_.Amount as Amount11_374_, fin_paymen0_.Isactive as Isactiv12_374_, fin_paymen0_.Writeoffamt as Writeof13_374_, fin_paymen0_.Iscanceled as Iscance14_374_, fin_paymen0_.C_Bpartner_ID as C_Bpart15_374_, fin_paymen0_.C_Activity_ID as C_Activ16_374_, fin_paymen0_.M_Product_ID as M_Produ17_374_, fin_paymen0_.C_Campaign_ID as C_Campa18_374_, fin_paymen0_.C_Project_ID as C_Proje19_374_, fin_paymen0_.C_Salesregion_ID as C_Sales20_374_, fin_paymen0_.C_Costcenter_ID as C_Costc21_374_, fin_paymen0_.User1_ID as User22_374_, fin_paymen0_.User2_ID as User23_374_, fin_paymen0_.DoubtfulDebt_Amount as Doubtfu24_374_, fin_paymen0_.Isinvoicepaid as Isinvoi25_374_ from FIN_Payment_ScheduleDetail fin_paymen0_ left outer join FIN_Payment_Schedule fin_paymen1_ on fin_paymen0_.FIN_Payment_Schedule_Order=fin_paymen1_.Fin_Payment_Schedule_ID left outer join C_Order order2_ on fin_paymen1_.C_Order_ID=order2_.C_Order_ID left outer join C_BPartner businesspa3_ on order2_.C_BPartner_ID=businesspa3_.C_BPartner_ID left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen1_.FIN_Payment_Priority_ID=fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_Payment_Schedule fin_paymen5_ on fin_paymen0_.FIN_Payment_Schedule_Invoice=fin_paymen5_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice6_ on fin_paymen5_.C_Invoice_ID=invoice6_.C_Invoice_ID left outer join C_BPartner businesspa7_ on invoice6_.C_BPartner_ID=businesspa7_.C_BPartner_ID left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen5_.FIN_Payment_Priority_ID=fin_paymen8_.FIN_Payment_Priority_ID where (fin_paymen0_.FIN_Payment_Detail_ID is null) and (fin_paymen0_.AD_Org_ID in ($8)) and (invoice6_.C_Invoice_ID is not null) and fin_paymen5_.Fin_Paymentmethod_ID=$9 and invoice6_.C_Currency_ID=$10 and invoice6_.IsSOTrx=$11 and coalesce(fin_paymen5_.ExpectedDate, fin_paymen1_.ExpectedDate)<$1 and (fin_paymen0_.AD_Org_ID in ($2 , $3 , $4 , $5)) and (fin_paymen0_.AD_Client_ID in ($6 , $7)) and fin_paymen0_.Isactive=$12 order by coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen5_.ExpectedDate, fin_paymen1_.ExpectedDate), coalesce(businesspa7_.Name, businesspa3_.Name) desc, coalesce(invoice6_.DocumentNo, order2_.DocumentNo), coalesce(order2_.DocumentNo, invoice6_.DocumentNo), fin_paymen0_.Amount
df99961951select financialm0_.C_Settlement_ID as C_Settle1_310_0_, financialm0_.AD_Client_ID as AD_Clien2_310_0_, financialm0_.AD_Org_ID as AD_Org_I3_310_0_, financialm0_.IsActive as IsActive4_310_0_, financialm0_.Created as Created5_310_0_, financialm0_.CreatedBy as CreatedB6_310_0_, financialm0_.Updated as Updated7_310_0_, financialm0_.UpdatedBy as UpdatedB8_310_0_, financialm0_.DocumentNo as Document9_310_0_, financialm0_.DateTrx as DateTrx10_310_0_, financialm0_.C_DocType_ID as C_DocTy11_310_0_, financialm0_.Processing as Process12_310_0_, financialm0_.Processed as Process13_310_0_, financialm0_.Posted as Posted14_310_0_, financialm0_.C_Project_ID as C_Proje15_310_0_, financialm0_.C_Campaign_ID as C_Campa16_310_0_, financialm0_.C_Activity_ID as C_Activ17_310_0_, financialm0_.User1_ID as User18_310_0_, financialm0_.User2_ID as User19_310_0_, financialm0_.CreateFrom as CreateF20_310_0_, financialm0_.C_Currency_ID as C_Curre21_310_0_, financialm0_.Cancelednotchargeamt as Cancele22_310_0_, financialm0_.Generatedamt as Generat23_310_0_, financialm0_.Chargedamt as Charged24_310_0_, financialm0_.Description as Descrip25_310_0_, financialm0_.CreateFile as CreateF26_310_0_, financialm0_.DateAcct as DateAcc27_310_0_, financialm0_.Settlementtype as Settlem28_310_0_, financialm0_.SettlementOpen as Settlem29_310_0_, financialm0_.CopyFrom as CopyFro30_310_0_, financialm0_.IsGenerated as IsGener31_310_0_, financialm0_.IsTemplate as IsTempl32_310_0_ from C_Settlement financialm0_ where financialm0_.C_Settlement_ID=$1
da21d1cd03insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4)
1b3d7b3f6dselect this_.AD_Sequence_Config_ID as AD_Seque1_112_0_, this_.AD_Client_ID as AD_Clien2_112_0_, this_.AD_Org_ID as AD_Org_I3_112_0_, this_.Isactive as Isactive4_112_0_, this_.Created as Created5_112_0_, this_.Createdby as Createdb6_112_0_, this_.Updated as Updated7_112_0_, this_.Updatedby as Updatedb8_112_0_, this_.Generator as Generato9_112_0_, this_.AD_Reference_ID as AD_Refe10_112_0_, this_.DB_Sequence_Name as DB_Sequ11_112_0_, this_.DB_Sequence_Initial as DB_Sequ12_112_0_, this_.DB_Sequence_Increment as DB_Sequ13_112_0_ from ad_sequence_config this_ where this_.AD_Reference_ID=$1 and this_.AD_Org_ID in ($2, $3, $4, $5) and this_.AD_Client_ID in ($6, $7) and this_.Isactive=$8
d0b36135c7INSERT INTO last_stat_tables( server_id, sample_id, datid, relid, schemaname, relname, seq_scan, seq_tup_read, idx_scan, idx_tup_fetch, n_tup_ins, n_tup_upd, n_tup_del, n_tup_hot_upd, n_live_tup, n_dead_tup, n_mod_since_analyze, n_ins_since_vacuum, last_vacuum, last_autovacuum, last_analyze, last_autoanalyze, vacuum_count, autovacuum_count, analyze_count, autoanalyze_count, heap_blks_read, heap_blks_hit, idx_blks_read, idx_blks_hit, toast_blks_read, toast_blks_hit, tidx_blks_read, tidx_blks_hit, relsize, relsize_diff, tablespaceid, reltoastrelid, relkind, in_sample, relpages_bytes, relpages_bytes_diff ) SELECT sserver_id, s_id, qres.datid, dbl.relid, dbl.schemaname, dbl.relname, dbl.seq_scan AS seq_scan, dbl.seq_tup_read AS seq_tup_read, dbl.idx_scan AS idx_scan, dbl.idx_tup_fetch AS idx_tup_fetch, dbl.n_tup_ins AS n_tup_ins, dbl.n_tup_upd AS n_tup_upd, dbl.n_tup_del AS n_tup_del, dbl.n_tup_hot_upd AS n_tup_hot_upd, dbl.n_live_tup AS n_live_tup, dbl.n_dead_tup AS n_dead_tup, dbl.n_mod_since_analyze AS n_mod_since_analyze, dbl.n_ins_since_vacuum AS n_ins_since_vacuum, dbl.last_vacuum, dbl.last_autovacuum, dbl.last_analyze, dbl.last_autoanalyze, dbl.vacuum_count AS vacuum_count, dbl.autovacuum_count AS autovacuum_count, dbl.analyze_count AS analyze_count, dbl.autoanalyze_count AS autoanalyze_count, dbl.heap_blks_read AS heap_blks_read, dbl.heap_blks_hit AS heap_blks_hit, dbl.idx_blks_read AS idx_blks_read, dbl.idx_blks_hit AS idx_blks_hit, dbl.toast_blks_read AS toast_blks_read, dbl.toast_blks_hit AS toast_blks_hit, dbl.tidx_blks_read AS tidx_blks_read, dbl.tidx_blks_hit AS tidx_blks_hit, dbl.relsize AS relsize, dbl.relsize_diff AS relsize_diff, CASE WHEN dbl.tablespaceid=$19 THEN qres.tablespaceid ELSE dbl.tablespaceid END AS tablespaceid, dbl.reltoastrelid, dbl.relkind, $20, dbl.relpages_bytes, dbl.relpages_bytes_diff FROM dblink($21, t_query) AS dbl ( relid oid, schemaname name, relname name, seq_scan bigint, seq_tup_read bigint, idx_scan bigint, idx_tup_fetch bigint, n_tup_ins bigint, n_tup_upd bigint, n_tup_del bigint, n_tup_hot_upd bigint, n_live_tup bigint, n_dead_tup bigint, n_mod_since_analyze bigint, n_ins_since_vacuum bigint, last_vacuum timestamp with time zone, last_autovacuum timestamp with time zone, last_analyze timestamp with time zone, last_autoanalyze timestamp with time zone, vacuum_count bigint, autovacuum_count bigint, analyze_count bigint, autoanalyze_count bigint, heap_blks_read bigint, heap_blks_hit bigint, idx_blks_read bigint, idx_blks_hit bigint, toast_blks_read bigint, toast_blks_hit bigint, tidx_blks_read bigint, tidx_blks_hit bigint, relsize bigint, relsize_diff bigint, tablespaceid oid, reltoastrelid oid, relkind char, relpages_bytes bigint, relpages_bytes_diff bigint )
b561df93c5insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4)
bda4372001INSERT INTO sample_stat_tables ( server_id, sample_id, datid, relid, tablespaceid, seq_scan, seq_tup_read, idx_scan, idx_tup_fetch, n_tup_ins, n_tup_upd, n_tup_del, n_tup_hot_upd, n_live_tup, n_dead_tup, n_mod_since_analyze, n_ins_since_vacuum, last_vacuum, last_autovacuum, last_analyze, last_autoanalyze, vacuum_count, autovacuum_count, analyze_count, autoanalyze_count, heap_blks_read, heap_blks_hit, idx_blks_read, idx_blks_hit, toast_blks_read, toast_blks_hit, tidx_blks_read, tidx_blks_hit, relsize, relsize_diff, relpages_bytes, relpages_bytes_diff ) SELECT cur.server_id AS server_id, cur.sample_id AS sample_id, cur.datid AS datid, cur.relid AS relid, cur.tablespaceid AS tablespaceid, cur.seq_scan - COALESCE(lst.seq_scan,$4) AS seq_scan, cur.seq_tup_read - COALESCE(lst.seq_tup_read,$5) AS seq_tup_read, cur.idx_scan - COALESCE(lst.idx_scan,$6) AS idx_scan, cur.idx_tup_fetch - COALESCE(lst.idx_tup_fetch,$7) AS idx_tup_fetch, cur.n_tup_ins - COALESCE(lst.n_tup_ins,$8) AS n_tup_ins, cur.n_tup_upd - COALESCE(lst.n_tup_upd,$9) AS n_tup_upd, cur.n_tup_del - COALESCE(lst.n_tup_del,$10) AS n_tup_del, cur.n_tup_hot_upd - COALESCE(lst.n_tup_hot_upd,$11) AS n_tup_hot_upd, cur.n_live_tup AS n_live_tup, cur.n_dead_tup AS n_dead_tup, cur.n_mod_since_analyze AS n_mod_since_analyze, cur.n_ins_since_vacuum AS n_ins_since_vacuum, cur.last_vacuum AS last_vacuum, cur.last_autovacuum AS last_autovacuum, cur.last_analyze AS last_analyze, cur.last_autoanalyze AS last_autoanalyze, cur.vacuum_count - COALESCE(lst.vacuum_count,$12) AS vacuum_count, cur.autovacuum_count - COALESCE(lst.autovacuum_count,$13) AS autovacuum_count, cur.analyze_count - COALESCE(lst.analyze_count,$14) AS analyze_count, cur.autoanalyze_count - COALESCE(lst.autoanalyze_count,$15) AS autoanalyze_count, cur.heap_blks_read - COALESCE(lst.heap_blks_read,$16) AS heap_blks_read, cur.heap_blks_hit - COALESCE(lst.heap_blks_hit,$17) AS heap_blks_hit, cur.idx_blks_read - COALESCE(lst.idx_blks_read,$18) AS idx_blks_read, cur.idx_blks_hit - COALESCE(lst.idx_blks_hit,$19) AS idx_blks_hit, cur.toast_blks_read - COALESCE(lst.toast_blks_read,$20) AS toast_blks_read, cur.toast_blks_hit - COALESCE(lst.toast_blks_hit,$21) AS toast_blks_hit, cur.tidx_blks_read - COALESCE(lst.tidx_blks_read,$22) AS tidx_blks_read, cur.tidx_blks_hit - COALESCE(lst.tidx_blks_hit,$23) AS tidx_blks_hit, cur.relsize AS relsize, cur.relsize - COALESCE(lst.relsize,$24) AS relsize_diff, cur.relpages_bytes AS relpages_bytes, cur.relpages_bytes - COALESCE(lst.relpages_bytes,$25) AS relpages_bytes_diff FROM last_stat_tables cur JOIN last_stat_database dbcur USING (server_id, sample_id, datid) LEFT JOIN last_stat_database dblst ON (dblst.server_id, dblst.sample_id, dblst.datid, dblst.stats_reset) = (dbcur.server_id, dbcur.sample_id - $26, dbcur.datid, dbcur.stats_reset) LEFT OUTER JOIN last_stat_tables lst ON (lst.server_id, lst.sample_id, lst.datid, lst.relid) = (dblst.server_id, dblst.sample_id, dblst.datid, cur.relid) WHERE (cur.server_id, cur.sample_id, cur.in_sample) = (sserver_id, s_id, $27)
de891c1f5bselect shipmentin0_.M_InOut_ID as M_InOut_1_415_0_, shipmentin0_.AD_Client_ID as AD_Clien2_415_0_, shipmentin0_.AD_Org_ID as AD_Org_I3_415_0_, (select C_GETINVOICESTATUSFROMSHIPMENT(shipmentin0_.m_inout_id) from dual) as formula26_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40, $41, $42, $43, $44, $45, $46, $47, $48, $49, $50)
32bad3f686delete from ad_context_info
c2b6cfc2bfselect text.filename as filename, text.text as text, text.isused as isUsed, text.ad_module_id as moduleId, texttrl.ad_language as trlLang, texttrl.text as trlText, texttrl.istranslated as isTranslated, 1 as orderSeq from ad_textinterfaces text, ad_textinterfaces_trl texttrl where text.ad_textinterfaces_id = texttrl.ad_textinterfaces_id and text.filename = '/org/openbravo/erpCommon/security/Login.html' and text.isused = 'Y' and texttrl.ad_language = 'en_US' UNION select text.filename as filename, text.text as text, text.isused as isUsed, text.ad_module_id as moduleId, texttrl.ad_language as trlLang, texttrl.text as trlText, texttrl.istranslated as isTranslated, 3 as orderSeq from ad_textinterfaces text, ad_textinterfaces_trl texttrl where text.ad_textinterfaces_id = texttrl.ad_textinterfaces_id and text.filename is null and text.isused = 'Y' and texttrl.ad_language = 'en_US' UNION select text.filename as filename, text.text as text, text.isused as isUsed, text.ad_module_id as moduleId, 'en_US' as trlLang, text.text as trlText, 'N' as isTranslated, 2 as orderSeq from ad_textinterfaces text where text.ad_textinterfaces_id NOT IN (SELECT t.ad_textinterfaces_id FROM ad_textInterfaces t, ad_textinterfaces_trl trl WHERE t.ad_textinterfaces_id = trl.ad_textinterfaces_id and trl.ad_language = 'en_US') and (text.filename is null OR text.filename = '/org/openbravo/erpCommon/security/Login.html' ) and text.isused = 'Y' order by orderSeq
d7389ab8e1SELECT $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
6a18f0bfd3insert into prsync_entry (AD_Client_ID, AD_Org_ID, Isactive, Created, Createdby, Updated, Updatedby, Jsonentry, Type_Of_Data, Status, Process, Processing, Prsync_Entry_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13)
50b8978166select order_comp0_.C_Order_ID as C_Order_1_265_0_, order_comp0_.AD_Client_ID as AD_Clien2_265_0_, order_comp0_.AD_Org_ID as AD_Org_I3_265_0_, (coalesce((select case when sum(abs(ol.qtyordered)) = $51 or order_comp0_.iscancelled = $52 or order_comp0_.cancelledorder_id is not null then $53 else round(coalesce(sum(abs(ol.qtydelivered)), $54)/sum(abs(ol.qtyordered)) * $55, $56) end from c_orderline ol where ol.c_order_id=order_comp0_.c_order_id and ol.c_order_discount_id is null),$57)) as formula28_0_, (coalesce(prouti_delavailablewithoutres(order_comp0_.c_order_id),$58)) as formula29_0_, (coalesce(prouti_deliveryavailable(order_comp0_.c_order_id),$59)) as formula30_0_, (select sum(prouti_qtyremainingorderline(ol.c_orderline_id)) from c_orderline ol where ol.c_order_id = order_comp0_.c_order_id) as formula31_0_, (select case when sum(ol.qtyordered)=$60 then $61 else trunc((sum(least(ol.qtyordered, coalesce(pool.qtyordered,$62))) / sum(ol.qtyordered) ) * $63) end from c_orderline ol left join c_orderline pool on pool.em_prouti_orderline_id=ol.c_orderline_id where ol.c_order_id=order_comp0_.c_order_id) as formula32_0_, (coalesce((select case when sum(abs(ol.qtyordered)) = $64 or order_comp0_.iscancelled = $65 or order_comp0_.cancelledorder_id is not null then $66 else round(coalesce(sum(abs(ol.qtyinvoiced)), $67)/sum(abs(ol.qtyordered)) * $68, $69) end from c_orderline ol where ol.c_order_id=order_comp0_.c_order_id and ol.c_order_discount_id is null), $70)) as formula33_0_, (coalesce((select case when sum(fps.amount) = $71 then $72 else round(sum(fps.paidamt)/sum(fps.amount) * $73, $74) end from FIN_Payment_Schedule fps where fps.c_order_id=order_comp0_.c_order_id),$75)) as formula34_0_ from C_Order order_comp0_ where order_comp0_.C_Order_ID in ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40, $41, $42, $43, $44, $45, $46, $47, $48, $49, $50)
9cbca4d83cINSERT INTO AD_AUDIT_TRAIL (AD_AUDIT_TRAIL_ID, AD_USER_ID, AD_TABLE_ID, AD_COLUMN_ID, PROCESSTYPE, PROCESS_ID, RECORD_ID, RECORD_REVISION, ACTION, EVENT_TIME, OLD_CHAR, NEW_CHAR, AD_CLIENT_ID, AD_ORG_ID) VALUES (GET_UUID(), V_USER_ID, $33, $34, v_process_type, v_process_id, v_record_id, v_record_rev, v_action, v_time, v_old_CHAR, v_new_CHAR, V_CLIENT, V_ORG)
9625146448select min(this_.Duedate) as y0_ from FIN_Payment_Schedule this_ where this_.C_Invoice_ID=$1 and this_.Outstandingamt<>$2 and this_.Isactive=$3 limit $4
29e9be51ceselect adtab0_.AD_Table_ID as col_0_0_, adwindowac2_.IsReadWrite as col_1_0_ from AD_Tab adtab0_ left outer join AD_Window adwindow1_ on adtab0_.AD_Window_ID=adwindow1_.AD_Window_ID left outer join AD_Window_Access adwindowac2_ on adwindow1_.AD_Window_ID=adwindowac2_.AD_Window_ID where adwindowac2_.AD_Role_ID=$1
d20baf16f4insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4)
93accebb93SELECT o.C_Order_ID, org.Name as adorgname, COALESCE(dttrl.Name, dt.Name) as cdoctypename, o.DocumentNo, bp.Name as cbpartnername, o.DateOrdered, o.totallines as amountlines, ( SELECT sum((ol.qtyordered - ol.qtydelivered) * ol.priceactual) FROM c_orderline ol WHERE ol.c_order_id = o.c_order_id AND ol.qtyordered <> ol.qtydelivered AND ol.directship = $2 AND ol.m_product_id IS NOT NULL ) as TotalLines FROM C_Order o JOIN AD_Org org ON o.AD_Org_ID = org.AD_Org_ID JOIN C_BPartner bp ON o.C_BPartner_ID = bp.C_BPartner_ID JOIN C_DocType dt ON o.C_DocType_ID = dt.C_DocType_ID LEFT JOIN C_DocType_trl dttrl ON dt.C_DocType_ID = dttrl.C_DocType_ID AND dttrl.ad_language = $1 WHERE o.docstatus = $3 AND o.isdelivered = $4 AND dt.isreturn = $5 AND dt.docbasetype = $6 AND dt.docsubtypeso NOT IN ($7, $8, $9) AND EXISTS ( SELECT $10 FROM C_ORDERLINE ol WHERE ol.c_order_id = o.c_order_id AND ol.qtyordered <> ol.qtydelivered AND ol.directship = $11 AND ol.m_product_id IS NOT NULL ) AND o.ad_client_id IN ($12,$13) AND o.ad_org_id IN ($14,$15,$16,$17) AND $18=$19 AND $20=$21 AND o.ad_org_id IN ($22) ORDER BY org.Name, bp.Name, DateOrdered
75cdc9279aSELECT td0.AD_User_ID AS ID, (COALESCE(TO_CHAR(COALESCE(TO_CHAR(td0.Name),$2)),$3)) AS NAME, $4 AS DESCRIPTION FROM AD_User td0 WHERE td0.AD_Client_ID IN ($5,$6) AND td0.AD_Org_ID IN ($7,$8) AND (EXISTS (select ad_user_id from ad_user left join c_bpartner on td0.c_bpartner_id=c_bpartner.c_bpartner_id where c_bpartner.isemployee=$9)) AND (td0.isActive = $10 OR td0.AD_User_ID = ($1) ) ORDER BY 2 LIMIT $11 OFFSET $12
847a368de1delete from ad_context_info
fa1b74d06fselect financialm0_.C_Settlement_Cancel_ID as C_Settl10_218_1_, financialm0_.C_Debt_Payment_ID as C_Debt_P1_218_1_, financialm0_.C_Debt_Payment_ID as C_Debt_P1_218_0_, financialm0_.AD_Client_ID as AD_Clien2_218_0_, financialm0_.AD_Org_ID as AD_Org_I3_218_0_, financialm0_.IsActive as IsActive4_218_0_, financialm0_.Created as Created5_218_0_, financialm0_.CreatedBy as CreatedB6_218_0_, financialm0_.Updated as Updated7_218_0_, financialm0_.UpdatedBy as UpdatedB8_218_0_, financialm0_.IsReceipt as IsReceip9_218_0_, financialm0_.C_Settlement_Cancel_ID as C_Settl10_218_0_, financialm0_.C_Settlement_Generate_ID as C_Settl11_218_0_, financialm0_.Description as Descrip12_218_0_, financialm0_.C_Invoice_ID as C_Invoi13_218_0_, financialm0_.C_BPartner_ID as C_BPart14_218_0_, financialm0_.C_Currency_ID as C_Curre15_218_0_, financialm0_.C_CashLine_ID as C_CashL16_218_0_, financialm0_.C_BankAccount_ID as C_BankA17_218_0_, financialm0_.C_CashBook_ID as C_CashB18_218_0_, financialm0_.PaymentRule as Payment19_218_0_, financialm0_.IsPaid as IsPaid20_218_0_, financialm0_.Amount as Amount21_218_0_, financialm0_.WriteOffAmt as WriteOf22_218_0_, financialm0_.Dateplanned as Datepla23_218_0_, financialm0_.IsManual as IsManua24_218_0_, financialm0_.IsValid as IsValid25_218_0_, financialm0_.C_BankStatementLine_ID as C_BankS26_218_0_, financialm0_.Changesettlementcancel as Changes27_218_0_, financialm0_.Cancel_Processed as Cancel_28_218_0_, financialm0_.Generate_Processed as Generat29_218_0_, financialm0_.GLItemAmt as GLItemA30_218_0_, financialm0_.Isdirectposting as Isdirec31_218_0_, financialm0_.C_Glitem_ID as C_Glite32_218_0_, financialm0_.C_Order_ID as C_Order33_218_0_, financialm0_.C_Project_ID as C_Proje34_218_0_, financialm0_.IsAutomaticGenerated as IsAutom35_218_0_, financialm0_.Status as Status36_218_0_, financialm0_.Status_Initial as Status_37_218_0_, financialm0_.C_Withholding_ID as C_Withh38_218_0_, financialm0_.Withholdingamount as Withhol39_218_0_ from C_Debt_Payment financialm0_ where financialm0_.C_Settlement_Cancel_ID=$1
1e43f28979insert into M_Product (AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, Value, Name, C_UOM_ID, IsSummary, IsStocked, IsPurchased, IsSold, IsBOM, IsInvoicePrintDetails, IsPickListPrintDetails, IsVerified, M_Product_Category_ID, C_TaxCategory_ID, Discontinued, Processing, ProductType, M_Locator_ID, Ispriceprinted, Enforce_Attribute, Calculated, Production, Qtytype, Isquantityvariable, Isdeferredrevenue, Isdeferredexpense, Bookusingpoprice, EM_Advcrm_Newactivity, IsGeneric, CreateVariants, Updateinvariants, ManageVariants, Print_Description, Returnable, Ispricerulebased, Unique_Per_Document, Relateprodcattoservice, Relateprodtoservice, Islinkedtoproduct, Allow_Deferred_Sell, EM_Prlab_Qtylabels, EM_Psat_Isrepairable, EM_Psat_Isavailablesat, Ismodifytax, Relateprodcattaxtoservice, Copyservicemodifytaxconfig, M_Product_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)
c1deedb9c8insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4)
18a7378ff7insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4)
c42a2e4205insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4)
4108c96b3fselect productbyp0_.M_Product_Price_Warehouse_V_ID as M_Produc1_469_, productbyp0_.AD_Client_ID as AD_Clien2_469_, productbyp0_.AD_Org_ID as AD_Org_I3_469_, productbyp0_.Isactive as Isactive4_469_, productbyp0_.Updated as Updated5_469_, productbyp0_.Updatedby as Updatedb6_469_, productbyp0_.Created as Created7_469_, productbyp0_.Createdby as Createdb8_469_, productbyp0_.M_Product_ID as M_Produc9_469_, productbyp0_.M_Warehouse_ID as M_Wareh10_469_, productbyp0_.M_Productprice_ID as M_Produ11_469_, productbyp0_.QTY_Available as QTY_Ava12_469_, productbyp0_.QTY_Onhand as QTY_Onh13_469_, productbyp0_.QTY_Reserved as QTY_Res14_469_, productbyp0_.QTY_Ordered as QTY_Ord15_469_, productbyp0_.Pricelist as Priceli16_469_, productbyp0_.Pricestd as Pricest17_469_, productbyp0_.Pricelimit as Priceli18_469_, productbyp0_.Orgwarehouse as Orgware19_469_ from M_Product_Price_Warehouse_v productbyp0_ left outer join M_Product product1_ on productbyp0_.M_Product_ID=product1_.M_Product_ID cross join M_ProductPrice pricingpro4_ cross join M_PriceList_Version pricingpri5_ cross join M_PriceList pricingpri9_ where productbyp0_.M_Productprice_ID=pricingpro4_.M_ProductPrice_ID and pricingpro4_.M_PriceList_Version_ID=pricingpri5_.M_PriceList_Version_ID and pricingpri5_.M_PriceList_ID=pricingpri9_.M_PriceList_ID and (upper(product1_.Value) like upper($1) escape $12 or upper(product1_.Name) like upper($2) escape $13 or upper((product1_.Value||$14||coalesce(to_char((select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID=product1_.M_Product_ID and producttrl2_.AD_Language=$15)), to_char(product1_.Name), $16))) like upper($3) escape $17 or upper((product1_.Value||$18||coalesce(to_char((select producttrl3_.Name from M_Product_Trl producttrl3_ where producttrl3_.M_Product_ID=product1_.M_Product_ID and producttrl3_.AD_Language=$19)), to_char(product1_.Name), $20))) like upper($4) escape $21) and (productbyp0_.AD_Org_ID in ($22 , $23)) and productbyp0_.Isactive=$24 and AD_ORG_ISINNATURALTREE(productbyp0_.Orgwarehouse, $5, $6)=$25 and pricingpri5_.IsActive=$26 and AD_ORG_ISINNATURALTREE(pricingpro4_.AD_Org_ID, $7, $8)=$27 and pricingpri9_.IsSOPriceList=$28 and pricingpri9_.C_Currency_ID=$29 and pricingpro4_.M_PriceList_Version_ID=$30 and productbyp0_.M_Warehouse_ID=$31 and (productbyp0_.AD_Client_ID in ($9 , $10)) and productbyp0_.Isactive=$32 order by product1_.Value, product1_.Name, product1_.M_Product_ID limit $11
0c9140d9a9INSERT INTO AD_AUDIT_TRAIL (AD_AUDIT_TRAIL_ID, AD_USER_ID, AD_TABLE_ID, AD_COLUMN_ID, PROCESSTYPE, PROCESS_ID, RECORD_ID, RECORD_REVISION, ACTION, EVENT_TIME, OLD_NUMBER, NEW_NUMBER, AD_CLIENT_ID, AD_ORG_ID) VALUES (GET_UUID(), V_USER_ID, $33, $34, v_process_type, v_process_id, v_record_id, v_record_rev, v_action, v_time, v_old_NUMBER, v_new_NUMBER, V_CLIENT, V_ORG)
228d74fbf5COPY public.ad_image (ad_image_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, name, imageurl, binarydata, width, height, mimetype) TO stdout
a4410aa255insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4)
c525c04235INSERT INTO AD_Process_Run (AD_Org_ID, AD_Client_ID, Isactive, Created, Createdby, Updated, UpdatedBy, AD_Process_Run_ID, Status, Start_Time, Runtime, Log, AD_Process_Request_ID, Scheduler_Instance) VALUES ($1, $2, 'Y', NOW(), $3, NOW(), $4, $5, $6, NOW(), $7, $8, $9, $10)
503324b603select financialm0_.C_Invoice_ID as C_Invoi13_218_1_, financialm0_.C_Debt_Payment_ID as C_Debt_P1_218_1_, financialm0_.C_Debt_Payment_ID as C_Debt_P1_218_0_, financialm0_.AD_Client_ID as AD_Clien2_218_0_, financialm0_.AD_Org_ID as AD_Org_I3_218_0_, financialm0_.IsActive as IsActive4_218_0_, financialm0_.Created as Created5_218_0_, financialm0_.CreatedBy as CreatedB6_218_0_, financialm0_.Updated as Updated7_218_0_, financialm0_.UpdatedBy as UpdatedB8_218_0_, financialm0_.IsReceipt as IsReceip9_218_0_, financialm0_.C_Settlement_Cancel_ID as C_Settl10_218_0_, financialm0_.C_Settlement_Generate_ID as C_Settl11_218_0_, financialm0_.Description as Descrip12_218_0_, financialm0_.C_Invoice_ID as C_Invoi13_218_0_, financialm0_.C_BPartner_ID as C_BPart14_218_0_, financialm0_.C_Currency_ID as C_Curre15_218_0_, financialm0_.C_CashLine_ID as C_CashL16_218_0_, financialm0_.C_BankAccount_ID as C_BankA17_218_0_, financialm0_.C_CashBook_ID as C_CashB18_218_0_, financialm0_.PaymentRule as Payment19_218_0_, financialm0_.IsPaid as IsPaid20_218_0_, financialm0_.Amount as Amount21_218_0_, financialm0_.WriteOffAmt as WriteOf22_218_0_, financialm0_.Dateplanned as Datepla23_218_0_, financialm0_.IsManual as IsManua24_218_0_, financialm0_.IsValid as IsValid25_218_0_, financialm0_.C_BankStatementLine_ID as C_BankS26_218_0_, financialm0_.Changesettlementcancel as Changes27_218_0_, financialm0_.Cancel_Processed as Cancel_28_218_0_, financialm0_.Generate_Processed as Generat29_218_0_, financialm0_.GLItemAmt as GLItemA30_218_0_, financialm0_.Isdirectposting as Isdirec31_218_0_, financialm0_.C_Glitem_ID as C_Glite32_218_0_, financialm0_.C_Order_ID as C_Order33_218_0_, financialm0_.C_Project_ID as C_Proje34_218_0_, financialm0_.IsAutomaticGenerated as IsAutom35_218_0_, financialm0_.Status as Status36_218_0_, financialm0_.Status_Initial as Status_37_218_0_, financialm0_.C_Withholding_ID as C_Withh38_218_0_, financialm0_.Withholdingamount as Withhol39_218_0_ from C_Debt_Payment financialm0_ where financialm0_.C_Invoice_ID=$1
f68dd8a1a9ANALYZE last_stat_tables
3a735c6f6aselect psat_reque0_.Psat_Request_ID as Psat_Req1_735_, psat_reque0_.AD_Client_ID as AD_Clien2_735_, psat_reque0_.AD_Org_ID as AD_Org_I3_735_, psat_reque0_.Isactive as Isactive4_735_, psat_reque0_.Created as Created5_735_, psat_reque0_.Createdby as Createdb6_735_, psat_reque0_.Updated as Updated7_735_, psat_reque0_.Updatedby as Updatedb8_735_, psat_reque0_.C_Doctype_ID as C_Doctyp9_735_, psat_reque0_.Documentno as Documen10_735_, psat_reque0_.Priority as Priorit11_735_, psat_reque0_.Status as Status12_735_, psat_reque0_.C_Bpartner_ID as C_Bpart13_735_, psat_reque0_.C_Bpartner_Location_ID as C_Bpart14_735_, psat_reque0_.AD_User_ID as AD_User15_735_, psat_reque0_.Subject as Subject16_735_, psat_reque0_.Description as Descrip17_735_, psat_reque0_.Supervisor_ID as Supervi18_735_, psat_reque0_.Sgpcrm_Securitygroups_ID as Sgpcrm_19_735_, psat_reque0_.Requestdate as Request20_735_, psat_reque0_.Dateclosed as Dateclo21_735_, psat_reque0_.Resolution as Resolut22_735_, psat_reque0_.Psat_Parent_Request_ID as Psat_Pa23_735_, psat_reque0_.Location_Notes as Locatio24_735_, psat_reque0_.C_Orderline_ID as C_Order25_735_, psat_reque0_.psat_addactivitiesfromtemplate as psat_ad26_735_, psat_reque0_.Change_Status as Change_27_735_, psat_reque0_.Requestor_ID as Request28_735_, psat_reque0_.Affected_Contact_ID as Affecte29_735_, psat_reque0_.Notified_By_ID as Notifie30_735_, psat_reque0_.Poreference as Porefer31_735_, psat_reque0_.Additional_Info as Additio32_735_, psat_reque0_.M_Product_ID as M_Produ33_735_, psat_reque0_.M_Attributesetinstance_ID as M_Attri34_735_, psat_reque0_.EM_Cus_Clonerequest as EM_Cus_35_735_, psat_reque0_.Psat_Checklist_ID as Psat_Ch36_735_ from psat_request psat_reque0_ inner join M_Product product1_ on psat_reque0_.M_Product_ID=product1_.M_Product_ID where upper((product1_.Value||$9||coalesce(to_char((select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID=product1_.M_Product_ID and producttrl2_.AD_Language=$10)), to_char(product1_.Name), $11)))=upper($1) and (psat_reque0_.AD_Org_ID in ($2 , $3 , $4 , $5)) and (psat_reque0_.AD_Client_ID in ($6 , $7)) order by psat_reque0_.Documentno, psat_reque0_.Psat_Request_ID limit $8
9824754258insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4)
b9bb8a4422SELECT * FROM take_sample_subset(1,0)
73e3636becupdate C_Invoice set Updated=$1, LastCalculatedOnDate=$2 where C_Invoice_ID=$3
8c36a5bf11insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4)
2cbac7b1a6delete from ad_context_info
174962df65insert into psat_checklist_result (AD_Client_ID, AD_Org_ID, Isactive, Created, Createdby, Updated, Updatedby, Advcrm_Activity_ID, Result, Psat_Check_Type_ID, Psat_Checklist_Group_ID, Description, Psat_Checklist_Result_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13)

Schema object statistics

Top tables by estimated sequentially scanned volume

DBTablespaceSchemaTable~SeqBytesSeqScanIxScanIxFetInsUpdDelUpd(HOT)
etendopg_defaultpg_temp_8ad_context_info363 GB100941100927100926
etendopg_defaultpg_temp_3ad_context_info103 GB511465109251091
etendopg_defaultpg_temp_9ad_context_info62 GB383473832138320
etendopg_defaultpg_temp_5ad_context_info61 GB126001260012600
etendopg_defaultpg_temp_4ad_context_info31 GB256072559525594
etendopg_defaultpg_temp_7ad_context_info31 GB252302523025229
etendopg_defaultpublicadvcrm_activity17 GB10602163211189072
advcrm_activity(TOAST)
etendopg_defaultpublicpsat_activity_consumption17 GB64211816141413
psat_activity_consumption(TOAST)
etendopg_defaultpublicc_bpartner12 GB944122475156275185
c_bpartner(TOAST)
etendopg_defaultpg_temp_5ad_context_info11 GB128521284912848
etendopg_defaultpg_temp_6ad_context_info11 GB128671284212841
etendopg_defaultpg_temp_4ad_context_info10 GB126001260012599
etendopg_defaultpg_catalogpg_class4052 MB60286151726026531879672818791376
etendopg_defaultpublicm_product2791 MB787332510633956751072
m_product(TOAST)
etendopg_defaultpublicpsat_checklist_result2536 MB43199027613123130
psat_checklist_result(TOAST)
etendopg_defaultprofilelast_stat_database2134 MB972418888
etendopg_defaultpublicad_audit_trail1529 MB31641152283
ad_audit_trail(TOAST)
etendopg_defaultpublicpsat_request990 MB375335211348151
psat_request(TOAST)
etendopg_defaultpublicm_inout873 MB7491124126107
m_inout(TOAST)
etendopg_defaultpublicc_invoice751 MB333041811390840289533
c_invoice(TOAST)

Top tables by blocks fetched

DBTablespaceSchemaTableHeapIxTOASTTOAST-Ix
Blks%TotalBlks%TotalBlks%TotalBlks%Total
etendopg_defaultpg_temp_8ad_context_info4221988928.17
etendopg_defaultpublicc_invoice35597372.3776203275.08
etendopg_defaultpg_temp_3ad_context_info108720797.25
etendopg_defaultpublicm_product37152022.4866801704.46
etendopg_defaultpg_temp_5ad_context_info72704084.85
etendopg_defaultpg_temp_9ad_context_info61451414.10
etendopg_defaultpublicm_productprice15484101.0345623483.04
etendopg_defaultprofilelast_stat_tables34987802.331069500.07
etendopg_defaultpublicfin_payment_schedule8945440.6025930101.73
etendopg_defaultpublicm_product_trl34695352.31
etendopg_defaultpg_temp_4ad_context_info27298811.82
etendopg_defaultpg_temp_7ad_context_info26985681.80
etendopg_defaultpg_catalogpg_class11129690.7412861770.86
etendopg_defaultpublicad_tab12880030.869354350.62
etendopg_defaultpublicadvcrm_activity21814301.4665850.00
etendopg_defaultpublicpsat_activity_consumption21554721.44690.00
etendopg_defaultpublicc_bpartner16485021.10481680.03
etendopg_defaultpublicc_debt_payment4878980.338205430.55
etendopg_defaultpg_catalogpg_attribute4871700.337158590.48
etendopg_defaultpublicad_textinterfaces5493460.376057480.40

Top tables by blocks read

DBTablespaceSchemaTableHeapIxTOASTTOAST-IxHit(%)
Blks%TotalBlks%TotalBlks%TotalBlks%Total
etendopg_defaultpublicad_audit_trail13052328.9224470.5446.26
etendopg_defaultpublicad_image7910.18240.015647212.518860.2033.46
etendopg_defaultpublicpsat_checklist_result150733.3436570.8197.83
etendopg_defaultpublicc_invoice58301.2962881.3999.89
etendopg_defaultpublicad_session_usage_audit50401.126770.1588.90
etendopg_defaultpublicfin_payment_schedule37960.848010.1899.87
etendopg_defaultpublicfin_payment31640.702630.0688.28
etendopg_defaultpublicfin_payment_scheduledetail27200.606680.1593.61
etendopg_defaultpublicad_process_run27000.601220.03110.00100.0095.75
etendopg_defaultpublicfin_payment_detail19100.422660.0684.64
etendopg_defaultpublicprsync_entry10420.23780.028840.20170.0091.67
etendopg_defaultpg_catalogpg_attribute14410.324790.1199.84
etendopg_defaultprofilesample_stat_tables17810.391080.0296.15
etendopg_defaultpg_catalogpg_statistic11740.26730.026040.13210.0099.53
etendopg_defaultpublicc_orderline80.0014500.3297.77
etendopg_defaultprofilelast_stat_indexes9540.211120.0299.86
etendopg_defaultpublicc_debt_payment9400.211190.0399.92
etendopg_defaultpg_catalogpg_depend7800.171450.0399.43
etendopg_defaultprofilesample_statements7460.171360.0397.53
etendopg_defaultpg_temp_8ad_context_info8350.19100.00

Top DML tables

DBTablespaceSchemaTableInsUpdDelUpd(HOT)SeqScanSeqFetIxScanIxFet
etendopg_defaultpublicc_invoice2895333315131823041811390840
c_invoice(TOAST)
etendopg_defaultpg_temp_8ad_context_info100927100926100941100940
etendopg_defaultprofilelast_stat_indexes54119129454119118586590434530328361
etendopg_defaultpg_temp_3ad_context_info51092510915114651145
etendopg_defaultpg_temp_9ad_context_info38321383203834738346
etendopg_defaultprofilelast_stat_tables328903454328904918652910080483084680
etendopg_defaultpg_temp_4ad_context_info25595255942560725606
etendopg_defaultpg_temp_7ad_context_info25230252292523025229
etendopg_defaultpg_catalogpg_attribute2425324253125946103039771266555
etendopg_defaultpg_temp_5ad_context_info12849128481285212851
etendopg_defaultpg_temp_6ad_context_info12842128411286712866
etendopg_defaultpg_temp_5ad_context_info12600126001260012600
etendopg_defaultpg_temp_4ad_context_info12600125991260012599
etendopg_defaultpg_catalogpg_statistic164241327821663410420386890
pg_statistic(TOAST)239623971410722142
etendopg_defaultprofilelast_stat_user_functions8257888825737386243761
last_stat_user_functions(TOAST)
etendopg_defaultpg_catalogpg_class1879672818791376602817627920615172602653
etendopg_defaultpg_catalogpg_depend46004600102058604431650012
etendopg_defaultprofilesample_stat_tables34543326256067231423518
etendopg_defaultpg_catalogpg_type217121711230607112513105311
etendopg_defaultprofilesample_statements14471448495104531091448
sample_statements(TOAST)

Top tables by updated/deleted tuples

DBTablespaceSchemaTableUpdUpd(HOT)DelVacuumAutoVacuumAnalyzeAutoAnalyze
etendopg_defaultpublicc_invoice28953323123
c_invoice(TOAST)
etendopg_defaultpg_temp_8ad_context_info100926
etendopg_defaultprofilelast_stat_indexes1294154119264723
etendopg_defaultpg_temp_3ad_context_info51091
etendopg_defaultpg_temp_9ad_context_info38320
etendopg_defaultprofilelast_stat_tables34544932890264723
etendopg_defaultpg_temp_4ad_context_info25594
etendopg_defaultpg_temp_7ad_context_info25229
etendopg_defaultpg_catalogpg_attribute24253111
etendopg_defaultpg_catalogpg_statistic16424132782
pg_statistic(TOAST)23974
etendopg_defaultpg_temp_5ad_context_info12848
etendopg_defaultpg_temp_6ad_context_info12841
etendopg_defaultpg_temp_5ad_context_info12600
etendopg_defaultpg_temp_4ad_context_info12599
etendopg_defaultprofilelast_stat_user_functions888378257264723
last_stat_user_functions(TOAST)
etendopg_defaultpg_catalogpg_class672813761879111
etendopg_defaultpg_catalogpg_depend460011
etendopg_defaultprofilesample_stat_tables332612
etendopg_defaultpg_catalogpg_type2171111
etendopg_defaultpublicad_session19771920115
ad_session(TOAST)

Top growing tables

DBTablespaceSchemaTableSizeGrowthInsUpdDelUpd(HOT)
etendopg_defaultpg_temp_8ad_context_info6688 kB6688 kB100927100926
etendopg_defaultpg_temp_3ad_context_info3376 kB3376 kB5109251091
etendopg_defaultpg_temp_4ad_context_info1712 kB1712 kB2559525594
etendopg_defaultpg_temp_7ad_context_info1696 kB1696 kB2523025229
etendopg_defaultpg_temp_5ad_context_info864 kB864 kB1284912848
etendopg_defaultpg_catalogpg_statistic4824 kB-48 kB1642413278
pg_statistic(TOAST)4400 kB504 kB23962397
etendopg_defaultpg_catalogpg_attribute4768 kB400 kB2425324253
etendopg_defaultprofilesample_stat_indexes1432 kB184 kB12421301
etendopg_defaultprofilesample_stat_user_functions560 kB88 kB864874
etendopg_defaultprofilesample_stat_tables_total336 kB64 kB152176
etendopg_defaultprofilesample_stat_database232 kB48 kB6876
etendopg_defaultprofilelast_stat_database40 kB32 kB8888
etendopg_defaultprofilesample_stat_indexes_total96 kB32 kB7280
etendopg_defaultprofilesample_statements_total136 kB32 kB4245
sample_statements_total(TOAST)
etendopg_defaultprofilesample_stat_user_func_total56 kB32 kB2228
etendopg_defaultpublicad_ep_instance_para16 kB8192 bytes3030
ad_ep_instance_para(TOAST)
etendopg_defaultprofilesample_stat_tables7064 kB8192 bytes34543326

Top indexes by blocks fetched

DBTablespaceSchemaTableIndexScansBlks%Total
etendopg_defaultpublicm_productm_product_key332508366681364.45
etendopg_defaultpublicm_productpricem_productprice_key151194045509313.04
etendopg_defaultpublicm_product_trlm_product_trl_product_langu_un346714334683392.31
etendopg_defaultpublicfin_payment_schedulefin_paym_sch_inv_idx83544125347101.69
etendopg_defaultpublicc_invoicec_invoice_key29746217816281.19
etendopg_defaultpg_catalogpg_classpg_class_oid_index58635211950120.80
etendopg_defaultpublicpsat_activity_materialspsat_activity_mater_produni82549756520.65
etendopg_defaultpublicad_tabad_tab_window4574029237090.62
etendopg_defaultpublicc_invoicec_invoice_bpartner53389026200.60
etendopg_defaultpublicc_invoicec_invoice_client_org_date_doc8805710.59
etendopg_defaultpublicc_invoicec_invoice_posted13807005810.47
etendopg_defaultpublicc_invoicec_invoice_paid6992840.47
etendopg_defaultpg_catalogpg_attributepg_attribute_relid_attnum_index3036426662250.44
etendopg_defaultpublicpsat_checklist_resultpsat_chcklist_res_result_uk11046581390.44
etendopg_defaultpublicc_invoicec_invoice_salesrep6484420.43
etendopg_defaultpublicc_invoicec_invoice_updated5944560.40
etendopg_defaultpublicc_invoicec_invoice_docno5854980.39
etendopg_defaultpublicad_textinterfacesad_textinterfaces_key2868815816280.39
etendopg_defaultpublicc_debt_paymentc_debt_payment_invoice_idx2892225798350.39
etendopg_defaultpublicc_settlementc_settlement_key1603603217860.21

Top indexes by blocks read

DBTablespaceSchemaTableIndexScansBlk Reads%TotalHits(%)
etendopg_defaultpublicpsat_checklist_resultpsat_chcklist_res_result_uk110433510.7499.49
etendopg_defaultpublicad_audit_trailad_audit_trail_pk22140.4975.78
etendopg_defaultpublicc_invoicec_invoice_client_org_date_doc14170.3199.84
etendopg_defaultpublicc_invoicec_invoice_paid12050.2799.83
etendopg_defaultpublicc_invoicec_invoice_posted13809000.2099.87
etendopg_defaultpublicad_image(TOAST)pg_toast_74472_index69558860.2095.99
etendopg_defaultpublicc_orderlinec_orderline_order284567570.1797.06
etendopg_defaultpublicc_invoicec_invoice_docno7160.1699.88
etendopg_defaultpublicc_orderlinec_orderline_key22075990.1391.26
etendopg_defaultpublicm_inoutlinem_inoutline_orderline24645770.1392.30
etendopg_defaultpublicad_session_usage_auditad_session_usage_audit_key5760.1391.61
etendopg_defaultpublicc_invoicec_invoice_updated5420.1299.91
etendopg_defaultpublicc_invoicec_invoice_bpartner53384580.1099.95
etendopg_defaultpublicfin_payment_schedulefin_payment_schedule_key220324040.0999.26
etendopg_defaultpublicc_invoicelinec_invoiceline_inoutline4533540.0874.01
etendopg_defaultpublicc_invoicec_invoice_key2974623440.0899.98
etendopg_defaultpublicc_invoicec_invoice_salesrep3090.0799.95
etendopg_defaultpublicfin_payment_scheduledetailfin_pay_scheduledetail_in33753080.0797.03
etendopg_defaultpublicpsat_checklist_resultpsat_checklist_result_key6903040.0789.93
etendopg_defaultpublicfin_payment_schedulefin_paym_sch_inv_idx8354412560.0699.99

Top growing indexes

DBTablespaceSchemaTableIndexIndexTable
SizeGrowthInsUpdDel
etendopg_defaultprofilesample_statementsix_sample_stmts_qid920 kB320 kB11961255
etendopg_defaultpublicad_process_runad_process_run_key432 kB152 kB185185315
etendopg_defaultprofilesample_statementspk_sample_statements_n488 kB56 kB7501020
etendopg_defaultpublicc_invoicec_invoice_paid2008 kB32 kB289533
etendopg_defaultpublicc_invoicec_invoice_posted1992 kB24 kB289533
etendopg_defaultpublicc_invoicec_invoice_updated1608 kB24 kB289533
etendopg_defaultpg_catalogpg_attributepg_attribute_relid_attnum_index736 kB8192 bytes2425324253
etendopg_defaultprofilesample_statements_totalpk_sample_statements_total40 kB8192 bytes2730

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
etendopg_defaultpublicc_invoicec_invoice_client_org_date_doc3992 kB289533
etendopg_defaultpublicc_invoicec_invoice_docno2144 kB289533
etendopg_defaultpublicc_invoicec_invoice_paid2008 kB32 kB289533
etendopg_defaultpublicc_invoicec_invoice_updated1608 kB24 kB289533
etendopg_defaultpublicc_invoicec_invoice_ad_user1584 kB289533
etendopg_defaultpublicc_invoicec_invoice_bp_extref_idx8192 bytes289533
etendopg_defaultpublicc_invoicec_invoice_salesrep1920 kB-16 kB289533
etendopg_defaultpublicad_process_runad_process_run_ould_be_killed8192 bytes264264315

User function statistics

Top functions by total time

DBSchemaFunctionExecutionsTime (s)
TotalSelfMeanMean self
etendopublicad_org_isinnaturaltree185041746.2411.330.0000.000
etendopublicad_isorgincluded283692235.0135.010.0000.000
etendoprofiletake_sample2316.860.020.7330.001
etendoprofiletake_sample_subset2316.840.060.7320.003
etendoprofiletake_sample2316.771.700.7290.074
etendopublicad_istriggerenabled116078812.1612.160.0000.000
etendoprofilecollect_obj_stats239.282.830.4030.123
etendoprofiledblink6217.907.900.0130.013
etendopublicto_char97306046.136.130.0000.000
etendopublicad_column_identifier77293.913.880.0010.001
etendoprofilesample_dbobj_delta233.623.620.1580.158
etendopublicto_number7770941.331.330.0000.000
etendoprofilecollect_pg_stat_statements_stats230.930.400.0400.017
etendopublicaprm_ispaymentconfirmed102510.820.820.0000.000
etendopublicobequals4266050.460.460.0000.000
etendopublicc_order_post40.370.000.0920.000
etendopublicc_order_post140.370.000.0910.000
etendopublicc_order_post140.370.140.0910.034
etendopublicget_uuid49710.310.150.0000.000
etendoprofiledblink_connect630.280.280.0040.004

Top functions by executions

DBSchemaFunctionExecutionsTime (s)
TotalSelfMeanMean self
etendopublicto_char97306046.136.130.0000.000
etendopublicad_isorgincluded283692235.0135.010.0000.000
etendopublicad_org_isinnaturaltree185041746.2411.330.0000.000
etendopublicad_istriggerenabled116078812.1612.160.0000.000
etendopublicto_number7770941.331.330.0000.000
etendopublicobequals4266050.460.460.0000.000
etendopublicto_char197320.060.060.0000.000
etendopublicuuid_generate_v4149130.160.160.0000.000
etendopublicsubstract_days135730.010.010.0000.000
etendopublicaprm_ispaymentconfirmed102510.820.820.0000.000
etendopublicad_column_identifier77293.913.880.0010.001
etendopublicget_uuid49710.310.150.0000.000
etendopublicadd_days36800.000.000.0000.000
etendopublicprouti_qtyremainingorderline28130.210.210.0000.000
etendopublicto_date16500.010.010.0000.000
etendopubliclowerequaltimestamp14520.010.010.0000.000
etendopublicprouti_delavailablewithoutres6570.150.150.0000.000
etendopublicprouti_deliveryavailable6320.130.130.0000.000
etendoprofiledblink6217.907.900.0130.013
etendopublicto_date5250.010.010.0000.000

Top trigger functions by total time

DBSchemaFunctionExecutionsTime (s)
TotalSelfMeanMean self
etendopublicc_invoice_trg28953324.2518.440.0000.000
etendopublicc_invoice_trg22895337.114.590.0000.000
etendopubliceinv_gene_chk_restrictions_trg2895334.932.760.0000.000
etendopublicpruti_inherit_invoice_contact2895334.302.730.0000.000
etendopublicau_m_product_trg170.490.440.0290.026
etendopublicau_advcrm_activity_trg1010.300.270.0030.003
etendopublicc_orderline_trg21020.250.100.0020.001
etendopublicau_c_bpartner_trg90.200.200.0230.022
etendopublicad_preference_mod_trg5470.170.150.0000.000
etendopublicau_psat_request_trg190.110.100.0060.005
etendopublicm_inoutline_trg340.080.040.0020.001
etendopublicc_orderlinetax_trg570.070.050.0010.001
etendopublicad_process_request_trg3180.070.050.0000.000
etendopublicc_orderline_trg1020.060.060.0010.001
etendopubliccus_act_log_desc_ol_trg180.060.020.0030.001
etendopublicm_product_trg170.050.050.0030.003
etendopublicadvcrm_create_activity990.050.020.0010.000
etendopublicau_psat_activity_materials_trg110.040.040.0040.003
etendopublicc_orderline2_trg1020.040.030.0000.000
etendopublicau_m_productprice_trg90.040.030.0040.003

Vacuum-related statistics

Top tables by vacuum operations

DBTablespaceSchemaTableVacuum countAutovacuum countInsUpdDelUpd(HOT)
etendopg_defaultprofilelast_stat_tables263289034543289049
etendopg_defaultprofilelast_stat_indexes26541191294541191
etendopg_defaultprofilelast_stat_user_functions268257888825737
etendopg_defaultpublicc_invoice23289533
etendopg_defaultpg_catalogpg_statistic21642413278
postgrespg_defaultpg_catalogpg_type1157157
postgrespg_defaultpg_catalogpg_attribute112151215
postgrespg_defaultpg_catalogpg_class1107388107129
postgrespg_defaultpg_catalogpg_statistic1478374
etendopg_defaultpg_catalogpg_type121712171
etendopg_defaultpg_catalogpg_attribute12425324253
etendopg_defaultpg_catalogpg_class11879672818791376
etendopg_defaultpg_catalogpg_index1527527
etendopg_defaultpublicad_pinstance147
etendopg_defaultpublicad_process_run1307307315
etendopg_defaultpublicm_stock_proposed11
etendopg_defaultpublicprsync_entry175715152151476
etendopg_defaultprofilelast_stat_database18888

Top tables by analyze operations

DBTablespaceSchemaTableAnalyze countAutoanalyze countInsUpdDelUpd(HOT)
etendopg_defaultprofilelast_stat_tables47233289034543289049
etendopg_defaultprofilelast_stat_indexes4723541191294541191
etendopg_defaultprofilelast_stat_user_functions47238257888825737
etendopg_defaultpublicc_invoice123289533
etendopg_defaultprofilelast_stat_tablespaces244646
etendopg_defaultpublicad_session1155919771920
etendopg_defaultpublicad_process_request153302298
etendopg_defaultpublicad_preference5553531
etendopg_defaultpublicprsync_entry2275715152151476
postgrespg_globalpg_catalogpg_pltemplate3
postgrespg_globalpg_catalogpg_tablespace3
postgrespg_globalpg_catalogpg_shdepend3712712
postgrespg_globalpg_catalogpg_authid3
postgrespg_globalpg_catalogpg_auth_members3
postgrespg_globalpg_catalogpg_database3
postgrespg_globalpg_catalogpg_db_role_setting3
postgrespg_globalpg_catalogpg_shseclabel3
postgrespg_globalpg_catalogpg_subscription3
etendopg_globalpg_catalogpg_pltemplate3
etendopg_globalpg_catalogpg_tablespace3

Top indexes by estimated vacuum load

DBTablespaceSchemaTableIndex~Vacuum bytesVacuum cntAutovacuum cntIX sizeRelsize
etendopg_defaultpublicc_invoicec_invoice_client_org_date_doc90 MB233992 kB23 MB
etendopg_defaultpublicc_invoicec_invoice_key62 MB232752 kB23 MB
etendopg_defaultpublicc_invoicec_invoice_bpartner57 MB232525 kB23 MB
etendopg_defaultpublicc_invoicec_invoice_docno48 MB232144 kB23 MB
etendopg_defaultpublicc_invoicec_invoice_paid44 MB231938 kB23 MB
etendopg_defaultpublicc_invoicec_invoice_posted44 MB231937 kB23 MB
etendopg_defaultpublicc_invoicec_invoice_salesrep42 MB231853 kB23 MB
etendopg_defaultpublicc_invoicec_invoice_updated36 MB231583 kB23 MB
etendopg_defaultpublicc_invoicec_invoice_ad_user35 MB231566 kB23 MB
etendopg_defaultpublicc_invoicec_invoice_order29 MB231304 kB23 MB
etendopg_defaultprofilelast_stat_indexespk_last_stat_indexes10 MB26395 kB1529 kB
etendopg_defaultprofilelast_stat_tablespk_last_stat_tables5680 kB26217 kB1215 kB
etendopg_defaultpg_catalogpg_attributepg_attribute_relid_attnam_index1128 kB11128 kB4768 kB
etendopg_defaultpg_catalogpg_statisticpg_statistic_relid_att_inh_index752 kB2376 kB4796 kB
etendopg_defaultpg_catalogpg_attributepg_attribute_relid_attnum_index736 kB1736 kB4768 kB
etendopg_defaultpublicprsync_entryprsync_entry_key472 kB1472 kB4136 kB
etendopg_defaultpg_catalogpg_statistic(TOAST)pg_toast_2619_index368 kB493 kB4400 kB
etendopg_defaultpublicad_process_runad_process_run_ad_prequest_id328 kB1328 kB10 MB
etendopg_defaultpublicad_process_runad_process_run_key312 kB1312 kB10 MB
etendopg_defaultpublicprsync_entry(TOAST)pg_toast_137611_index256 kB11128 kB6768 kB

Top tables by dead tuples ratio

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

DBSchemaTableLiveDead%DeadLast AVSize
etendopg_temp_8ad_context_info1100926996688 kB
etendoprofilesample_stat_tables242543156117064 kB
etendopublicad_process_run5140531911 MB
etendopublicfin_payment_schedule6061914015 MB

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
etendopg_temp_8ad_context_info11009262018531996688 kB
etendoprofilesample_stat_tables242543156113642026-07-17 22:00:41.915738+027064 kB
etendopublicad_process_run514053120232026-07-17 19:29:38.788053+0211 MB
etendopublicfin_payment_schedule60619142002025-05-14 08:30:29.130156+0215 MB

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_size15728648kB/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
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_mem1048576kB/etc/postgresql/10/main/postgresql.conf:123
max_locks_per_transaction128/etc/postgresql/10/main/conf.d/01-openbravo-standard-postgres10.conf:17
max_stack_depth2048kB
max_wal_size4096MB/etc/postgresql/10/main/postgresql.conf:209
min_wal_size1024MB/etc/postgresql/10/main/postgresql.conf:210
pg_conf_load_time2026-07-16 05:00:04.153843+02
pg_conf_load_time2026-07-17 05:00:03.984525+022026-07-17 06:00:02+02
pg_postmaster_start_time2026-07-16 05:00:04.286147+02
pg_postmaster_start_time2026-07-17 05:00:04.118924+022026-07-17 06:00:02+02
pg_stat_statements.max10000/etc/postgresql/10/main/postgresql.conf:663
pg_stat_statements.trackall/etc/postgresql/10/main/postgresql.conf:664
random_page_cost1.1/etc/postgresql/10/main/postgresql.conf:307
server_encodingUTF8
shared_buffers5242888kB/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_mem10485kB/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
listen_addresseslocalhost
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_connections100/etc/postgresql/10/main/postgresql.conf:64
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_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_identifier6922115330454611200
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