Re: Is this a planner bug?

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Torsten Förtsch <torsten(dot)foertsch(at)gmx(dot)net>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Is this a planner bug?
Date: 2014-04-22 12:24:18
Message-ID: CAFj8pRDkgSwRb6fx4N1k7n9gFqAResim+GDrxU1o9TUPw+0AkQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello

what is your effective_cache_size in postgresql.conf?

What is random_page_cost and seq_page_cost?

Regards

Pavel

2014-04-22 14:10 GMT+02:00 Torsten Förtsch <torsten(dot)foertsch(at)gmx(dot)net>:

> Hi,
>
> I got this plan:
>
> Limit (cost=0.00..1.12 rows=1 width=0)
> -> Seq Scan on fmb (cost=0.00..6964734.35 rows=6237993 width=0)
> Filter: ...
>
> The table has ~80,000,000 rows. So, the filter, according to the plan,
> filters out >90% of the rows. Although the cost for the first row to
> come out of the seqscan might be 0, the cost for the first row to pass
> the filter and, hence, to hit the limit node is probably higher.
>
> Thanks,
> Torsten
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2014-04-22 13:36:40 Re: could not rename temporary statistics file "/run/shm/pgstat.tmp" to "/run/shm/pgstat.stat": No such file or directory
Previous Message Ian Barwick 2014-04-22 12:21:38 Re: Fwd: How to ignore blank lines with file_fdw