Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UAPV3-0001QH-A2 for pgsql-sql@arkaria.postgresql.org; Tue, 26 Feb 2013 18:43:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UAPV2-00005U-7G for pgsql-sql@arkaria.postgresql.org; Tue, 26 Feb 2013 18:43:36 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UAPV1-00005P-Df for pgsql-sql@postgresql.org; Tue, 26 Feb 2013 18:43:35 +0000 Received: from plane.gmane.org ([80.91.229.3]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UAPUz-0002aa-FI for pgsql-sql@postgresql.org; Tue, 26 Feb 2013 18:43:34 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UAPVI-0001uQ-Jy for pgsql-sql@postgresql.org; Tue, 26 Feb 2013 19:43:52 +0100 Received: from ppp-88-217-15-110.dynamic.mnet-online.de ([88.217.15.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Feb 2013 19:43:52 +0100 Received: from spam_eater by ppp-88-217-15-110.dynamic.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Feb 2013 19:43:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-sql@postgresql.org From: Thomas Kellerer Subject: Re: Using Ltree For Hierarchical Structures Date: Tue, 26 Feb 2013 19:43:32 +0100 Lines: 21 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ppp-88-217-15-110.dynamic.mnet-online.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 In-Reply-To: X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org Don Parris wrote on 24.02.2013 23:20: > With many thanks to Misa and others who helped out with my question > about working with hierarchical data, I have now written a blog post > on how I implemented the ltree module to solve my problem. > > http://dcparris.net/2013/02/24/using-ltree-hierarchical-postgresql/ > > Frankly, if you work with hierarchical data, I'm not sure I could > recommend it strongly enough. I should think that even experienced, > advanced SQL gurus would appreciate the simplicity ltree offers, when > compared to the ugly table designs and recursive queries in order to > work with hierarchical structures. > > I really hope this blog post will help others in the same boat. > How do you ensure referential integrity with this approach? (i.e. make sure that all elements from the path column actually point to an existing category) Thomas -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql