Postgres profile report (StartID: 498, EndID: 521)

pg_profile version 0.3.6

Server name: local

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

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

Report sections

Server statistics

Database statistics

DatabaseTransactionsBlock statisticsTuplesTemp filesSizeGrowth
CommitsRollbacksDeadlocksHit(%)ReadHitRetFetInsUpdDelSizeFiles
etendo2017404099.67516726158474161397870820306375546684583228134311332854 MB1536 kB
postgres1186799.8411597030391985068365335201286617726383 kB8192 bytes
Total2136074099.68517885159177200399855888310028896704703236794329052860 MB1544 kB

Statement statistics by database

DatabaseCallsTime (s)Fetched (blk)Dirtied (blk)Temp (blk)Local (blk)Statements
ExecReadWriteTrgSharedLocalSharedLocalReadWriteReadWrite
etendo3809508746.0140.42811705979010339620123124161046910617788
postgres561912.93127318223349
template163508.9947957235278
Total3821477767.9340.42813458729010339620168924161046910618415

Cluster statistics

MetricValue
Scheduled checkpoints275
Requested checkpoints1
Checkpoint write time (s)9466.58
Checkpoint sync time (s)3.86
Checkpoints buffers written112443
Background buffers written
Backend buffers written142512
Backend fsync count
Bgwriter interrupts (too many buffers)
Number of buffers allocated504118
WAL generated3659 MB
WAL segments archived
WAL segments archive failed

Tablespace statistics

TablespacePathSizeGrowth
pg_default2874 MB1552 kB
pg_global542 kB

SQL query statistics

Top SQL by execution time

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

adb1c31f79

[948be82f]

etendo150.5519.61150554.938150554.938150554.9381

73e3636bec

[f410d7e7]

etendo70.769.212883510.2450.13212.1940.081288351

e4360f260c

[88d6e75c]

etendo63.758.30321248.9930.20163746.52430050.2933

1af62bac16

[debbd96a]

etendo51.536.716900825763.72725634.80825892.645128.9192

228d74fbf5

[cd9c0fd2]

etendo36.574.761344536574.47236574.47236574.4721

9974be53aa

[9cfc287]

etendo34.734.521008570.3440.0075.5260.173100857

6f5312535e

[75b8a9cd]

etendo32.724.26739390.4320.0692.1290.09375756

8b2efa3bb8

[5d8577b1]

etendo28.213.67884090.3190.0076.5410.16088409

44dc303aa7

[5048ce93]

etendo17.752.31143021.0950.9687.5170.17516210

0c133f89fa

[47df1ade]

etendo16.672.1723724.988655.531991.44881.73823

b9bb8a4422

[eb812a48]

etendo16.672.17724.788655.357991.15781.73023

1e7d029944

[6d5528b2]

etendo13.701.781749595.450564.083641.71821.05023

4108c96b3f

[ca2988bd]

etendo11.801.54872178.734120.140896.332175.91766

671fe12038

[66c83919]

etendo9.111.1918980259105.0439105.0439105.0431

3954a8172d

[408c9f6]

etendo9.031.18378430.2390.0073.9350.12737843

c2b6cfc2bf

[ad3afc69]

etendo7.200.949871252.6421.02610.6571.3932724

9c83facac5

[411377d4]

etendo6.920.90162100.3440.3132.9580.06320107

503324b603

[d34207c3]

etendo6.200.812535520.0210.0055.1350.015289285

1d911b5cd9

[1c4d8fed]

etendo5.640.7314543.8771.81814.3471.4861454

0b651ca53d

[7318d810]

etendo5.410.706744055409.6265409.6265409.6261

Top SQL by executions

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

c9e2eb425b

[de5cc8a]

etendo46147812.083629230.0030.0021.4780.0031.3

9625146448

[b7edb1a4]

etendo2897117.582897110.0100.0070.9350.0052.9

0c13a0abe2

[4ed26d58]

etendo2893007.57313270.0100.0061.3580.0063.0

503324b603

[d34207c3]

etendo2892857.572535520.0210.0055.1350.0156.2

73e3636bec

[f410d7e7]

etendo2883517.552883510.2450.13212.1940.08170.8

9ea37f4950

[39cec726]

etendo2564106.712564100.0090.0070.8440.0052.4

df99961951

[9cb9259b]

etendo1629494.261629490.0180.0121.6190.0082.9

1b3d7b3f6d

[a00bdbff]

etendo1149833.010.0070.0040.3310.0030.8

915a7e9440

[98fb8dd5]

etendo1008812.641008810.0050.0030.4160.0040.5

9974be53aa

[9cfc287]

etendo1008572.641008570.3440.0075.5260.17334.7

891e82e5c1

[5a0bb3c]

etendo1008272.641008270.0030.0020.2830.0010.3

3206d9f66d

[ed220fa0]

etendo884172.31884170.0050.0020.9310.0060.4

8b2efa3bb8

[5d8577b1]

etendo884092.31884090.3190.0076.5410.16028.2

6f5312535e

[75b8a9cd]

etendo757561.98739390.4320.0692.1290.09332.7

f3d76f43df

[dfbb15d8]

etendo689981.81689980.0380.0350.3660.0042.6

5c208ba241

[381eb299]

etendo537201.41537200.0140.0100.2350.0040.8

fa1b74d06f

[c1b84187]

etendo492881.293592910.0400.0151.0600.0392.0

ebd66f2e50

[2f2197e3]

etendo492881.29307670.0130.0050.3660.0080.7

12e891cf77

[7183adf7]

etendo378450.99378450.0050.0030.5470.0060.2

3954a8172d

[408c9f6]

etendo378430.99378430.2390.0073.9350.1279.0

Top SQL by shared blocks fetched

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

73e3636bec

[f410d7e7]

etendo953848011.7399.9770.8288351288351

1af62bac16

[debbd96a]

etendo59018617.26100.0051.5690082

44dc303aa7

[5048ce93]

etendo54141406.66100.0017.71430216210

6f5312535e

[75b8a9cd]

etendo49756166.12100.0032.77393975756

0c133f89fa

[47df1ade]

etendo47799365.8899.9816.72323

b9bb8a4422

[eb812a48]

etendo47797985.8899.9816.723

c2b6cfc2bf

[ad3afc69]

etendo43839165.39100.007.29871252724

adb1c31f79

[948be82f]

etendo30383873.7484.24150.61

4108c96b3f

[ca2988bd]

etendo30238703.7299.9911.887266

9c83facac5

[411377d4]

etendo24035462.95100.006.91621020107

58d3d7b94c

[303fdc1e]

etendo22659242.79100.001.2230423

785a907bc3

[92946197]

etendo16348632.0199.974.6106023

5fa24dc926

[22217272]

etendo16181191.99100.002.15103723

29e9be51ce

[b8952a6a]

etendo10533061.29100.001.65544924

75cdc9279a

[c0534667]

etendo9882061.21100.002.622

f286a2747c

[4221d0a4]

etendo9611741.18100.000.81818

1e7d029944

[6d5528b2]

etendo9155331.13100.0013.7174923

9625146448

[b7edb1a4]

etendo9018231.11100.002.9289711289711

0c13a0abe2

[4ed26d58]

etendo8996601.11100.003.031327289300

11b3a7981f

[61e12bc8]

etendo8774621.0899.932.11073

Top SQL by shared blocks read

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

adb1c31f79

[948be82f]

etendo47873093.7484.24150.61

f8cc1c12b0

[4f2bfd2e]

etendo32270.6398.500.797

73e3636bec

[f410d7e7]

etendo24900.4999.9770.8288351288351

50b8978166

[b54ea3e2]

etendo20970.4198.190.716

12a81791af

[7eea2aca]

etendo17800.3595.600.139853985

0c247acdf0

[948be82f]

template19730.1997.612.81

0c133f89fa

[47df1ade]

etendo9670.1999.9816.72323

b9bb8a4422

[eb812a48]

etendo9670.1999.9816.723

2e0b729b87

[948be82f]

postgres9480.1997.662.91

b8b9950890

[532de794]

etendo6700.1398.640.617861786

9cbca4d83c

[b7b6a128]

etendo6590.1386.790.1542542

11b3a7981f

[61e12bc8]

etendo6570.1399.932.11073

cbb0d2e65e

[4ec9dd54]

etendo5610.1192.100.288

6951a2f5d4

[43f0ca83]

etendo5530.1188.090.0211211

de891c1f5b

[a3acbb25]

etendo5480.1189.290.04

833f4dacaa

[4ad53bb0]

etendo5180.1099.700.7185185

785a907bc3

[92946197]

etendo4960.1099.974.6106023

ec2a223d8f

[313e71e6]

etendo3400.071.160.011

c35de5a948

[cea8e40e]

etendo3050.0699.761.01296

9425961593

[7e6ec72b]

etendo2990.0699.710.53343325326

Top SQL by shared blocks dirtied

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

73e3636bec

[f410d7e7]

etendo6691133.1899.9770.8288351288351

adb1c31f79

[948be82f]

etendo6284131.1684.24150.61

0c133f89fa

[47df1ade]

etendo159087.8999.9816.72323

b9bb8a4422

[eb812a48]

etendo159087.8999.9816.723

