当我尝试使用20000 union执行大型SQL查询时,PostgreSQL退出并显示以下错误:“范围表条目过多”
您能帮我解决这个问题吗?
”从t_58815 AS p0,t_27700 AS p1,t_85383 AS p2,t_27700 AS p3,t_50436 AS p4,t_36552 AS p5那里选择p2.s AS att_X,p3.s AS att_Y p4.o = p1.o AND p2.s = p1.s AND p2.s = p0.s AND p3.s = p4.s AND p3.s = p5.s UNION ...“
答案 0 :(得分:1)
此错误的唯一可能解决方案是在UNION
查询中使用较少的表。