Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 310896328F5 for ; Wed, 7 Apr 2010 02:43:52 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 69638-08 for ; Wed, 7 Apr 2010 05:43:41 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moon.antora.ru (moon.antora.ru [89.111.189.180]) by mail.postgresql.org (Postfix) with ESMTP id 998976324A3 for ; Wed, 7 Apr 2010 02:43:39 -0300 (ADT) Envelope-to: pgsql-sql@postgresql.org Received: from moon.inner.space ([10.1.1.5] helo=moon.antora.ru) by moon.antora.ru with esmtp (Exim 4.67) (envelope-from ) id 1NzO38-0000u3-Ll for pgsql-sql@postgresql.org; Wed, 07 Apr 2010 09:43:38 +0400 Received: from [192.168.1.6] [178.34.156.239] by moon.antora.ru (Axigen) with (DHE-RSA-AES256-SHA encrypted) ESMTPSA id 10771F; Wed, 7 Apr 2010 09:43:37 +0400 Message-ID: <4BBC1B89.5080405@bankir.ru> Date: Wed, 07 Apr 2010 09:43:37 +0400 From: silly sad User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20100111 Thunderbird/3.0 MIME-Version: 1.0 To: Lee Hachadoorian CC: pgsql-sql Subject: Re: Table Design for Hierarchical Data References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Scan-Signature: 02f79edc66b99d2b973e49653c4ca412 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=-10 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 201004/14 X-Sequence-Number: 33941 P.S. almost foget, do not try any oracle-like "tree-jouns" or "special types" or such a crap. your problem as plain as to store a pair of integers (or numerics (i prefer))