fdd1193fad

[3b0e4e8a]

etendo42042.0899.963.55411946

d0b36135c7

[a0544a5f]

etendo31901.5899.973.73288846

b8b9950890

[532de794]

etendo27381.3698.640.617861786

140f3eb685

[59d1e156]

etendo18510.9299.561.02323

c525c04235

[d2f1c69a]

etendo14530.7299.280.1278278

9b16673e73

[423e83ff]

etendo12790.6398.930.11

f68dd8a1a9

[d422fd3a]

etendo8910.44100.000.640

4813705ddb

[6f2d0383]

etendo8060.40100.000.313331333

9cbca4d83c

[b7b6a128]

etendo6700.3386.790.1542542

cbb0d2e65e

[4ec9dd54]

etendo5560.2892.100.288

cc93eb92d8

[48b1758d]

etendo4750.2499.721.31616

032d1e73d2

[fe5aed7e]

etendo4750.2499.721.31616

bda4372001

[a3318de1]

etendo4150.2199.880.1240817

65758f3c61

[2616291e]

etendo3820.1999.940.2574432

1e7f08819e

[c94f617e]

etendo3530.1895.650.04848

07181527b0

[f6f43f8d]

etendo3480.17100.000.02588311

Top SQL by shared blocks written

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

adb1c31f79

[948be82f]

etendo5828122.8640.9084.24150.61

0c247acdf0

[948be82f]

template1550.020.0497.612.81

2e0b729b87

[948be82f]

postgres550.020.0497.662.91

Top SQL by temp usage

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

7ed479c7e5

[1b1541f8]

etendo80570.16106100.00804476.840.177

915a7e9440

[98fb8dd5]

etendo10338999.198398.010.5100881100881

3206d9f66d

[ed220fa0]

etendo9061399.197357.020.48841788417

12e891cf77

[7183adf7]

etendo3878799.183173.030.23784537845

80f5bc22ff

[136114ff]

etendo2594199.182122.030.12531425314

b8baa88ff6

[39aea14e]

etendo2582999.182122.030.12520225202

61bc3cba28

[ee759ab3]

etendo1291399.191040.990.11260112601

71d20126f7

[598f1cd0]

etendo20798.0740.040.0204204

5be93a04bd

[7e394a5]

etendo110.010.011

c7ac2b0d2b

[a9a223ef]

etendo785.7110.010.077

Complete list of SQL texts

