Re: [HACKERS] Solution for LIMIT cost estimation - Mailing list pgsql-hackers

From Chris
Subject Re: [HACKERS] Solution for LIMIT cost estimation
Date
Msg-id 38A6A472.DC0305B3@bitmead.com
Whole thread Raw
In response to Solution for LIMIT cost estimation  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hannu Krosing wrote:

> If I understood it right, RECURSIVE UNION is a way to query a tree
> structured
> table, whith parent_id's in each child row.
> 
> AFAIK even have it in the TODO list ;)
> 
> The LIMIT there probably limits how many levels down the tree are
> queried.

Original postgres used to be able to do this. The syntax 
"retrieve* from xxx" would keep executing (eg traversing a tree) until
complete. Might be worth checking the original sources when you come to
do this.

-- 
Chris Bitmead
mailto:chris@bitmead.com


pgsql-hackers by date:

Previous
From: Chris
Date:
Subject: Re: [HACKERS] libpq
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Problems compiling latest CVS sources.