Skip site navigation (1) Skip section navigation (2)

Re: Simple postgresql.conf wizard

From: tomas(at)tuxteam(dot)de
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Josh Berkus <josh(at)agliodbs(dot)com>,Gregory Stark <stark(at)enterprisedb(dot)com>,Greg Smith <gsmith(at)gregsmith(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Simple postgresql.conf wizard
Date: 2008-11-28 07:46:58
Message-ID: 20081128074658.GA26228@tomas (view raw or flat)
Thread:
Lists: pgsql-hackers
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, Nov 27, 2008 at 05:15:04PM -0500, Robert Haas wrote:
> [...]  Maybe
> default_statistics_target should vary with the table size?  Something
> like, 0.1% of the rows to a maximum of 100...  and then 0.01% of the
> rows after that to some higher maximum.... but always a minimum of at
> least 10.  I'm guessing that people with really big tables are less
> likely to mind longer planning times and more likely to benefit from
> finding better plans...

What was the running time of the planner? Quadratic in statistics_target?
Take the square root of table size. Exponential? The logarithm. Or
something like that.

My 1.75 cent
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFJL6HyBcgs9XrR2kYRAqfzAJ47w720VJLHVXeS8WKH6zUjAHkbeACfTtDh
rFq512eztVnib1ozjw9sibs=
=JXyS
-----END PGP SIGNATURE-----

In response to

pgsql-hackers by date

Next:From: Fujii MasaoDate: 2008-11-28 09:56:18
Subject: Immediate shutdown during recovery
Previous:From: KaiGai KoheiDate: 2008-11-28 05:21:10
Subject: Re: A bug with ALTER TABLE SET WITHOUT OIDS in CVS HEAD

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group