Konstantin Danilov <danilov_konst(at)list(dot)ru> writes:
> Do you know how many times can JOIN be used in a query? How many JOINs does PostgreSQL support in ONE query?
The theoretical upper limit would be around 21000, I think, due to
rangetable indexes being 16 bits. Did you need more?
regards, tom lane