Re: select few fields as a single field

From: Jochem van Dieten <jochemd(at)oli(dot)tudelft(dot)nl>
To: romio(at)il(dot)aduva(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: select few fields as a single field
Date: 2002-01-10 13:00:23
Message-ID: 3C3D9067.6050504@oli.tudelft.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Roman Gavrilov wrote:

> Ok I think after all I will use view.
> However i'll have to join many tables in the view want it slow the
> performance dramatically ?
> I run explain on the view and got
> explain select event_id from get_event;
> NOTICE: QUERY PLAN:
> Merge Join (cost=376812.28..389383.78 rows=10000000 width=60)
> when the biggest table contains 40 records only
>
> when explain select event_id from intelligence; :
> NOTICE: QUERY PLAN:
> Seq Scan on intelligence (cost=0.00..20.00 rows=1000 width=4)

How acurate are these numbers for the amount of returned rows? Could you
run a VACUUM ANALYZE and try again?

Jochem

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2002-01-10 13:05:44 Re: Query planner isn't using my indices
Previous Message Alaric B. Snell 2002-01-10 12:51:47 Re: caching subtotals: update vs sum -- aaugh!