Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news.netfront.net!reversiblemaps.ath.cx!not-for-mail From: Jasen Betts Newsgroups: comp.databases.postgresql Subject: Re: Joining two tables using *two* columns (instead of one) Date: 6 Apr 2012 04:12:03 GMT Organization: Dis (not Dat) Organisation Lines: 23 Message-ID: References: <4f7d9c45$0$1745$426a34cc@news.free.fr> <4f7dc1f1$0$21932$426a74cc@news.free.fr> <9u6gdcF6d7U1@mid.individual.net> NNTP-Posting-Host: 118.90.20.149 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: adenine.netfront.net 1333686636 59532 118.90.20.149 (6 Apr 2012 04:30:36 GMT) X-Complaints-To: news@netfront.net NNTP-Posting-Date: Fri, 6 Apr 2012 04:30:36 +0000 (UTC) X-Face: ?)Aw4rXwN5u0~$nqKj`xPz>xHCwgi^q+^?Ri*+R(&uv2=E1Q0Zk(>h!~o2ID@6{uf8s;a +M[5[U[QT7xFN%^gR"=tuJw%TXXR'Fp~W;(T"1(739R%m0Yyyv*gkGoPA.$b,D.w:z+<'"=-lVT?6 {T?=R^:W5g|E2#EhjKCa+nt":4b}dU7GYB*HBxn&Td$@f%.kl^:7X8rQWd[NTc"P"u6nkisze/Q;8 "9Z{peQF,w)7UjV$c|RO/mQW/NMgWfr5*$-Z%u46"/00mx-,\R'fLPe.)^ User-Agent: slrn/pre1.0.0-18 (Linux) Xref: csiph.com comp.databases.postgresql:337 On 2012-04-06, Mladen Gogala wrote: > On Thu, 05 Apr 2012 23:16:27 +0200, Robert Klemme wrote: > >> Did you look at the execution plan? What does it look like? >> >> Kind regards >> >> robert > > Robert, I don't understand? This looks like a syntax question, why is the > plan important? Did I misunderstand anything here? the syntax is correct. the plan will (for those that can read plans) contain a lot of information not included in the original post such as the number and diversity of the records in the tables involved. also getting a plan proves the syntax was accepted. I suspect the query is missing some constraint. -- ⚂⚃ 100% natural --- Posted via news://freenews.netfront.net/ - Complaints to news@netfront.net ---