From: | Andres Freund <andres(at)anarazel(dot)de> |
---|---|
To: | Akshaya Acharya <akshaya(dot)acharya(dot)01(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Too many range table entries error |
Date: | 2018-06-25 08:10:06 |
Message-ID: | 20180625081006.jnxgmsysq2biacnc@alap3.anarazel.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi,
On 2018-06-25 13:02:37 +0530, Akshaya Acharya wrote:
> Hello.
>
>
> Please could you help debug the error "too many range table entries”?
>
>
> This error occurs when querying a view that is dependent on many other
> views (i.e. a view high up in the pyramid of views that we've constructed).
>
>
> I get this error when running select * on the view, or when running an
> explain analyse on the select.
>
>
> Views that use a total of more than around 40000 table references (in the
> complete tree considering all the dependent views recursively) don't work,
> but it works with 20000 table references. What is the maximum number of
> table references possible?
Why are you doing this? I can't imagine queries with that many table
references ever being something useful? I'm pretty sure there's better
solutions for what you're doing.
> Can I increase this number somehow?
It's not impossible, it's not entirely trivial either. The relevant
variables currently are 16bit wide, and the limit is close to the max
for that.
Greetings,
Andres Freund
From | Date | Subject | |
---|---|---|---|
Next Message | Akshaya Acharya | 2018-06-25 08:16:06 | Re: Too many range table entries error |
Previous Message | Akshaya Acharya | 2018-06-25 07:32:37 | Too many range table entries error |