Daniel Henrique Alves Lima <email_daniel_h(at)yahoo(dot)com(dot)br> writes:
> I don't think this is possible, but: Is there a efficient way to
> compare if the result of a query is a superset of the result of another ?
Perhaps do "SELECT foo EXCEPT SELECT bar" and see if you get anything?
regards, tom lane