explain.depesz.com

PostgreSQL's explain analyze made readable

Result: HnTO

Settings
# exclusive inclusive rows x rows loops node
1. 0.000 0.000 ↓ 0.0 1,000 1

Limit (cost=0..0 rows=0 width=0) (actual rows=1,000 loops=1)

2. 0.000 0.000 ↓ 0.0 1,001 1

Nested Loop (cost=0..0 rows=0 width=0) (actual rows=1,001 loops=1)

3. 0.000 0.000 ↓ 0.0 1,001 1

Nested Loop (cost=0..0 rows=0 width=0) (actual rows=1,001 loops=1)

4. 0.000 0.000 ↓ 0.0 1,001 1

Nested Loop (cost=0..0 rows=0 width=0) (actual rows=1,001 loops=1)

5. 0.000 0.000 ↓ 0.0 1,001 1

Nested Loop (cost=0..0 rows=0 width=0) (actual rows=1,001 loops=1)

6. 0.000 0.000 ↓ 0.0 1,001 1

Nested Loop (cost=0..0 rows=0 width=0) (actual rows=1,001 loops=1)

7. 0.000 0.000 ↓ 0.0 1,007 1

Index Scan using tb_dist_certificate_daily_id_contract_dt_reference_idx on tb_dist_certificate_daily tb_dist_certificate_daily (cost=0..0 rows=0 width=0) (actual rows=1,007 loops=1)

  • Index Cond: ((id_contract = 8) AND (dt_reference = 20,200,603))
8. 0.000 0.000 ↓ 0.0 1 1,007

Index Scan using tb_dist_certificate_pk on tb_dist_certificate tb_dist_certificate (cost=0..0 rows=0 width=0) (actual rows=1 loops=1,007)

  • Index Cond: ((id_customer = tb_dist_certificate_daily.id_customer) AND (id_instrument = tb_dist_certificate_daily.id_instrument) AND (id_contract = 8) AND (id_certificate = tb_dist_certificate_daily.id_certificate))
  • Filter: (NOT is_from_minicom)
9. 0.000 0.000 ↓ 0.0 1 1,001

Index Scan using tb_dist_fund_selected_pk on tb_dist_fund_selected tb_dist_fund_selected (cost=0..0 rows=0 width=0) (actual rows=1 loops=1,001)

  • Index Cond: ((tb_dist_certificate.id_contract = id_contract) AND (id_contract = 8) AND (tb_dist_certificate.id_instrument = id_instrument))
10. 0.000 0.000 ↓ 0.0 1 1,001

Index Scan using tb_core_customer_data_pk on tb_core_customer_data tb_core_customer_data (cost=0..0 rows=0 width=0) (actual rows=1 loops=1,001)

  • Index Cond: ((tb_dist_certificate.id_contract = id_contract) AND (id_contract = 8) AND (tb_dist_certificate.id_customer = id_customer))
11. 0.000 0.000 ↓ 0.0 0 1,001

Materialize (cost=0..0 rows=0 width=0) (actual rows=0 loops=1,001)

12. 0.000 0.000 ↓ 0.0 0 1

Index Scan using tb_dist_certificate_quote_erosion_executed_idx1 on tb_dist_certificate_quote_erosion_executed tb_dist_certificate_quote_erosion_executed (cost=0..0 rows=0 width=0) (actual rows=0 loops=1)

  • Index Cond: ((id_contract = 8) AND (dt_reference = 20,200,603))
13. 0.000 0.000 ↓ 0.0 1 1,001

Index Scan using tb_dist_fund_daily_pk on tb_dist_fund_daily tb_dist_fund_daily (cost=0..0 rows=0 width=0) (actual rows=1 loops=1,001)

  • Index Cond: ((id_contract = 8) AND (id_instrument = tb_dist_certificate_daily.id_instrument) AND (dt_reference = 20,200,603))
14.          

SubPlan (for Nested Loop)

15. 0.000 0.000 ↓ 0.0 1 1,001

Nested Loop (cost=0..0 rows=0 width=0) (actual rows=1 loops=1,001)

16. 0.000 0.000 ↓ 0.0 1 1,001

Index Only Scan using tb_core_customer_broker_accounts_digit on tb_core_customer_broker_accounts tb_core_customer_broker_accounts (cost=0..0 rows=0 width=0) (actual rows=1 loops=1,001)

  • Index Cond: ((vl_account_number = (ceiling(((tb_dist_certificate.cd_account / 10))::double precision))::bigint) AND (vl_account_digit = ("right"(btrim(((tb_dist_certificate.cd_account)::character varying)::text), 1))::smallint) AND (id_customer = tb_core_customer_data.id_customer) AND (id_contract = tb_core_customer_data.id_contract))
17. 0.000 0.000 ↓ 0.0 1 1,001

Index Scan using tb_core_broker_office_pk on tb_core_broker_office tb_core_broker_office (cost=0..0 rows=0 width=0) (actual rows=1 loops=1,001)

  • Index Cond: ((id_contract = tb_core_customer_data.id_contract) AND (id_office = tb_core_customer_broker_accounts.id_office))