From: Gaetano Mendola <mendola@bigfoot.com>
To: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Cc: Palle Girgensohn <girgen@pingpong.net>
Subject: Re: avoiding seqscan?
Date: Mon, 29 Sep 2003 00:54:43 +0200
Message-ID: <3F7766B3.4030705@bigfoot.com> (raw)
In-Reply-To: <95900000.1064782481@palle.girgensohn.se>
References: <95900000.1064782481@palle.girgensohn.se>
Palle Girgensohn wrote:
> uu=# explain analyze
> uu-# select lower(substr(p.last_name,1,1)) as letter, count(*)
> uu-# FROM course c join group_data gd on (c.active_group_id =
> gd.this_group_id)
> uu-# join person p on (gd.item_text = p.userid)
> uu-# join dyn_field_person dfp on (dfp.extern_item_id = 10 and
> dfp.giver=c.giver)
> uu-# join dyn_field_content_person dfcp on (dfp.id =
> dfcp.dyn_field_id and dfcp.userid=p.userid)
> uu-# left outer join participant pt on (pt.userid = p.userid and
> pt.course_id = 707)
> uu-# WHERE c.id = 707
> uu-# group by 1
> uu-# ;
Why are you using this form of join ? When and if is not necessary use
the implicit form.
Regards
Gaetano Mendola
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: mendola@bigfoot.com, girgen@pingpong.net
Subject: Re: avoiding seqscan?
In-Reply-To: <3F7766B3.4030705@bigfoot.com>
References: <95900000.1064782481@palle.girgensohn.se> <3F7766B3.4030705@bigfoot.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox