Yes and you could make it even more speedy with the use table partitioning.
http://www.postgresql.org/docs/8.1/interactive/ddl-partitioning.html

> select
>     t1.domain_id as domain_id,
>     t1.mta_id as mta_id,
>     t1.run_id as run_id_1,
>     t1.attribute1 as attribute1_1,
>     t1.attribute2 as attribute2_1,
>     t2.run_id as run_id_2,
>     t2.attribute1 as attribute1_2,
>     t2.attribute2 as attribute2_2
> from
>     t t1
> join t t2 on
>     t1.mta_id = t2.mta_id and
>     t1.domain_id = t2.domain_id and
>     (t1.attribute1 != t2.attribute1 or t1.attribute2 != t2.attribute2)

-- 
cu
Chris

Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Reply via email to