From: Tim Perdue <tim@perdue.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: Full outer join
Date: Fri, 13 Apr 2001 08:23:22 -0500
Message-ID: <20010413082322.W446@mail.perdue.net> (raw)
In-Reply-To: <3104.987145352@sss.pgh.pa.us>
References: <20010412130950.O446@mail.perdue.net>
<3104.987145352@sss.pgh.pa.us>
On Fri, Apr 13, 2001 at 03:02:32AM -0400, Tom Lane wrote:
> Tim Perdue <tim@perdue.net> writes:
> > However, I keep getting this error, and I don't know what it means:
> > ERROR: FULL JOIN is only supported with mergejoinable join conditions
>
> Works for me:
>
> regression=# create table stats_http_downloads (day int, filerelease_id int);
create table stats_http_downloads (day int, filerelease_id int,group_id int,
downloads int);
> CREATE
> regression=# create table stats_ftp_downloads (day int, filerelease_id int);
create table stats_ftp_downloads (day int, filerelease_id int,group_id int,
downloads int);
> CREATE
> regression=# SELECT * FROM (stats_http_downloads sh
> regression(# FULL OUTER JOIN stats_ftp_downloads sf USING (day,filerelease_id));
> day | filerelease_id
> -----+----------------
> (0 rows)
>
>
> What version are you using?
That's RC3 and RC1.
I wonder if the problem is because stats_http_downloads and
stats_ftp_downloads both have group_id and downloads, which I don't want to
use as part of the join.
Does it still work with those revised CREATE statements?
Tim
--
Founder - PHPBuilder.com / Geocrawler.com
Lead Developer - SourceForge
VA Linux Systems
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: tim@perdue.net, tgl@sss.pgh.pa.us
Subject: Re: Full outer join
In-Reply-To: <20010413082322.W446@mail.perdue.net>
References: <20010412130950.O446@mail.perdue.net> <3104.987145352@sss.pgh.pa.us> <20010413082322.W446@mail.perdue.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox