Re: Fwd: Bad Join moment - how is this happening?

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Richard Huxton <dev(at)archonet(dot)com>, Jamie Lawrence <postgres(at)jal(dot)org>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Fwd: Bad Join moment - how is this happening?
Date: 2003-07-30 19:38:48
Message-ID: 200307301238.48616.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Richard,

> I think this is the "adding a table into the FROM" feature of PG. You're
> referring to documents.xxx in the select and d.id in the FROM. PG tries to
> help out by adding the table into the FROM for you - hence cartesian join.

Aha! You're right.

> I think you can turn this "feature" off in the config file in 7.3.x (haven't
> checked this though)

Nope, it's a 7.4 feature to turn it off in .conf. Look under the
"compatibility" section (the last section) in 7.4's postgresql.conf.

--
-Josh Berkus
Aglio Database Solutions
San Francisco

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2003-07-30 19:39:35 Re: Fwd: Bad Join moment - how is this happening?
Previous Message Richard Huxton 2003-07-30 19:36:22 Re: Fwd: Bad Join moment - how is this happening?