Re: self referencing table. - Mailing list pgsql-general

From Craig Ringer
Subject Re: self referencing table.
Date
Msg-id 4F19FDB7.7000003@ringerc.id.au
Whole thread Raw
In response to Re: self referencing table.  (David Salisbury <salisbury@globe.gov>)
List pgsql-general
On 19/01/2012 12:57 AM, David Salisbury wrote:
> Think I'll answer myself on this.  I'll join in whatever rows I get from
> the self referential query above to the base table, and include the
> rank column,
> and then figure out some sort of post processing on the resultant view
> ( I hope ).
>
Usually recursive common table expressions (`WITH RECURSIVE') are used
to handle queries on self-referential tables. Have a look in the
documentation for more information.

--
Craig Ringer

pgsql-general by date:

Previous
From: Ralph Graulich
Date:
Subject: Re: comments in argument list of plpgsql get stripped?
Next
From: Brar Piening
Date:
Subject: Re: "could not accept SSPI security context"