PostgreSQL对联接中的表数有限制吗?

编程入门 行业动态 更新时间:2024-10-27 05:33:50
本文介绍了PostgreSQL对联接中的表数有限制吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

今天,在处理动态查询生成时,我发现mysql对于可以在一个联接中使用多少个表有一个硬性最大限制:

Today when playing around with dynamic query generation I discovered that mysql has a hard maximum limit of how many tables can be used in a join: 61.

我想知道PostgreSQL,PostgreSQL是否有类似的限制?

This lead me to wonder about PostgreSQL, does PostgreSQL have a analogous limit?

注意:我出于好奇而不是不必要地问这个。

推荐答案

没有限制AFAIK。

查询优化器将切换到一旦超出了表的(可配置)限制,便采用了不同的算法。但这仅表示计划是以不同的方式计算的,并不是说语句将失败(尽管这可能不是最快的计划)。

The query optimizer will switch to a different algorithm once a (configurable) limit of tables has been exceeded.But that just means the plan is calculated in a different way, not that the statement will fail (it might not be the fastest plan though).

http:// www。 postgresql/docs/current/static/planner-optimizer.html

更多推荐

PostgreSQL对联接中的表数有限制吗?

本文发布于:2023-10-17 11:02:37,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1500700.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:PostgreSQL   表数有

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!