QueryIDQuery Text
3954a8172ddelete from ad_context_info
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
5be93a04bdinsert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4)
9974be53aadelete from ad_context_info
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
80f5bc22ffinsert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4)
7ed479c7e5delete from ad_context_info
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)
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 )
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)
ec2a223d8fselect advcrmacti0_.Advcrm_Activity_ID as Advcrm_A9_143_1_, advcrmacti0_.Advcrm_Activity_Related_ID as Advcrm_A1_143_1_, advcrmacti0_.Advcrm_Activity_Related_ID as Advcrm_A1_143_0_, advcrmacti0_.AD_Client_ID as AD_Clien2_143_0_, advcrmacti0_.AD_Org_ID as AD_Org_I3_143_0_, advcrmacti0_.Created as Created4_143_0_, advcrmacti0_.Createdby as Createdb5_143_0_, advcrmacti0_.Updated as Updated6_143_0_, advcrmacti0_.Updatedby as Updatedb7_143_0_, advcrmacti0_.Isactive as Isactive8_143_0_, advcrmacti0_.Advcrm_Activity_ID as Advcrm_A9_143_0_, advcrmacti0_.Related_To as Related10_143_0_, advcrmacti0_.C_Bpartner_ID as C_Bpart11_143_0_, advcrmacti0_.C_Order_ID as C_Order12_143_0_, advcrmacti0_.C_Invoice_ID as C_Invoi13_143_0_, advcrmacti0_.C_Project_ID as C_Proje14_143_0_, advcrmacti0_.M_Product_ID as M_Produ15_143_0_, advcrmacti0_.Advcrm_Opportunity_ID as Advcrm_16_143_0_, advcrmacti0_.Advcrm_Lead_ID as Advcrm_17_143_0_, advcrmacti0_.EM_Psat_Request_ID as EM_Psat18_143_0_, advcrmacti0_.Quotation_ID as Quotati19_143_0_ from advcrm_activity_related advcrmacti0_ where advcrmacti0_.Advcrm_Activity_ID=$1
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
b8baa88ff6insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4)
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 )
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
f286a2747cSELECT COALESCE(SUM(AMTACCTCR-AMTACCTDR), $5) AS NAME FROM FACT_ACCT, C_PERIOD, C_YEAR, (SELECT C_ELEMENTVALUE_ID FROM C_ELEMENTVALUE WHERE C_ELEMENTVALUE.ACCOUNTTYPE = $1) AA WHERE FACT_ACCT.C_PERIOD_ID = C_PERIOD.C_PERIOD_ID AND C_PERIOD.C_YEAR_ID = C_YEAR.C_YEAR_ID AND FACT_ACCT.ACCOUNT_ID = AA.C_ELEMENTVALUE_ID AND FACT_ACCT.FACTACCTTYPE <> $6 AND $7=$8 AND FACT_ACCT.DATEACCT >= TO_DATE($2) AND FACT_ACCT.DATEACCT < TO_DATE($3) AND FACT_ACCT.C_ACCTSCHEMA_ID = $4 AND C_YEAR.YEAR IN ($9) AND FACT_ACCT.AD_ORG_ID IN ($10)
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()
cc93eb92d8SELECT * FROM C_Invoice_Post0($1)
833f4dacaaSELECT COALESCE(SUM(AMTACCTDR),$4) AS TOTALACCTDR, COALESCE(SUM(AMTACCTCR),$5) AS TOTALACCTCR, COALESCE(SUM(AMTACCTDR-AMTACCTCR),$6) AS TOTAL FROM FACT_ACCT WHERE $7=$8 AND FACT_ACCT.C_ACCTSCHEMA_ID = $1 AND FACT_ACCT.ACCOUNT_ID = $2 AND DATEACCT < TO_DATE($3) AND FACT_ACCT.AD_ORG_ID IN ($9)
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))
71d20126f7insert 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)
8b2efa3bb8delete from ad_context_info
11b3a7981fselect invoicecan0_.C_Order_ID as col_0_0_, organizati2_.Name as col_1_0_, invoicecan0_.C_Doctype_ID as col_2_0_, invoicecan0_.Documentno as col_3_0_, businesspa3_.Name as col_4_0_, invoicecan0_.Dateordered as col_5_0_, case when $5=$6 then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end as col_6_0_, case when invoicecan0_.Term=$7 then $8 when invoicecan0_.Term=$9 and invoicecan0_.Qtydelivered<invoicecan0_.Qtyordered then case when $10=$11 then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when $12=$13 then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end as col_7_0_, invoicecan0_.Term as col_8_0_, case when invoicecan0_.Term=$14 then $15 when invoicecan0_.Term=$16 then case when invoicecan0_.Term=$17 then $18 when invoicecan0_.Term=$19 and invoicecan0_.Qtydelivered<invoicecan0_.Qtyordered then case when $20=$21 then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when $22=$23 then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end when invoicecan0_.Term=$24 and invoicecan0_.Qtydelivered<invoicecan0_.Qtyordered then $25 else invoicecan0_.Pendinglines end as col_9_0_, invoicecan0_.Qtyordered as col_10_0_, invoicecan0_.Qtydelivered as col_11_0_, case when $26=$27 then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end-(case when $28=$29 then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end) as col_12_0_, invoicecan0_.Amountlinesgross as col_13_0_, invoicecan0_.Created as col_14_0_, invoicecan0_.Createdby as col_15_0_, invoicecan0_.Updated as col_16_0_, invoicecan0_.Updatedby as col_17_0_, documentty4_.C_DocType_ID as C_DocTyp1_225_0_, aduser5_.AD_User_ID as AD_User_1_129_1_, aduser6_.AD_User_ID as AD_User_1_129_2_, documentty4_.AD_Client_ID as AD_Clien2_225_0_, documentty4_.AD_Org_ID as AD_Org_I3_225_0_, documentty4_.IsActive as IsActive4_225_0_, documentty4_.Created as Created5_225_0_, documentty4_.CreatedBy as CreatedB6_225_0_, documentty4_.Updated as Updated7_225_0_, documentty4_.UpdatedBy as UpdatedB8_225_0_, documentty4_.Name as Name9_225_0_, documentty4_.PrintName as PrintNa10_225_0_, documentty4_.Description as Descrip11_225_0_, documentty4_.DocBaseType as DocBase12_225_0_, documentty4_.IsSOTrx as IsSOTrx13_225_0_, documentty4_.DocSubTypeSO as DocSubT14_225_0_, documentty4_.C_DocTypeShipment_ID as C_DocTy15_225_0_, documentty4_.C_DocTypeInvoice_ID as C_DocTy16_225_0_, documentty4_.IsDocNoControlled as IsDocNo17_225_0_, documentty4_.DocNoSequence_ID as DocNoSe18_225_0_, documentty4_.GL_Category_ID as GL_Cate19_225_0_, documentty4_.DocumentNote as Documen20_225_0_, documentty4_.IsDefault as IsDefau21_225_0_, documentty4_.DocumentCopies as Documen22_225_0_, documentty4_.AD_Table_ID as AD_Tabl23_225_0_, documentty4_.Orgfiltered as Orgfilt24_225_0_, documentty4_.C_Doctype_Reversed_ID as C_Docty25_225_0_, documentty4_.IsExpense as IsExpen26_225_0_, documentty4_.Isreversal as Isrever27_225_0_, documentty4_.IsReturn as IsRetur28_225_0_, documentty4_.C_Doctypeorder_ID as C_Docty29_225_0_, documentty4_.C_Doctypesimpinvoice_ID as C_Docty30_225_0_, documentty4_.EM_OBWPL_Useoutbound as EM_OBWP31_225_0_, documentty4_.EM_Prouti_C_Doctypeorder_ID as EM_Prou32_225_0_, documentty4_.C_Doctypeaggrinvoice_ID as C_Docty33_225_0_, documentty4_.EM_OBWPL_IsGroup as EM_OBWP34_225_0_, documentty4_.EM_OBWPL_GenerateShipment as EM_OBWP35_225_0_, documentty4_.EM_OBWPL_Shipmentdoctype_ID as EM_OBWP36_225_0_, documentty4_.EM_Pruti_Inforeport2 as EM_Prut37_225_0_, documentty4_.EM_Pruti_Inforeport as EM_Prut38_225_0_, aduser5_.AD_Client_ID as AD_Clien2_129_1_, aduser5_.AD_Org_ID as AD_Org_I3_129_1_, aduser5_.IsActive as IsActive4_129_1_, aduser5_.Created as Created5_129_1_, aduser5_.CreatedBy as CreatedB6_129_1_, aduser5_.Updated as Updated7_129_1_, aduser5_.UpdatedBy as UpdatedB8_129_1_, aduser5_.Name as Name9_129_1_, aduser5_.Description as Descrip10_129_1_, aduser5_.Password as Passwor11_129_1_, aduser5_.Email as Email12_129_1_, aduser5_.Supervisor_ID as Supervi13_129_1_, aduser5_.C_BPartner_ID as C_BPart14_129_1_, aduser5_.Processing as Process15_129_1_, aduser5_.EmailUser as EmailUs16_129_1_, aduser5_.EmailUserPW as EmailUs17_129_1_, aduser5_.C_BPartner_Location_ID as C_BPart18_129_1_, aduser5_.C_Greeting_ID as C_Greet19_129_1_, aduser5_.Title as Title20_129_1_, aduser5_.Comments as Comment21_129_1_, aduser5_.Phone as Phone22_129_1_, aduser5_.Phone2 as Phone23_129_1_, aduser5_.Fax as Fax24_129_1_, aduser5_.LastContact as LastCon25_129_1_, aduser5_.LastResult as LastRes26_129_1_, aduser5_.Birthday as Birthda27_129_1_, aduser5_.AD_OrgTrx_ID as AD_OrgT28_129_1_, aduser5_.Firstname as Firstna29_129_1_, aduser5_.Lastname as Lastnam30_129_1_, aduser5_.UserName as UserNam31_129_1_, aduser5_.Default_Ad_Client_ID as Default32_129_1_, aduser5_.Default_Ad_Language as Default33_129_1_, aduser5_.Default_Ad_Org_ID as Default34_129_1_, aduser5_.Default_Ad_Role_ID as Default35_129_1_, aduser5_.Default_M_Warehouse_ID as Default36_129_1_, aduser5_.IsLocked as IsLocke37_129_1_, aduser5_.AD_Image_ID as AD_Imag38_129_1_, aduser5_.Grant_Portal_Access as Grant_P39_129_1_, aduser5_.LastPasswordUpdate as LastPas40_129_1_, aduser5_.Isexpiredpassword as Isexpir41_129_1_, aduser5_.Commercialauth as Commerc42_129_1_, aduser5_.Viasms as Viasms43_129_1_, aduser5_.EM_Sgpcrm_Securitygroups_ID as EM_Sgpc44_129_1_, aduser5_.Viaemail as Viaemai45_129_1_, aduser5_.EM_Pruti_Isbillingcontact as EM_Prut46_129_1_, aduser5_.EM_Advcrm_Newsletter as EM_Advc47_129_1_, aduser5_.EM_Pruti_Isordercontact as EM_Prut48_129_1_, aduser5_.EM_Smfsws_Default_Ws_Role_ID as EM_Smfs49_129_1_, aduser5_.EM_Advcrm_sat_user as EM_Advc50_129_1_, aduser6_.AD_Client_ID as AD_Clien2_129_2_, aduser6_.AD_Org_ID as AD_Org_I3_129_2_, aduser6_.IsActive as IsActive4_129_2_, aduser6_.Created as Created5_129_2_, aduser6_.CreatedBy as CreatedB6_129_2_, aduser6_.Updated as Updated7_129_2_, aduser6_.UpdatedBy as UpdatedB8_129_2_, aduser6_.Name as Name9_129_2_, aduser6_.Description as Descrip10_129_2_, aduser6_.Password as Passwor11_129_2_, aduser6_.Email as Email12_129_2_, aduser6_.Supervisor_ID as Supervi13_129_2_, aduser6_.C_BPartner_ID as C_BPart14_129_2_, aduser6_.Processing as Process15_129_2_, aduser6_.EmailUser as EmailUs16_129_2_, aduser6_.EmailUserPW as EmailUs17_129_2_, aduser6_.C_BPartner_Location_ID as C_BPart18_129_2_, aduser6_.C_Greeting_ID as C_Greet19_129_2_, aduser6_.Title as Title20_129_2_, aduser6_.Comments as Comment21_129_2_, aduser6_.Phone as Phone22_129_2_, aduser6_.Phone2 as Phone23_129_2_, aduser6_.Fax as Fax24_129_2_, aduser6_.LastContact as LastCon25_129_2_, aduser6_.LastResult as LastRes26_129_2_, aduser6_.Birthday as Birthda27_129_2_, aduser6_.AD_OrgTrx_ID as AD_OrgT28_129_2_, aduser6_.Firstname as Firstna29_129_2_, aduser6_.Lastname as Lastnam30_129_2_, aduser6_.UserName as UserNam31_129_2_, aduser6_.Default_Ad_Client_ID as Default32_129_2_, aduser6_.Default_Ad_Language as Default33_129_2_, aduser6_.Default_Ad_Org_ID as Default34_129_2_, aduser6_.Default_Ad_Role_ID as Default35_129_2_, aduser6_.Default_M_Warehouse_ID as Default36_129_2_, aduser6_.IsLocked as IsLocke37_129_2_, aduser6_.AD_Image_ID as AD_Imag38_129_2_, aduser6_.Grant_Portal_Access as Grant_P39_129_2_, aduser6_.LastPasswordUpdate as LastPas40_129_2_, aduser6_.Isexpiredpassword as Isexpir41_129_2_, aduser6_.Commercialauth as Commerc42_129_2_, aduser6_.Viasms as Viasms43_129_2_, aduser6_.EM_Sgpcrm_Securitygroups_ID as EM_Sgpc44_129_2_, aduser6_.Viaemail as Viaemai45_129_2_, aduser6_.EM_Pruti_Isbillingcontact as EM_Prut46_129_2_, aduser6_.EM_Advcrm_Newsletter as EM_Advc47_129_2_, aduser6_.EM_Pruti_Isordercontact as EM_Prut48_129_2_, aduser6_.EM_Smfsws_Default_Ws_Role_ID as EM_Smfs49_129_2_, aduser6_.EM_Advcrm_sat_user as EM_Advc50_129_2_ from c_invoice_candidate_v invoicecan0_ inner join C_Order order1_ on invoicecan0_.C_Order_ID=order1_.C_Order_ID inner join AD_Org organizati2_ on invoicecan0_.AD_Org_ID=organizati2_.AD_Org_ID inner join C_BPartner businesspa3_ on invoicecan0_.C_Bpartner_ID=businesspa3_.C_BPartner_ID inner join C_DocType documentty4_ on invoicecan0_.C_Doctype_ID=documentty4_.C_DocType_ID inner join AD_User aduser5_ on invoicecan0_.Createdby=aduser5_.AD_User_ID inner join AD_User aduser6_ on invoicecan0_.Updatedby=aduser6_.AD_User_ID where (invoicecan0_.Term=$30 and invoicecan0_.Qtydelivered<>$31 and ($32=$33 and (exists (select $34 from C_OrderLine orderline7_ where orderline7_.C_Order_ID=order1_.C_Order_ID and orderline7_.QtyDelivered-orderline7_.QtyInvoiced<>$35)) or $36=$37) or invoicecan0_.Term=$38 and (exists (select $39 from C_OrderLine orderline8_ where orderline8_.C_Order_ID=order1_.C_Order_ID and orderline8_.QtyOrdered-orderline8_.QtyInvoiced<>$40)) or invoicecan0_.Term=$41 and (exists (select $42 from C_OrderLine orderline9_ where orderline9_.C_Order_ID=order1_.C_Order_ID and orderline9_.QtyDelivered<>$43 and orderline9_.QtyOrdered<>orderline9_.QtyInvoiced))) and (invoicecan0_.AD_Client_ID in ($44 , $1)) and (invoicecan0_.AD_Org_ID in ($2 , $3)) order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit $4
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
1e7d029944select a.id, ev.value as account_id, ev.name, a.initialamt as SALDO_INICIAL, a.amtacctcr, a.amtacctdr, A.INITIALAMT+A.AMTACCTDR-A.AMTACCTCR AS SALDO_FINAL, a.groupbyid, CASE ad_column_identifier ($17,groupbyid,TO_CHAR($1)) WHEN $18 THEN $19 ELSE ad_column_identifier ($20,groupbyid,TO_CHAR($2)) END AS groupbyname from( SELECT sum(case when (DATEACCT < TO_DATE($3) or (DATEACCT = TO_DATE($4) and F.FACTACCTTYPE = $5)) then F.AMTACCTDR - F.AMTACCTCR else $21 end) as initialamt, sum(case when (DATEACCT >= TO_DATE($6) AND F.FACTACCTTYPE not in($22, $23, $24)) or (DATEACCT = TO_DATE($7) and F.FACTACCTTYPE = $8) then F.AMTACCTDR else $25 end) as AMTACCTDR, sum(case when (DATEACCT >= TO_DATE($9) AND F.FACTACCTTYPE not in($26, $27, $28)) or (DATEACCT = TO_DATE($10) and F.FACTACCTTYPE = $11) then F.AMTACCTCR else $29 end) as AMTACCTCR, F.ACCOUNT_ID AS ID, to_char($30) AS groupbyid FROM FACT_ACCT F WHERE F.AD_ORG_ID IN($31) AND F.AD_CLIENT_ID IN($32,$33) AND F.AD_ORG_ID IN ($34,$35,$36,$37) AND DATEACCT < TO_DATE($12) AND $38=$39 AND F.C_ACCTSCHEMA_ID = $13 AND F.ISACTIVE=$40 group by F.ACCOUNT_ID ) a, c_elementvalue ev where a.id = ev.c_elementvalue_id and ev.elementlevel = $14 AND $41=$42 AND EV.VALUE >= $15 AND EV.VALUE <= $16 and (a.initialamt <>$43 or a.amtacctcr <>$44 or a.amtacctdr<>$45) order by ev.value, ev.name, id, groupbyname
4813705ddbupdate C_Invoice set Updated=$1, DaysTillDue=$2, LastCalculatedOnDate=$3 where C_Invoice_ID=$4
12e891cf77insert 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
6f5312535eSELECT REPLACE(REPLACE(SQL_RECORD_IDENTIFIER, ':c_language', '''' || p_Language || ''''), ':c_ID', p_Record_ID) FROM AD_TABLE WHERE UPPER(TABLENAME)=UPPER(p_TableName)
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)
e4360f260cUPDATE C_Invoice SET Processing=$2 WHERE C_Invoice_ID = $1 AND Processed=$3 AND (Processing=$4 OR Processing IS NULL) AND Posted<>$5
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)
915a7e9440insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4)
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
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 )
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)
c7ac2b0d2binsert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4)
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
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
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
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
1e7f08819eINSERT INTO Fact_Acct (Fact_Acct_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy, C_AcctSchema_ID,Account_ID, AcctValue, AcctDescription,DateTrx,DateAcct, C_Period_ID,AD_Table_ID,Record_ID,Line_ID, GL_Category_ID,C_Tax_ID,PostingType,C_Currency_ID, AmtSourceDR,AmtSourceCR,AmtAcctDR,AmtAcctCR, C_UOM_ID,Qty,M_Locator_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,Description, Fact_Acct_Group_ID, SeqNo, DocBaseType, Record_ID2, A_ASSET_ID, C_WithHolding_ID, C_DocType_ID, C_Costcenter_ID, FACTACCTTYPE) VALUES ($1, $2, $3,$48,now(),$4,now(),$5, $6, $7, $8, $9, TO_DATE($10), TO_DATE($11), $12, $13, $14, $15, $16, $17, $18, $19, TO_NUMBER($20), TO_NUMBER($21), TO_NUMBER($22), TO_NUMBER($23), $24, TO_NUMBER($25), $26,$27, $28, $29,$30, $31, $32,$33, $34, $35,$36, $37, $38, $39, TO_NUMBER($40), $41, $42, $43, $44, $45, $46, $47)
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
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
c35de5a948select invoice1_.DocumentNo as col_0_0_, invoice1_.C_BPartner_ID as col_1_0_, ad_column_identifier($13, coalesce(invoice1_.C_BPartner_ID, $14), $1) as col_2_0_, businesspa6_.Name2 as col_3_0_, businesspa6_.TaxID as col_4_0_, coalesce(obmtr30_getcountryname(invoice1_.C_BPartner_Location_ID, $2), $15) as col_5_0_, region5_.Name as col_6_0_, invoice1_.DateInvoiced as col_7_0_, invoice1_.DateAcct as col_8_0_, financialm8_.Name as col_9_0_, financialm8_.Rate as col_10_0_, case documentty10_.DocBaseType when $3 then coalesce(invoicetax0_.TaxAmt*$16, $17) else invoicetax0_.TaxAmt end as col_11_0_, invoice1_.C_Currency_ID as col_12_0_, currency11_.CurSymbol as col_13_0_, invoice1_.C_DocType_ID as col_14_0_, case documentty10_.DocBaseType when $4 then coalesce(invoicetax0_.TaxBaseAmt*$18, $19) else invoicetax0_.TaxBaseAmt end as col_15_0_, case documentty10_.DocBaseType when $5 then coalesce(invoice1_.GrandTotal*$20+coalesce(invoice1_.Withholdingamount, $21), $22) else coalesce(invoice1_.GrandTotal-coalesce(invoice1_.Withholdingamount, $23), $24) end as col_16_0_, invoicetax0_.C_Tax_ID as col_17_0_, coalesce(financialm8_.C_TaxCategory_ID, $25) as col_18_0_, financialm16_.Name as col_19_0_, $26 as col_20_0_, $27 as col_21_0_, $28 as col_22_0_, currencyco2_.Rate as col_23_0_ from C_InvoiceTax invoicetax0_ left outer join C_Invoice invoice1_ on invoicetax0_.C_Invoice_ID=invoice1_.C_Invoice_ID left outer join C_Conversion_Rate_Document currencyco2_ on invoice1_.C_Invoice_ID=currencyco2_.C_Invoice_ID left outer join C_BPartner_Location businesspa3_ on invoice1_.C_BPartner_Location_ID=businesspa3_.C_BPartner_Location_ID left outer join C_Location location4_ on businesspa3_.C_Location_ID=location4_.C_Location_ID left outer join C_Region region5_ on location4_.C_Region_ID=region5_.C_Region_ID cross join C_BPartner businesspa6_ cross join C_DocType documentty10_ cross join C_Currency currency11_ cross join C_Tax financialm8_ cross join C_TaxCategory financialm16_ where invoice1_.C_BPartner_ID=businesspa6_.C_BPartner_ID and invoice1_.C_DocType_ID=documentty10_.C_DocType_ID and invoice1_.C_Currency_ID=currency11_.C_Currency_ID and invoicetax0_.C_Tax_ID=financialm8_.C_Tax_ID and financialm8_.C_TaxCategory_ID=financialm16_.C_TaxCategory_ID and invoice1_.IsSOTrx=$6 and invoice1_.DateAcct<$7 and invoice1_.DateAcct>=$8 and invoicetax0_.TaxBaseAmt<>$29 and invoice1_.IsActive=$30 and invoice1_.Processed=$31 and invoice1_.Posted=$32 and coalesce(currencyco2_.C_Currency_ID, invoice1_.C_Currency_ID)=invoice1_.C_Currency_ID and (coalesce(currencyco2_.C_Currency_Id_To, $9)=$10 or invoice1_.C_Currency_ID=$11) and financialm8_.IsWithholdingTax=$33 and (invoice1_.AD_Org_ID in ($12))
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
1af62bac16select documentno, dateacct, substr(ad_column_identifier(tablename, id, $1) ||(CASE WHEN description IS NULL THEN $60 ELSE $61 || DESCRIPTION || $62 END),$63,$64) as description, GRANDTOTAL as amount, document as doctype, id as id, tab_id, docbasetype, record_id from (select ad_client_id, ad_org_id, TO_CHAR(documentno) AS DOCUMENTNO, dateacct, $65 as tablename, C_bpartner_id as id, GRANDTOTAL, to_char(description) as description, coalesce(to_char((select printname from c_doctype_trl where c_doctype_id=c_invoice.c_doctype_id and ad_language=$2 and ad_client_id=$3)), $66) as document, $67 as tab_id, (select docbasetype from c_doctype where c_doctype_id=c_invoice.c_doctype_id) as docbasetype, c_invoice_id as record_id from c_invoice where processed = $68 and posted not in ($69, $70, $71) and issotrx = $72 and docstatus <> $73 and $74=(select max(isactive) from c_acctschema_table where ad_table_id=$75 and ad_client_id=$4) union all select ad_client_id, ad_org_id, TO_CHAR(documentno) AS DOCUMENTNO, dateacct, $76 as tablename, m_inout_id as id, $77 as GRANDTOTAL, to_char(description) as description, coalesce(to_char((select printname from c_doctype_trl where c_doctype_id=m_inout.c_doctype_id and ad_language=$5 and ad_client_id=$6)), $78) as document, $79 as tab_id, (select docbasetype from c_doctype where c_doctype_id=m_inout.c_doctype_id) as docbasetype, m_inout_id as record_id from m_inout where processed = $80 and posted not in ($81, $82, $83) and issotrx = $84 and $85=(select max(isactive) from c_acctschema_table where ad_table_id=$86 and ad_client_id=$7) union all select ad_client_id, ad_org_id, TO_CHAR(documentno) AS DOCUMENTNO, dateacct, $87 as tablename, m_inout_id as id, $88 as GRANDTOTAL, to_char(description) as description, coalesce(to_char((select printname from c_doctype_trl where c_doctype_id=m_inout.c_doctype_id and ad_language=$8 and ad_client_id=$9)), $89) as document, $90 as tab_id, (select docbasetype from c_doctype where c_doctype_id=m_inout.c_doctype_id) as docbasetype, m_inout_id as record_id from m_inout where processed = $91 and posted not in ($92, $93, $94) and issotrx = $95 and $96=(select max(isactive) from c_acctschema_table where ad_table_id=$97 and ad_client_id=$10) union all select ad_client_id, ad_org_id, TO_CHAR(documentno) AS DOCUMENTNO, dateacct, $98 as tablename, C_bpartner_id as id, GRANDTOTAL, to_char(description) as description, coalesce(to_char((select printname from c_doctype_trl where c_doctype_id=c_invoice.c_doctype_id and ad_language=$11 and ad_client_id=$12)), $99) as document, $100 as tab_id, (select docbasetype from c_doctype where c_doctype_id=c_invoice.c_doctype_id) as docbasetype, c_invoice_id as record_id from c_invoice where processed = $101 and posted not in ($102, $103, $104) and issotrx = $105 and docstatus <> $106 and $107=(select max(isactive) from c_acctschema_table where ad_table_id=$108 and ad_client_id=$13) union all select ad_client_id, ad_org_id, TO_CHAR(name) AS DOCUMENTNO, dateacct, $109 as tablename, C_Cash_id as id, c_cash.STATEMENTDIFFERENCE, to_char(description) as description, coalesce(to_char((select printname from c_doctype_trl where c_doctype_id=(select min(c_doctype_id) from c_doctype where ad_client_id=$14 and docbasetype=$110) and ad_language=$15 and ad_client_id=$16)), $111) as document, $112 as tab_id, $113 as docbasetype, c_cash_id as record_id from C_Cash where processed = $114 and posted not in ($115, $116, $117) and $118=(select max(isactive) from c_acctschema_table where ad_table_id=$119 and ad_client_id=$17) union all select ad_client_id, ad_org_id, TO_CHAR(name) AS DOCUMENTNO, statementdate, $120 as tablename, C_bankstatement_id as id, STATEMENTDIFFERENCE, to_char(description) as description, coalesce(to_char((select printname from c_doctype_trl where c_doctype_id=(select min(c_doctype_id) from c_doctype where ad_client_id=$18 and docbasetype=$121) and ad_language=$19 and ad_client_id=$20)), $122) as document, $123 as tab_id, $124 as docbasetype, c_bankstatement_id as record_id from c_bankstatement where processed = $125 and posted not in ($126, $127, $128) and $129=(select max(isactive) from c_acctschema_table where ad_table_id=$130 and ad_client_id=$21) union all select ad_client_id, ad_org_id, TO_CHAR(documentno) AS DOCUMENTNO, dateacct, $131 as tablename, C_Settlement_id as id, generatedamt, to_char(description) as description, coalesce(to_char((select printname from c_doctype_trl where c_doctype_id=s.c_doctype_id and ad_language=$22 and ad_client_id=$23)), $132) as document, $133 as tab_id, $134 as docbasetype, c_Settlement_id as record_id from c_Settlement s where processed = $135 and posted not in ($136, $137, $138) and settlementtype = $139 and $140=(select max(isactive) from c_acctschema_table where ad_table_id=$141 and ad_client_id=$24) and exists (select $142 from c_debt_payment p where p.c_settlement_generate_id = s.c_settlement_id and p.isdirectposting=$143) union all select ad_client_id, ad_org_id, TO_CHAR(documentno) AS DOCUMENTNO, dateacct, $144 as tablename, C_Settlement_id as id, generatedamt, to_char(description) as description, coalesce(to_char((select printname from c_doctype_trl where c_doctype_id=c_Settlement.c_doctype_id and ad_language=$25 and ad_client_id=$26)), $145) as document, $146 as tab_id, $147 as docbasetype, c_Settlement_id as record_id from c_Settlement where processed = $148 and posted not in ($149, $150, $151) and settlementtype <> $152 and $153=(select max(isactive) from c_acctschema_table where ad_table_id=$154 and ad_client_id=$27) union all select ad_client_id, ad_org_id, TO_CHAR(documentno) AS DOCUMENTNO, dateacct, $155 as tablename, GL_Journal_id as id, totaldr, to_char(description) as description, coalesce(to_char((select printname from c_doctype_trl where c_doctype_id=GL_Journal.c_doctype_id and ad_language=$28 and ad_client_id=$29)), $156) as document, $157 as tab_id, (select docbasetype from c_doctype where c_doctype_id=GL_Journal.c_doctype_id) as docbasetype, GL_Journal_id as record_id from GL_Journal where processed = $158 and posted not in ($159, $160, $161) and $162=(select max(isactive) from c_acctschema_table where ad_table_id=$163 and ad_client_id=$30) union all select ad_client_id, ad_org_id, TO_CHAR(name) AS DOCUMENTNO, movementdate , $164 as tablename, m_inventory_id as id, $165 as GRANDTOTAL, to_char(description) as description, coalesce(to_char((select printname from c_doctype_trl where c_doctype_id=(select min(c_doctype_id) from c_doctype where ad_client_id=$31 and docbasetype=$166) and ad_language=$32 and ad_client_id=$33)), $167) as document, $168 as tab_id, $169 as docbasetype, m_inventory_id as record_id from m_inventory where processed = $170 and posted not in ($171, $172, $173) and $174=(select max(isactive) from c_acctschema_table where ad_table_id=$175 and ad_client_id=$34) union all select ad_client_id, ad_org_id, TO_CHAR(documentno) AS DOCUMENTNO, paymentdate , $176 as tablename, c_bpartner_id as id, amount as GRANDTOTAL, to_char(description) as description, coalesce(to_char((select printname from c_doctype_trl where c_doctype_id=(select min(c_doctype_id) from c_doctype where ad_client_id=$35 and docbasetype=$177) and ad_language=$36 and ad_client_id=$37)), $178) as document, $179 as tab_id, $180 as docbasetype, fin_payment_id as record_id from fin_payment where processed = $181 and posted not in ($182, $183, $184) and isreceipt=$185 and status <> $186 and $187=(select max(isactive) from c_acctschema_table where ad_table_id=$188 and ad_client_id=$38) union all select ad_client_id, ad_org_id, TO_CHAR(documentno) AS DOCUMENTNO, paymentdate , $189, c_bpartner_id as id, amount as GRANDTOTAL, to_char(description) as description, coalesce(to_char((select printname from c_doctype_trl where c_doctype_id=(select min(c_doctype_id) from c_doctype where ad_client_id=$39 and docbasetype=$190) and ad_language=$40 and ad_client_id=$41)), $191) as document, $192 as tab_id, $193 as docbasetype, fin_payment_id as record_id from fin_payment where processed = $194 and posted not in ($195, $196, $197) and isreceipt=$198 and status <> $199 and $200=(select max(isactive) from c_acctschema_table where ad_table_id=$201 and ad_client_id=$42) union all select ad_client_id, ad_org_id, $202 || to_char(line) AS DOCUMENTNO, dateacct, $203 as tablename, fin_financial_account_id as id, depositamt-paymentamt as GRANDTOTAL, to_char(description) as description, coalesce(to_char((select printname from c_doctype_trl where c_doctype_id=(select min(c_doctype_id) from c_doctype where ad_client_id=$43 and docbasetype=$204) and ad_language=$44 and ad_client_id=$45)), $205) as document, $206 as tab_id, $207 as docbasetype, fin_finacc_transaction_id as record_id from fin_finacc_transaction where processed = $208 and posted not in ($209, $210, $211) and $212=(select max(isactive) from c_acctschema_table where ad_table_id=$213 and ad_client_id=$46) union all select ad_client_id, ad_org_id, TO_CHAR(documentno) AS DOCUMENTNO, statementdate, $214 as talename, fin_financial_account_id as id, endingbalance - startingbalance as GRANDTOTAL, $215 as description, coalesce(to_char((select printname from c_doctype_trl where c_doctype_id=(select min(c_doctype_id) from c_doctype where ad_client_id=$47 and docbasetype=$216) and ad_language=$48 and ad_client_id=$49)), $217) as document, $218 as tab_id, $219 as docbasetype, fin_reconciliation_id as record_id from fin_reconciliation where processed = $220 and posted not in ($221, $222, $223) and $224=(select max(isactive) from c_acctschema_table where ad_table_id=$225 and ad_client_id=$50) union all select ad_client_id, ad_org_id, TO_CHAR(name) AS DOCUMENTNO, movementdate , $226 as tablename, m_movement_id as id, $227 as GRANDTOTAL, to_char(description) as description, coalesce(to_char((select printname from c_doctype_trl where c_doctype_id=(select min(c_doctype_id) from c_doctype where ad_client_id=$51 and docbasetype=$228) and ad_language=$52 and ad_client_id=$53)), $229) as document, $230 as tab_id, $231 as docbasetype, m_movement_id as record_id from m_movement where processed = $232 and posted not in ($233, $234, $235) and $236=(select max(isactive) from c_acctschema_table where ad_table_id=$237 and ad_client_id=$54) union all select ad_client_id, ad_org_id, TO_CHAR(documentno) AS DOCUMENTNO, dateacct , $238 as tablename, c_dp_management_id as id, $239 as GRANDTOTAL, to_char(description) as description, coalesce(to_char((select printname from c_doctype_trl where c_doctype_id=(select min(c_doctype_id) from c_doctype where ad_client_id=$55 and docbasetype=$240) and ad_language=$56 and ad_client_id=$57)), $241) as document, $242 as tab_id, $243 as docbasetype, c_dp_management_id as record_id from c_dp_management where processed = $244 and posted not in ($245, $246, $247) and $248=(select max(isactive) from c_acctschema_table where ad_table_id=$249 and ad_client_id=$58) ) AAA where ad_client_id = $59 and ad_org_id in ($250,$251,$252,$253) and $254=$255 order by document, dateacct, description
f3d76f43dfSELECT TO_CHAR(COALESCE(TO_CHAR(T.DocumentNo),$1))||$2||TO_CHAR(COALESCE(TO_CHAR(T.MovementDate),$3))||$4||coalesce ((SELECT TO_CHAR(COALESCE(TO_CHAR(TT.Name),$5)) FROM C_BPartner TT WHERE TT.C_BPartner_ID=T.C_BPartner_ID), $6) AS COLUMN_IDENTIFIER FROM (SELECT AD_LANGUAGE FROM AD_LANGUAGE WHERE AD_LANGUAGE=$7) L, M_InOut T WHERE M_InOut_ID=$8
b9bb8a4422SELECT * FROM take_sample_subset(1,0)
3206d9f66dinsert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4)
61bc3cba28insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4)
73e3636becupdate C_Invoice set Updated=$1, LastCalculatedOnDate=$2 where C_Invoice_ID=$3
07181527b0DELETE FROM last_stat_indexes WHERE server_id=sserver_id AND sample_id != s_id
032d1e73d2SELECT C_INVOICE_POST(p_PInstance_ID, $2)

