In the Oracle version we use CONNECT BY to implement hierarchical queries.
PostgreSQL does not have an equivalent feature, so we added tree_sortkeys to acs_objects and certain other object types. These sortkeys allow us to construct hierarchical queries in PostgreSQL.
You should study some of the hierarchical queries that exist in the Oracle version to figure out how to write your query correctly. Be warned that CONNECT BY in 8i has some annoying and confusing restrictions (some of which have been removed in 9i).