Re: [EXPLAIN] Nested loops

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Reg Me Please <regmeplease(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, "Victor Nawothnig" <victor(dot)nawothnig(at)gmail(dot)com>
Subject: Re: [EXPLAIN] Nested loops
Date: 2009-01-09 19:00:57
Message-ID: 29030.1231527657@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Reg Me Please <regmeplease(at)gmail(dot)com> writes:
> Aggregate (cost=227.59..227.61 rows=1 width=8)
> -> Nested Loop (cost=0.00..227.34 rows=49 width=8)
> -> Seq Scan on T2 (cost=0.00..1.07 rows=6 width=4)
> Filter: (fld1 = 'VEND'::text)
> -> Index Scan using i_T1_partial on T1 (cost=0.00..37.61 rows=8
> width=8)
> Index Cond: ((T1.prod_id = 42) AND (T1.fk1 = T2.fk1))

If those rowcount estimates are accurate, then this is a perfectly good
plan; in fact probably the best you could hope for.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kevin Grittner 2009-01-09 19:12:46 Re: Improving compressibility of WAL files
Previous Message Thomas Pundt 2009-01-09 19:00:36 Re: [EXPLAIN] Nested loops