Schema object statistics

Top tables by estimated sequentially scanned volume

DBTablespaceSchemaTable~SeqBytesSeqScanIxScanIxFetInsUpdDelUpd(HOT)
etendopg_defaultpg_temp_9ad_context_info365 GB100942100923100922
etendopg_defaultpg_temp_8ad_context_info285 GB886378859788596
etendopg_defaultpg_temp_7ad_context_info62 GB381923815738156
etendopg_defaultpg_temp_5ad_context_info31 GB253472533425333
etendopg_defaultpg_temp_3ad_context_info31 GB252832527725276
etendopg_defaultpg_temp_4ad_context_info31 GB126011260112601
etendopg_defaultpublicfact_acct13 GB5060418321564213
fact_acct(TOAST)
etendopg_defaultpublicpsat_checklist_result4223 MB72109413021591917
psat_checklist_result(TOAST)
etendopg_defaultpg_catalogpg_class4050 MB60286134256004221874672818741375
etendopg_defaultpublicadvcrm_activity3456 MB21513591302877158
advcrm_activity(TOAST)
etendopg_defaultprofilelast_stat_database2167 MB1015889292
etendopg_defaultpublicc_invoice1960 MB863286621733097928997062
c_invoice(TOAST)
etendopg_defaultpublicm_inout1943 MB16572586768254169
m_inout(TOAST)
etendopg_defaultpublicad_audit_trail1525 MB3150136768
ad_audit_trail(TOAST)
etendopg_defaultpublicm_product663 MB1875502826667483
m_product(TOAST)
etendopg_defaultpublicpsat_request570 MB21750141700851
psat_request(TOAST)
etendopg_defaultprofilelast_stat_tablespaces568 MB363304646
last_stat_tablespaces(TOAST)
etendopg_defaultpublicadvcrm_activity_log459 MB754336999
advcrm_activity_log(TOAST)
etendopg_defaultpublicc_invoiceline441 MB821142037225348
c_invoiceline(TOAST)
etendopg_defaultpublicc_bpartner410 MB3242329536179683118
c_bpartner(TOAST)

