You are right. I have now corrected that and I believe that should fix the problem.
>
>AFAICS it would not be issuing that unless you'd made template0
>connectable on t
---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match
