Re: Wrote a connect-by feature

Поиск
Список
Период
Сортировка
От Bertram Scharpf
Тема Re: Wrote a connect-by feature
Дата
Msg-id 20070811032021.GA27511@bart.bertram-scharpf.homelinux.com
обсуждение исходный текст
Ответ на Re: Wrote a connect-by feature  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: Wrote a connect-by feature
Список pgsql-hackers
Hi,

Am Donnerstag, 09. Aug 2007, 20:44:21 -0400 schrieb Andrew Dunstan:
> Bertram Scharpf wrote:
> >Am Mittwoch, 08. Aug 2007, 14:04:23 +0200 schrieb Bertram Scharpf:
> >>Am Mittwoch, 08. Aug 2007, 00:52:41 +0200 schrieb Bertram Scharpf:
> >>    
> >>>  <http://www.bertram-scharpf.de/tmp/connectby.tar.gz>
> >>>      
> >
> >Nobody's answering just a line. Is it such a bore?
> 
> Isn't connect by the Oracle non-standard way of doing recursive queries? 
> Please review the mailing list archives on this subject.

I sure spent more time and effort on googling for
"recursive" and "hierarchical" than on writing it myself in
the end.

My solution has two features you probably will not find in
any Postgres or other SQL implementation.
 - Inverse lookup. Instead of descending down the tassel   the path leading to the requested element is shown.
 - A boolean field that indicates whether we have reached   the last element of a node. This is useful when drawing   a
tree;you can give a ` instead of a | in front of the   key.
 
     | Bart     false     | Lisa     false     ` Maggie   true
   It takes almost no cost in time and memory.

> Also, many people have their heads down trying to punch out a release, 
> right now.

Wouldn't the release be a good opportunity for providing
this little tool?

Thanks for your answers.

Bertram


-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: regexp_matches and regexp_split are inconsistent
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Wrote a connect-by feature