Top tables by blocks fetched

DBTablespaceSchemaTableHeapIxTOASTTOAST-Ix
Blks%TotalBlks%TotalBlks%TotalBlks%Total
etendopg_defaultpg_temp_9ad_context_info4247252826.65
etendopg_defaultpg_temp_8ad_context_info3260890720.46
etendopg_defaultpublicc_invoice39740432.4976942114.83
etendopg_defaultpg_temp_7ad_context_info61127013.84
etendopg_defaultpublicfin_payment_schedule8799480.5525273321.59
etendopg_defaultprofilelast_stat_tables32646812.051051820.07
etendopg_defaultpg_temp_4ad_context_info33520222.10
etendopg_defaultpg_temp_5ad_context_info27209221.71
etendopg_defaultpg_temp_3ad_context_info27144031.70
etendopg_defaultpublicfact_acct25221681.58159060.01
etendopg_defaultpublicpsat_activity_materials109450.0123948351.50
etendopg_defaultpg_catalogpg_class11096150.7012826700.80
etendopg_defaultpublicm_product6927330.4311141000.70
etendopg_defaultpublicad_textinterfaces14956860.942442280.15
etendopg_defaultpublicc_debt_payment4692340.297899100.50
etendopg_defaultpublicc_bpartner6604180.415490390.34
etendopg_defaultpublicm_productprice3107520.208860070.56
etendopg_defaultpublicc_elementvalue4112570.267798940.49
etendopg_defaultpg_catalogpg_attribute4775150.307003790.44
etendopg_defaultpublicad_tab6581600.414594280.29

