Re: Puzzling table scan in a CTE

From: Kevin Grittner <kgrittn(at)ymail(dot)com>
To: "slapo(at)centrum(dot)sk" <slapo(at)centrum(dot)sk>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Puzzling table scan in a CTE
Date: 2013-11-22 19:24:05
Message-ID: 1385148245.49487.YahooMailNeo@web162904.mail.bf1.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"slapo(at)centrum(dot)sk" <slapo(at)centrum(dot)sk> wrote:

> I have a recursive CTE where a table scan occurs, even though
> there doesn't seem to be a good reason for it.

Do you have effective_cache_size set to 50% to 75% of machine RAM?
Do you have cpu_tuple_cost set to between 0.03 and 0.05?  If not,
do changes to these settings help?

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kevin Grittner 2013-11-22 19:54:06 Re: corruption issue after server crash - ERROR: unexpected chunk number 0
Previous Message Tomas Vondra 2013-11-22 19:11:47 Re: ERROR: out of memory DETAIL: Failed on request of size ???