I have a function within postgres that recursively attempts to find all child and parent relationships within a table. For reference, I\'ve included the table, and the table