Top tables by blocks read

DBTablespaceSchemaTableHeapIxTOASTTOAST-IxHit(%)
Blks%TotalBlks%TotalBlks%TotalBlks%Total
etendopg_defaultpublicad_audit_trail13018728.3710250.2243.70
etendopg_defaultpublicfact_acct6728314.6612890.2897.30
etendopg_defaultpublicad_image7840.17170.005636712.288850.1965.93
etendopg_defaultpublicpsat_checklist_result150073.2735030.7696.98
etendopg_defaultpublicc_invoiceline141083.075870.1380.27
etendopg_defaultpublicc_invoice58311.2761541.3499.90
etendopg_defaultpublicc_invoicelinetax80521.75620.0160.67
etendopg_defaultpg_temp_7ad_context_info80441.750.25
etendopg_defaultpublicc_orderlinetax73571.601900.0467.52
etendopg_defaultpublicad_session_usage_audit46461.017620.1787.63
etendopg_defaultpublicfin_payment_schedule38000.835020.1199.87
etendopg_defaultpublicfin_payment31610.691910.0480.62
etendopg_defaultpublicfin_payment_scheduledetail27210.595930.1391.42
etendopg_defaultpublicm_inout30110.662790.0699.52
etendopg_defaultpublicad_process_run26940.591210.03110.00100.0095.75
etendopg_defaultpublicc_invoicetax24940.542630.0682.41
etendopg_defaultpublicfin_payment_detail19060.422380.0561.77
etendopg_defaultpublicc_orderline80.0019140.4299.69
etendopg_defaultpg_catalogpg_attribute14310.314860.1199.84
etendopg_defaultprofilesample_stat_tables17790.391080.0296.09

Top DML tables

DBTablespaceSchemaTableInsUpdDelUpd(HOT)SeqScanSeqFetIxScanIxFet
etendopg_defaultpublicc_invoice9289970628639425663286621733097
c_invoice(TOAST)
etendopg_defaultpg_temp_9ad_context_info100923100922100942100941
etendopg_defaultpg_temp_8ad_context_info88597885968863788636
etendopg_defaultprofilelast_stat_indexes54119133054119218586590434564328397
etendopg_defaultpg_temp_7ad_context_info38157381563819238191
etendopg_defaultprofilelast_stat_tables328883302328883618652906876812870602
etendopg_defaultpg_temp_5ad_context_info25334253332534725346
etendopg_defaultpg_temp_3ad_context_info25277252762528325282
etendopg_defaultpg_catalogpg_attribute242032420392949892964071255014
etendopg_defaultpg_temp_4ad_context_info12601126011260112601
etendopg_defaultpg_catalogpg_statistic16333135192167469941381586
pg_statistic(TOAST)236123661372321207
etendopg_defaultprofilelast_stat_user_functions8257931825742383241607
last_stat_user_functions(TOAST)
etendopg_defaultpg_catalogpg_class1874672818741375602817631987613425600422
etendopg_defaultpg_catalogpg_depend45854585122058094417149902
etendopg_defaultprofilesample_stat_tables33023300256059221443485
etendopg_defaultpg_catalogpg_type2159215912306329466687960
etendopg_defaultprofilesample_statements14461433495096031131433
sample_statements(TOAST)
etendopg_defaultprofilesample_stat_indexes12791285222086441511356
postgrespg_defaultpg_catalogpg_attribute121512153781182302551272
etendopg_defaultpublicad_session_usage_audit1786538020415422543
ad_session_usage_audit(TOAST)

