Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id DC3CBB5DBD4 for ; Mon, 16 May 2011 20:32:11 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 13484-03 for ; Mon, 16 May 2011 23:32:05 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-iw0-f174.google.com (mail-iw0-f174.google.com [209.85.214.174]) by mail.postgresql.org (Postfix) with ESMTP id C4F22B5DBD3 for ; Mon, 16 May 2011 20:32:04 -0300 (ADT) Received: by iwn34 with SMTP id 34so4350087iwn.19 for ; Mon, 16 May 2011 16:32:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=5YI7Km4rfrrH60ueQuXUszRDsHLxkD8ALDU7S/XnRyw=; b=r1/q8+AAa1uRb7EB7Bl4Z/mE8datGzqUOvf7c+EkspuEJDuScNw97p1WHTUiSxQpY3 A8gVop6gMKnSGBwje1+NuRwfqrT6m2GM9glQMPK1KiK3i2t0cU0R+ixfSLoCN4fuQZU2 rgxEIIWUfARRCLzuYH6bh8ybyO0pW5Xr//Txg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=d5DPOtwcJRKNcMhw0fL+9nuQX0u68lee8nW4cq2gIWg1tzT6oskkU6IWXfvuoVBd2u LjFl5CDGIm8VUC1PX9jWAOdGH0msRYsFbxvCfgTSFzCDyUIJiR5zD5XB3meG/qxrytnA c2qYgpiECCYsndIlMXMoGF3swSi5/Kr782/L0= MIME-Version: 1.0 Received: by 10.231.23.65 with SMTP id q1mr3613304ibb.74.1305588724652; Mon, 16 May 2011 16:32:04 -0700 (PDT) Received: by 10.231.33.65 with HTTP; Mon, 16 May 2011 16:32:04 -0700 (PDT) Date: Tue, 17 May 2011 01:32:04 +0200 Message-ID: Subject: 7.2. Table Expressions FULL join is only supported with merge-joinable join conditions From: Grzegorz Szpetkowski To: pgsql-docs@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.888 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RFC_ABUSE_POST=0.001, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: X-Archive-Number: 201105/53 X-Sequence-Number: 6728 http://www.postgresql.org/docs/9.0/static/queries-table-expressions.html "The join condition specified with ON can also contain conditions that do not relate directly to the join. This can prove useful for some queries but needs to be thought out carefully. For example: => SELECT * FROM t1 LEFT JOIN t2 ON t1.num = t2.num AND t2.value = 'xxx';" Can you add information about FULL JOIN in doc there ? I am trying to run such query: SELECT * FROM t1 FULL JOIN t2 ON t1.num = t2.num AND t2.value = 'xxx'; ERROR: FULL JOIN is only supported with merge-joinable join conditions I mean add something like: "Note that you can't use such conditions with FULL JOIN, only equality of selected columns is supported with this type". Thanks, Grzegorz Szpetkowski