Re: [GENERAL] plpgsql handling a set of values

2006-10-12 Thread [EMAIL PROTECTED]
installation: make && make install upgrade issue is tricky. their is a lower burden of backwards compatibility than on in-core features. for example, some of contrib was gpl and is getting moved out/changed. however, the more popular modules, like tsearch are very well supported. I haven't us

Re: [GENERAL] plpgsql handling a set of values

2006-10-11 Thread Merlin Moncure
On 10/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I think you should have a look at the ltree contrib package. It > implements tree-like structures, and probably makes your problem much > simpler. I have never used contrib modules with PostgreSQL - are they easy to handle - I mean, esp

Re: [GENERAL] plpgsql handling a set of values

2006-10-11 Thread [EMAIL PROTECTED]
I think you should have a look at the ltree contrib package. It implements tree-like structures, and probably makes your problem much simpler. I have never used contrib modules with PostgreSQL - are they easy to handle - I mean, especially upon upgrade, etc. ---(end o

Re: [GENERAL] plpgsql handling a set of values

2006-10-10 Thread Alban Hertroys
[EMAIL PROTECTED] wrote: I am writing a plpgsql (PostgreSQL 8.x) trigger function that should do something on a number of records. The records are in a very simple table with two columns - 'parent_id' and 'child_id'. A 'child' can be as well a 'parent' to one or more children - in this case its

Re: [GENERAL] plpgsql handling a set of values

2006-10-09 Thread [EMAIL PROTECTED]
Merlin Moncure wrote: > it's not exactly clear if you are asking about handling children > recursively or not (meaning, you have to find the children's children, > and so on). If so, I'd suggest taking a look here: > http://people.planetpostgresql.org/merlin/index.php?/archives/2-Dealing-With-Re

Re: [GENERAL] plpgsql handling a set of values

2006-10-09 Thread Merlin Moncure
On 10/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I am writing a plpgsql (PostgreSQL 8.x) trigger function that should do something on a number of records. The records are in a very simple table with two columns - 'parent_id' and 'child_id'. A 'child' can be as well a 'parent' to one or mo

[GENERAL] plpgsql handling a set of values

2006-10-09 Thread [EMAIL PROTECTED]
I am writing a plpgsql (PostgreSQL 8.x) trigger function that should do something on a number of records. The records are in a very simple table with two columns - 'parent_id' and 'child_id'. A 'child' can be as well a 'parent' to one or more children - in this case its ID appears as many times