Top tables by updated/deleted tuples

DBTablespaceSchemaTableUpdUpd(HOT)DelVacuumAutoVacuumAnalyzeAutoAnalyze
etendopg_defaultpublicc_invoice2899706223123
c_invoice(TOAST)
etendopg_defaultpg_temp_9ad_context_info100922
etendopg_defaultpg_temp_8ad_context_info88596
etendopg_defaultprofilelast_stat_indexes1330254119264723
etendopg_defaultpg_temp_7ad_context_info38156
etendopg_defaultprofilelast_stat_tables33023632888264723
etendopg_defaultpg_temp_5ad_context_info25333
etendopg_defaultpg_temp_3ad_context_info25276
etendopg_defaultpg_catalogpg_attribute24203111
etendopg_defaultpg_catalogpg_statistic16333135191
pg_statistic(TOAST)23664
etendopg_defaultpg_temp_4ad_context_info12601
etendopg_defaultprofilelast_stat_user_functions931428257264723
last_stat_user_functions(TOAST)
etendopg_defaultpg_catalogpg_class672813751874111
etendopg_defaultpg_catalogpg_depend458511
etendopg_defaultprofilesample_stat_tables330012
etendopg_defaultpg_catalogpg_type2159111
etendopg_defaultpublicad_session17211687114
ad_session(TOAST)
etendopg_defaultprofilesample_statements143312
sample_statements(TOAST)
etendopg_defaultprofilesample_stat_indexes12852
postgrespg_defaultpg_catalogpg_attribute1215111

Top growing tables

DBTablespaceSchemaTableSizeGrowthInsUpdDelUpd(HOT)
etendopg_defaultpg_temp_9ad_context_info6720 kB6720 kB100923100922
etendopg_defaultpg_temp_8ad_context_info5888 kB5888 kB8859788596
etendopg_defaultpg_temp_7ad_context_info2544 kB2544 kB3815738156
etendopg_defaultprofilesample_stat_indexes1432 kB192 kB12791285
etendopg_defaultprofilesample_stat_user_functions560 kB88 kB907830
etendopg_defaultprofilesample_stat_tables_total336 kB56 kB160184
etendopg_defaultpg_catalogpg_attribute4408 kB48 kB2420324203
etendopg_defaultprofilesample_stat_database232 kB48 kB6868
etendopg_defaultprofilesample_stat_cluster56 kB32 kB1214
etendopg_defaultprofilesample_stat_indexes_total96 kB32 kB6464
etendopg_defaultprofilesample_statements_total136 kB32 kB3639
sample_statements_total(TOAST)
etendopg_defaultprofilesample_stat_user_func_total56 kB32 kB2428
etendopg_defaultpg_temp_4ad_context_info8192 bytes8192 bytes103102

Top indexes by blocks fetched

DBTablespaceSchemaTableIndexScansBlks%Total
etendopg_defaultpublicfin_payment_schedulefin_paym_sch_inv_idx83599725152921.58
etendopg_defaultpublicpsat_activity_materialspsat_activity_mater_produni2013123936271.50
etendopg_defaultpublicc_invoicec_invoice_key29330417703251.11
etendopg_defaultpg_catalogpg_classpg_class_oid_index58542711932000.75
etendopg_defaultpublicm_productm_product_key55023111049600.69
etendopg_defaultpublicc_invoicec_invoice_bpartner339549912140.62
etendopg_defaultpublicm_productpricem_productprice_key2932818822410.55
etendopg_defaultpublicc_invoicec_invoice_client_org_date_doc8816940.55
etendopg_defaultpublicc_elementvaluec_elementvalue_key3894297790990.49
etendopg_defaultpublicm_product_trlm_product_trl_product_langu_un7117737120690.45
etendopg_defaultpublicc_invoicec_invoice_posted13906996910.44
etendopg_defaultpublicc_invoicec_invoice_paid6921460.43
etendopg_defaultpg_catalogpg_attributepg_attribute_relid_attnum_index2957236502380.41
etendopg_defaultpublicc_invoicec_invoice_salesrep6460320.41
etendopg_defaultpublicc_invoicec_invoice_updated5952730.37
etendopg_defaultpublicc_invoicec_invoice_docno135863590.37
etendopg_defaultpublicc_debt_paymentc_debt_payment_invoice_idx2767545548340.35
etendopg_defaultpublicc_bpartnerc_bpartner_key2250974521510.28
etendopg_defaultpublicad_tabad_tab_window2232874511730.28
etendopg_defaultpublicpsat_checklist_resultpsat_chcklist_res_result_uk6803662860.23

Top indexes by blocks read

DBTablespaceSchemaTableIndexScansBlk Reads%TotalHits(%)
etendopg_defaultpublicpsat_checklist_resultpsat_chcklist_res_result_uk68033360.7399.09
etendopg_defaultpublicc_invoicec_invoice_client_org_date_doc14070.3199.84
etendopg_defaultpublicc_invoicec_invoice_paid11730.2699.83
etendopg_defaultpublicc_orderlinec_orderline_order21045079940.2299.69
etendopg_defaultpublicad_image(TOAST)pg_toast_74472_index137718850.1997.95
etendopg_defaultpublicc_invoicec_invoice_posted13908810.1999.87
etendopg_defaultpublicad_audit_trailad_audit_trail_pk8730.1971.65
etendopg_defaultpublicc_orderlinec_orderline_key44168150.1893.89
etendopg_defaultpublicm_inoutlinem_inoutline_orderline47057920.1794.41
etendopg_defaultpublicc_invoicec_invoice_docno137140.1699.88
etendopg_defaultpublicc_invoicec_invoice_updated5590.1299.91
etendopg_defaultpublicad_session_usage_auditad_session_usage_audit_key5270.1189.39
etendopg_defaultpublicfact_acctfact_acct_dateacct585250.1190.01
etendopg_defaultpublicfact_acctfact_acct_account1795200.1184.27
etendopg_defaultpublicc_invoicelinec_invoiceline_inoutline5953810.0878.70
etendopg_defaultpublicc_invoicec_invoice_bpartner339543540.0899.96
etendopg_defaultpublicadvcrm_activity_relatedadvcrm_unique_project33460.0866.70
etendopg_defaultpublicc_invoicec_invoice_key2933043440.0799.98
etendopg_defaultpublicc_invoicec_invoice_salesrep3190.0799.95
etendopg_defaultpublicfin_payment_scheduledetailfin_pay_scheduledetail_in13613070.0792.52

Top growing indexes

DBTablespaceSchemaTableIndexIndexTable
SizeGrowthInsUpdDel
etendopg_defaultprofilesample_statementsix_sample_stmts_qid888 kB288 kB10811064
etendopg_defaultpublicc_invoicec_invoice_posted2024 kB88 kB9289908
etendopg_defaultpublicc_invoicec_invoice_salesrep1936 kB64 kB9289908
etendopg_defaultpublicc_invoicec_invoice_paid2000 kB32 kB9289908
etendopg_defaultprofilesample_stat_user_functionspk_sample_stat_user_functions240 kB32 kB242225
etendopg_defaultpublicc_invoicec_invoice_updated1624 kB16 kB9289908
etendopg_defaultprofilelast_stat_tablespk_last_stat_tables240 kB8192 bytes32888326632888
etendopg_defaultpg_catalogpg_attributepg_attribute_relid_attnum_index680 kB8192 bytes2420324203
etendopg_defaultpg_catalogpg_typepg_type_oid_index80 kB8192 bytes21552157
postgrespg_defaultpg_catalogpg_attributepg_attribute_relid_attnam_index120 kB8192 bytes12151215
etendopg_defaultprofilesample_statements_totalpk_sample_statements_total40 kB8192 bytes3036
etendopg_defaultpublicfin_payment_schedulefin_paym_sch_inv_idx2048 kB8192 bytes17194

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_doc3976 kB-48 kB9289908
etendopg_defaultpublicc_invoicec_invoice_paid2000 kB32 kB9289908
etendopg_defaultpublicc_invoicec_invoice_updated1624 kB16 kB9289908
etendopg_defaultpublicc_invoicec_invoice_ad_user1576 kB-32 kB9289908
etendopg_defaultpublicc_invoicec_invoice_bp_extref_idx8192 bytes9289908
etendopg_defaultpublicc_invoicec_invoice_salesrep1936 kB64 kB9289908
etendopg_defaultpublicad_process_runad_process_run_ould_be_killed8192 bytes266266315
postgrespg_defaultpg_catalogpg_classpg_class_tblspc_relfilenode_index16 kB107259107

