Andrei Tchijov <andrei(at)tchijov(dot)com> writes:> SQL (Please let me know if you need definitions for other tables/views involved):
What we need is a self-contained test case.
regards, tom lane