Re: How do I disable: Adding missing FROM-clause

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Sebastian Böck <sebastianboeck(at)freenet(dot)de>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, terry(at)ashtonwoodshomes(dot)com, "Postgres (E-mail)" <pgsql-general(at)postgresql(dot)org>
Subject: Re: How do I disable: Adding missing FROM-clause
Date: 2004-09-24 08:51:53
Message-ID: 20040924085151.GB1272@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Sep 24, 2004 at 10:41:04AM +0200, Sebastian Böck wrote:
> Thought about this when reading
> http://en.wikipedia.org/wiki/PostgreSQL
>
> This site says:
> | A typical search might look like this:
> |
> | SELECT u.* FROM user u, address a WHERE a.city='New York'
> | AND a.user_name=u.user_name
> |
> | PostgreSQL can explicitly define the relationship between users
> | and addresses. Once defined, the address becomes a property of
> | the user, so the search can be greatly simplified to:
> |
> | SELECT * FROM user WHERE address.city='New York'
>
> This example isn't working for me "as it is".
> What relationships have to be defined and how?
> Normal foreign keys aren't working.

I'm pretty sure this is wrong. I've never seen anything in PostgreSQL
that might do what that bit says. There are some other inaccuracies too
I think.
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Helgason 2004-09-24 09:09:11 Large arrays give long lag on server side before command executes
Previous Message Sebastian Böck 2004-09-24 08:41:04 Re: How do I disable: Adding missing FROM-clause