Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 3138F6323BC for ; Mon, 28 Jun 2010 11:23:00 -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 55968-01 for ; Mon, 28 Jun 2010 14:22:51 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from courils.dreamgnu.com (hosting.dreamgnu.com [213.203.218.158]) by mail.postgresql.org (Postfix) with ESMTP id 0FF9D63225A for ; Mon, 28 Jun 2010 11:22:52 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by courils.dreamgnu.com (Postfix) with ESMTP id 4A81C1C62BB; Mon, 28 Jun 2010 16:22:50 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at hosting.dreamgnu.com Received: from courils.dreamgnu.com ([127.0.0.1]) by localhost (hosting.dreamgnu.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rlwSM106zEVn; Mon, 28 Jun 2010 16:22:47 +0200 (CEST) Received: from [192.168.4.20] (p548DA0DA.dip.t-dialin.net [84.141.160.218]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by courils.dreamgnu.com (Postfix) with ESMTP id 343E61C62B9; Mon, 28 Jun 2010 16:22:47 +0200 (CEST) Message-ID: <4C28B037.9090000@dreamgnu.com> Date: Mon, 28 Jun 2010 16:22:47 +0200 From: ced User-Agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100329) MIME-Version: 1.0 To: Oliveiros d'Azevedo Cristina CC: pgsql-sql@postgresql.org Subject: Re: Outer join construction step :strange results References: <4C28736E.8030409@dreamgnu.com> <72B95859322043DF995F2012194B4754@marktestcr.marktest.pt> <4C288765.8080604@dreamgnu.com> <10B2957382DB4803B59D6ECB7FBCA945@marktestcr.marktest.pt> <4C28A6CF.8040304@dreamgnu.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.79 tagged_above=-5 required=5 tests=BAYES_50=0.8, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201006/116 X-Sequence-Number: 34307 You are right, this is not a correct description. I'll just in the process of creating a test db to clarify my point and to produce the symptom. It'ill me take me some more time, give me an hour or so thks cedric Oliveiros d'Azevedo Cristina wrote: > >>> Can you specify a little more how you represent T1 item sets with this >>> data model? >> (T0.id,T0.fk_T1)=(1,234),(1,235),(1,236) >> 234,235,236 all T1 items and 1 the set of them >>> What exactly represents one row from table T0? A pair (id, fk_T1) ? A >>> set with just one element? >> one item in the set. > > That's what I thought in the first place, actually. > > But then T0.id cannot be a primary key, because IIRC the primary key > integrity constraint doesn't allow repeating of values. > And on the example you 've just posted you have three ID = 1 > > Ain't I Right? > > Also, please, do not forget to CC to list, it's always possible that > someone with more knowledge than me might help you faster > > Best, > Oliveiros >