Joe Conway <mail(at)joeconway(dot)com> writes:> OK, that makes more sense now. But why isn't table2 also in the rule > query's rtable?
It is, but you errored out before getting to it.
regards, tom lane