X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D451152835 for ; Sun, 26 Jun 2005 14:42:14 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 97476-02 for ; Sun, 26 Jun 2005 17:42:06 +0000 (GMT) Received: from ra.sai.msu.su (ra.sai.msu.su [158.250.29.2]) by svr1.postgresql.org (Postfix) with ESMTP id E188D528AD for ; Sun, 26 Jun 2005 14:41:58 -0300 (ADT) Received: from ra (ra [158.250.29.2]) by ra.sai.msu.su (8.13.4/8.13.4) with ESMTP id j5QHfpvw025365; Sun, 26 Jun 2005 21:41:52 +0400 (MSD) Date: Sun, 26 Jun 2005 21:41:51 +0400 (MSD) From: Oleg Bartunov X-X-Sender: megera@ra.sai.msu.su To: PFC Cc: pgsql-sql@postgresql.org, teodor@sigaev.ru Subject: Re: assorted problems with intarray and other GiST contribs. In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.329 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE X-Spam-Level: X-Archive-Number: 200506/308 X-Sequence-Number: 21909 On Sun, 26 Jun 2005, PFC wrote: > > Hello ! > > I'm using postgresql 8.0.1-r2 on gentoo linux. > So, here are the problems : > > ************************************ > * int_array_aggregate crashes I don't remember this function :) > * ltree > > First of all congratulations for this extremely useful datatype and > assorted indexes, it really rocks and makes SQL tree handling from nightmare > to fun. > > It would be nice to have functions to : > - know the length of a ltree (ie. number of elements) int4 nlevel(ltree) - returns level of the node. > - access it like an array (ie. get element N). subltree, subpath > This is to be able to iterate over the elements and fetch each of > them to get the list of rows which make up a path upto a given object in my > tree. > > Also a function returning the comon prefix between two ltrees would > be really useful. ltree lca(ltree,ltree,...) (up to 8 arguments) ltree lca(ltree[]) Returns Lowest Common Ancestor (lca) Have you read README.ltree ? > > > Thanks and sorry to come bother you ! > Regards, > PF Caillaud > Regards, Oleg _____________________________________________________________ Oleg Bartunov, sci.researcher, hostmaster of AstroNet, Sternberg Astronomical Institute, Moscow University (Russia) Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/ phone: +007(095)939-16-83, +007(095)939-23-83