Recursive use - Mailing list pgsql-admin

From Alexander Burbello
Subject Recursive use
Date
Msg-id 4523B23A.3000506@yahoo.com.br
Whole thread Raw
Responses Re: Recursive use  (Bruno Wolff III <bruno@wolff.to>)
Re: Recursive use  (Adam Radlowski <adamr@informatyka.gdansk.pl>)
Re: Recursive use  ("Jay A. Kreibich" <jak@uiuc.edu>)
Re: Recursive use  ("Aaron Bono" <postgresql@aranya.com>)
List pgsql-admin
Hi people,

I need to know if Postgres do recursive search and how can I do!
I will explain my problem.


table COOPERATIVE
  code_cooperative int
  code_coo_father int

I can have 3 level by business rules

1 - Father
----- 2 - Children
--------- 3 - Grandchildren


I would like to have a query asking who is father and granfather
select grandfather, father from COOPERATIVE where COD_COOPERATIVE = 3

Do the Postgres can solve this problem?
Could anybody help me?

Thank you

pgsql-admin by date:

Previous
From: "Sebastian Reitenbach"
Date:
Subject: postgres in HA constellation
Next
From: Bruno Wolff III
Date:
Subject: Re: postgres in HA constellation