X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 7DA4C5372C for ; Fri, 13 May 2005 00:36:32 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 54261-06 for ; Fri, 13 May 2005 03:36:23 +0000 (GMT) Received: from server07.icaen.uiowa.edu (server07.icaen.uiowa.edu [128.255.17.47]) by svr1.postgresql.org (Postfix) with ESMTP id 86E0453577 for ; Fri, 13 May 2005 00:36:22 -0300 (ADT) Received: from server11.icaen.uiowa.edu (server11.icaen.uiowa.edu [128.255.17.51]) by server07.icaen.uiowa.edu (8.13.3/8.12.9) with ESMTP id j4D3aGDW014577; (envelope-from ) Thu, 12 May 2005 22:36:16 -0500 (CDT) Received: from [192.168.1.11] (12-215-118-172.client.mchsi.com [12.215.118.172]) (authenticated user=jfmeinel) by server11.icaen.uiowa.edu (8.13.2/smtp-serv-1.7) with ESMTP id j4D3aC11012629 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256); (envelope-from ) Thu, 12 May 2005 22:36:13 -0500 (CDT) Message-ID: <428420A1.9090707@arbash-meinel.com> Date: Thu, 12 May 2005 22:36:01 -0500 From: John A Meinel User-Agent: Mozilla Thunderbird 1.0.2-1.3.2 (X11/20050324) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Sebastian Hennebrueder Cc: pgsql-performance@postgresql.org Subject: Re: Recommendations for set statistics References: <428416D8.8060303@laliluna.de> In-Reply-To: <428416D8.8060303@laliluna.de> X-Enigmail-Version: 0.89.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig503BE9990A3B7576AFF93DA5" X-Virus-Scanned: ClamAV version 0.83, clamav-milter version 0.83 on clamav.icaen.uiowa.edu X-Virus-Scanned: ClamAV version 0.83, clamav-milter version 0.83 on clamav.icaen.uiowa.edu X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200505/253 X-Sequence-Number: 12417 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig503BE9990A3B7576AFF93DA5 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Sebastian Hennebrueder wrote: > Hello, > > I could not find any recommandations for the level of set statistics and > what a specific level does actually mean. > What is the difference between 1, 50 and 100? What is recommanded for a > table or column? > Default I believe is 10. The higher the number, the more statistics are kept, with a maximum of 1000. The default is a little bit low for columns used in foreign keys, though frequently it is okay. When problems start, try setting them to 100 or 200. Higher is more accurate, but takes longer to compute, *and* takes longer when planning the optimal query method. It can be worth it, though. John =:-> --------------enig503BE9990A3B7576AFF93DA5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFChCClJdeBCYSNAAMRAi8XAJ9G0bvNzT98YSjoJYv7RmYFCOD0mQCfXZdd mL5e8q9Sjm+TwzCSOqUyY0E= =W1Mu -----END PGP SIGNATURE----- --------------enig503BE9990A3B7576AFF93DA5--