Re: Conditional JOINs ? - Mailing list pgsql-general

From Erik Jones
Subject Re: Conditional JOINs ?
Date
Msg-id EF30AEAE-03E9-4161-9993-46A137A1AEC5@myemma.com
Whole thread Raw
In response to Re: Conditional JOINs ?  ("Leon Mergen" <leon@solatis.com>)
Responses Re: Conditional JOINs ?  ("Leon Mergen" <leon@solatis.com>)
List pgsql-general
On Mar 19, 2008, at 9:01 AM, Leon Mergen wrote:

> On 3/19/08, Leon Mergen <leon@solatis.com> wrote:
>> Excuse me for bumping this up again, but I still don't understand how
>> to use this approach to sequentially walk through all different child
>> tables in one select, without having to JOIN these tables all the
>> time
>
> Apparently a UNION all solved this problem -- sorry for the noise.

If you have the child tables INHERITing from the parent, then a simple

SELECT parent.* FROM parent;

would be equivalent to manually spelling out a UNION ALL that
explicitly lists all of the tables.

Erik Jones

DBA | Emma®
erik@myemma.com
800.595.4401 or 615.292.5888
615.292.0777 (fax)

Emma helps organizations everywhere communicate & market in style.
Visit us online at http://www.myemma.com




pgsql-general by date:

Previous
From: "Philippe Lang"
Date:
Subject: contrib/xml2 with 7.4
Next
From: "Martin Gainty"
Date:
Subject: Re: nntp not workiNG