From: cojack <xcojack@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: Ltree - how to sort nodes on parent node
Date: Mon, 19 Apr 2010 20:26:59 +0200
Message-ID: <hqi79i$1oel$1@news.hub.org> (raw)
References: <hqh0cs$24bv$1@news.hub.org>
<BB80D221-44CC-4174-9576-5032C0FF398F@solfertje.student.utwente.nl>
> Alban Hertroys wrote:
>
> It would help if you'd show us what result you expect from ordering the
> above.
>
> Most people would order this by path I think. However that doesn't match
> your sort column and I can't think of any method that would give results
> in such an arbitrary order as you seem to be specifying - unless you set
> it by hand like you do.
>
> Alban Hertroys
>
> --
> Screwing up is an excellent way to attach something to the ceiling.
>
>
> !DSPAM:737,4bcc9b1e10415135793547!
>
>
>
Yes, you have right, for example I create new idea of stored data in table:
here is a paste: http://pastebin.com/4pX5cM7j -- never expired link
As you can see, I have noodes with numeric type, those nodes present a sort
position by self. And If I type ORDER BY path; I will have data like I want
to have: http://pastebin.com/R4z01LC5 -- never expired link
Again, you can see now grouped data in his nodes, this is the outputed data
I wanted. If you know better way to make this WITHOUT recursive queries,
give me a hint.
--
Regards,
cojack.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: xcojack@gmail.com
Subject: Re: Ltree - how to sort nodes on parent node
In-Reply-To: <hqi79i$1oel$1@news.hub.org>
References: <hqh0cs$24bv$1@news.hub.org> <BB80D221-44CC-4174-9576-5032C0FF398F@solfertje.student.utwente.nl> <hqi79i$1oel$1@news.hub.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox