Re: How do I disable: Adding missing FROM-clause - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: How do I disable: Adding missing FROM-clause
Date
Msg-id 20040924085151.GB1272@svana.org
Whole thread Raw
In response to Re: How do I disable: Adding missing FROM-clause  (Sebastian Böck <sebastianboeck@freenet.de>)
Responses Re: How do I disable: Adding missing FROM-clause  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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@svana.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.

Attachment

pgsql-general by date:

Previous
From: "Christian Enklaar"
Date:
Subject: Re: Comparing a varchar of length > 32
Next
From: David Helgason
Date:
Subject: Large arrays give long lag on server side before command executes