Re: man, I feel like a beginner ... - Mailing list pgsql-hackers

From Jan Wieck
Subject Re: man, I feel like a beginner ...
Date
Msg-id 200009130758.CAA01083@jupiter.jw.home
Whole thread Raw
In response to man, I feel like a beginner ...  (The Hermit Hacker <scrappy@hub.org>)
Responses Re: man, I feel like a beginner ...
List pgsql-hackers
The Hermit Hacker wrote:
>
> someone notice anything wrong with this query? :) *slap forehead*
>
> explain
>   SELECT distinct s.gid, s.created , geo_distance(pd.location, '(-90.3690233918754,38.7788148984854)')
>     FROM status s, personal_data pd, relationship_wanted rw , personal_ethnicity pe , personal_religion pr ,
personal_bodytypepb
 
>    WHERE s.active AND s.status != 0
>      AND (s.gid = pd.gid AND pd.gender = 0)
>      AND (s.gid = rw.gid AND rw.gender = 1)
>      AND geo_distance( pd.location, '(-90.3690233918754,38.7788148984854)' ) <= 75
> ORDER BY geo_distance( pd.location, '(-90.3690233918754,38.7788148984854)'),  s.created desc;
   What's the purpose of joining it with "pb"?


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #




pgsql-hackers by date:

Previous
From: Jan Wieck
Date:
Subject: Re: PL/pgSQL does not accept none ASCII identifiers
Next
From: Hannu Krosing
Date:
Subject: Re: Status of new relation file naming