<div dir="ltr">To answer my own questions: it should have been UNION *ALL*<div>Since UNION will also check for duplicates which is not needed in my case (sticking not next to monitor)</div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, 10 Oct 2015 at 12:28 Tom van Tilburg <<a href="mailto:tom.van.tilburg@gmail.com">tom.van.tilburg@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I have spread my large set of pointcloud files over several tables, split into logical tiles. Now I would like to have 1 view where all these tables are unioned together, so I don't have to bother to find out which table I have to use for every new query.<div>For this I do:</div><div><br></div><div><div>CREATE OR REPLACE VIEW vw_pointcloud AS </div><div>   SELECT id, pa</div><div>   FROM pointcloud_1</div><div>   UNION</div><div>   SELECT id, pa</div><div>   FROM pointcloud_2;</div></div><div><br></div><div>Postgres is hitting back though with:</div><div><div>  ERROR:  could not identify an equality operator for type pcpatch</div><div>  LINE 1: SELECT id, pa</div></div><div><br></div><div>I remember I have seen this issue before on a mailinglist, but can't find it anymore. Is it solvable with casting back and forth to other types for instance?</div></div><div dir="ltr"><div><br></div><div>Tom</div></div></blockquote></div>