From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Phil Mayers <p(dot)obfuscate(dot)mayers(at)ic(dot)ac(dot)uk> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: FULL JOIN: macaddr equality is not a mergejoinable join |
Date: | 2001-09-27 19:33:18 |
Message-ID: | 200109271933.f8RJXII16215@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I think this will be fixed in 7.2 because we have more cidr/inet
comparison operators.
> Try this:
>
> create table interface ( mac macaddr, primary key(mac) );
>
> insert into interface (mac) values ('00:11:22:33:44:55');
> insert into interface (mac) values ('00:11:22:33:44:5a');
> insert into interface (mac) values ('00:11:22:33:44:5f');
>
> create table host (
> mac macaddr,
> ip inet,
> foreign key (mac) references interface,
> primary key (ip)
> );
>
> insert into host ( mac, ip ) values ('00:11:22:33:44:55', '192.168.1.1');
> insert into host ( mac, ip ) values (null, '192.168.1.2');
>
> select * from interface full join host using (mac);
> ERROR: FULL JOIN is only supported with mergejoinable join conditions
>
>
> If you replace the "macaddr" columns with "varchar(17)":
>
> mac | ip
> -------------------+-------------
> 00:11:22:33:44:55 | 192.168.1.1
> 00:11:22:33:44:5a |
> 00:11:22:33:44:5f |
> | 192.168.1.2
>
>
> Why? This seems like a bug. Running on postgresql 7.1.3, compiled from the
> source RPM on the download site. If people could CC any replies to my email,
> I'd be grateful.
>
>
> --
> Regards,
> Phil
>
> +------------------------------------------+
> | Phil Mayers |
> | Network & Infrastructure Group |
> | Information & Communication Technologies |
> | Imperial College |
> +------------------------------------------+
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2001-09-27 19:35:09 | Re: How to make a REALLY FAST db server? |
Previous Message | Mitch Vincent | 2001-09-27 19:26:50 | Re: backend stalls |