User function statistics

Top functions by total time

DBSchemaFunctionExecutionsTime (s)
TotalSelfMeanMean self
etendopublicad_column_identifier8118755.2954.340.0010.001
etendoprofiletake_sample2316.670.020.7250.001
etendoprofiletake_sample_subset2316.660.060.7240.003
etendoprofiletake_sample2316.601.680.7220.073
etendopublicad_istriggerenabled116285110.0810.080.0000.000
etendoprofilecollect_obj_stats239.182.780.3990.121
etendopublicad_org_isinnaturaltree3610008.252.080.0000.000
etendoprofiledblink6217.937.930.0130.013
etendopublicad_isorgincluded4646636.336.330.0000.000
etendoprofilesample_dbobj_delta233.523.520.1530.153
etendopublicto_char24436382.002.000.0000.000
etendopublicc_invoice_post161.320.340.0820.021
etendopublicobequals12231891.291.290.0000.000
etendopublicc_invoice_post0151.190.000.0790.000
etendoprofilecollect_pg_stat_statements_stats220.920.370.0420.017
etendopublicto_number4418660.810.810.0000.000
etendopublicaprm_ispaymentconfirmed99890.810.810.0000.000
etendopublicto_char2528170.800.800.0000.000
etendopublicad_extension_point_handler380.750.020.0200.001
etendopublicprouti_qtyremainingorderline47360.360.360.0000.000

Top functions by executions

DBSchemaFunctionExecutionsTime (s)
TotalSelfMeanMean self
etendopublicto_char24436382.002.000.0000.000
etendopublicobequals12231891.291.290.0000.000
etendopublicad_istriggerenabled116285110.0810.080.0000.000
etendopublicad_isorgincluded4646636.336.330.0000.000
etendopublicto_number4418660.810.810.0000.000
etendopublicad_org_isinnaturaltree3610008.252.080.0000.000
etendopublicto_char2528170.800.800.0000.000
etendopublicto_char1833770.280.280.0000.000
etendopublicad_column_identifier8118755.2954.340.0010.001
etendopublicround395620.030.030.0000.000
etendopublicto_char192320.060.060.0000.000
etendopublicsubstract_days127830.010.010.0000.000
etendopublicadd_days114710.010.010.0000.000
etendopublicaprm_ispaymentconfirmed99890.810.810.0000.000
etendopublicuuid_generate_v488920.100.100.0000.000
etendopublicto_date48680.020.020.0000.000
etendopublicprouti_qtyremainingorderline47360.360.360.0000.000
etendopubliclowerequaltimestamp36950.020.010.0000.000
etendopublicget_uuid29640.200.100.0000.000
etendopublicobmtr30_getcountryname25790.150.150.0000.000

Top trigger functions by total time

DBSchemaFunctionExecutionsTime (s)
TotalSelfMeanMean self
etendopublicc_invoice_trg28997923.3418.340.0000.000
etendopublicc_invoice_trg22899796.604.560.0000.000
etendopubliceinv_gene_chk_restrictions_trg2899704.482.740.0000.000
etendopublicpruti_inherit_invoice_contact2899793.942.690.0000.000
etendopublicau_advcrm_activity_trg900.280.260.0030.003
etendopublicau_c_bpartner_trg310.230.230.0070.007
etendopublicc_orderline_trg21430.220.090.0020.001
etendopublicc_invoiceline_trg2780.160.060.0020.001
etendopublicau_m_product_trg50.110.110.0220.021
etendopublicad_preference_mod_trg2720.090.080.0000.000
etendopublicau_psat_request_trg150.070.070.0050.004
etendopublicc_orderlinetax_trg540.070.040.0010.001
etendopublicad_process_request_trg3150.060.040.0000.000
etendopublicc_invoicelinetax_trg270.060.020.0020.001
etendopublicc_invoiceline_trg3750.050.050.0010.001
etendopublicc_orderline_trg1430.050.050.0000.000
etendopubliccus_act_log_desc_ol_trg180.050.020.0030.001
etendopublicm_inoutline_trg240.050.020.0020.001
etendopublicc_orderline2_trg1360.030.030.0000.000
etendopublicadvcrm_create_activity780.030.010.0000.000

Vacuum-related statistics

Top tables by vacuum operations

DBTablespaceSchemaTableVacuum countAutovacuum countInsUpdDelUpd(HOT)
etendopg_defaultprofilelast_stat_tables263288833023288836
etendopg_defaultprofilelast_stat_indexes26541191330541192
etendopg_defaultprofilelast_stat_user_functions268257931825742
etendopg_defaultpublicc_invoice23928997062
etendopg_defaultpublicad_ep_instance_para3171171
postgrespg_defaultpg_catalogpg_type1157157
postgrespg_defaultpg_catalogpg_attribute112151215
postgrespg_defaultpg_catalogpg_class1107388107129
postgrespg_defaultpg_catalogpg_statistic1478340
etendopg_defaultpg_catalogpg_type121592159
etendopg_defaultpg_catalogpg_attribute12420324203
etendopg_defaultpg_catalogpg_class11874672818741375
etendopg_defaultpg_catalogpg_index1527527
etendopg_defaultpg_catalogpg_statistic11633313519
etendopg_defaultpublicad_pinstance121427141
etendopg_defaultpublicad_process_run1306306315
etendopg_defaultpublicm_stock_proposed14
etendopg_defaultprofilelast_stat_database19292

Top tables by analyze operations

DBTablespaceSchemaTableAnalyze countAutoanalyze countInsUpdDelUpd(HOT)
etendopg_defaultprofilelast_stat_tables47233288833023288836
etendopg_defaultprofilelast_stat_indexes4723541191330541192
etendopg_defaultprofilelast_stat_user_functions47238257931825742
etendopg_defaultpublicc_invoice123928997062
etendopg_defaultprofilelast_stat_tablespaces244646
etendopg_defaultpublicad_session1143417211687
etendopg_defaultpublicad_process_request151314309
etendopg_defaultpublicad_ep_instance_para4171171
etendopg_defaultprofilelast_stat_database139292
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_replication_origin3
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_doc89 MB233974 kB23 MB
etendopg_defaultpublicc_invoicec_invoice_key62 MB232753 kB23 MB
etendopg_defaultpublicc_invoicec_invoice_bpartner57 MB232541 kB23 MB
etendopg_defaultpublicc_invoicec_invoice_docno48 MB232151 kB23 MB
etendopg_defaultpublicc_invoicec_invoice_posted44 MB231937 kB23 MB
etendopg_defaultpublicc_invoicec_invoice_paid43 MB231933 kB23 MB
etendopg_defaultpublicc_invoicec_invoice_salesrep42 MB231890 kB23 MB
etendopg_defaultpublicc_invoicec_invoice_updated36 MB231592 kB23 MB
etendopg_defaultpublicc_invoicec_invoice_ad_user35 MB231558 kB23 MB
etendopg_defaultpublicc_invoicec_invoice_order30 MB231314 kB23 MB
etendopg_defaultprofilelast_stat_indexespk_last_stat_indexes10 MB26392 kB1529 kB
etendopg_defaultprofilelast_stat_tablespk_last_stat_tables5920 kB26226 kB1198 kB
etendopg_defaultpg_catalogpg_attributepg_attribute_relid_attnam_index1040 kB11040 kB4408 kB
etendopg_defaultpg_catalogpg_attributepg_attribute_relid_attnum_index680 kB1680 kB4408 kB
etendopg_defaultpg_catalogpg_statisticpg_statistic_relid_att_inh_index376 kB1376 kB4640 kB
etendopg_defaultpg_catalogpg_statistic(TOAST)pg_toast_2619_index336 kB485 kB3752 kB
etendopg_defaultpublicad_process_runad_process_run_ad_prequest_id320 kB1320 kB10 MB
etendopg_defaultpublicad_process_runad_process_run_key312 kB1312 kB10 MB
etendopg_defaultpg_catalogpg_classpg_class_relname_nsp_index184 kB1184 kB688 kB
etendopg_defaultpublicc_invoicec_invoice_bp_extref_idx184 kB238192 bytes23 MB

Top tables by dead tuples ratio

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

DBSchemaTableLiveDead%DeadLast AVSize
etendopg_temp_8ad_context_info188596995888 kB
etendopg_temp_9ad_context_info1100922996720 kB
etendoprofilesample_stat_tables241803140117040 kB
etendopublicad_process_run5131533911 MB
etendopublicfin_payment_schedule6059823015 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_info1885961771931995888 kB
etendopg_temp_9ad_context_info11009222018451996720 kB
etendopublicad_process_run513153320832026-07-14 19:14:39.949916+0211 MB
etendoprofilesample_stat_tables241803140105932026-07-14 23:00:44.427089+027040 kB
etendopublicfin_payment_schedule60598234102025-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-13 05:00:04.159673+02
pg_conf_load_time2026-07-14 05:00:04.191608+022026-07-14 06:00:01+02
pg_postmaster_start_time2026-07-13 05:00:04.286006+02
pg_postmaster_start_time2026-07-14 05:00:04.325131+022026-07-14 06:00:01+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