Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 394259FA0EF for ; Sun, 10 Dec 2006 22:44:10 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 79066-09 for ; Sun, 10 Dec 2006 22:44:06 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id 3AC079FA0B7 for ; Sun, 10 Dec 2006 22:44:06 -0400 (AST) Received: (qmail 15388 invoked from network); 11 Dec 2006 02:44:04 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.14?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 11 Dec 2006 02:44:04 -0000 In-Reply-To: <8a0c7af10612101702i49b5a533v4a2300d90d9dae6b@mail.gmail.com> References: <8a0c7af10612101141n2c7727c3r2f92345753960808@mail.gmail.com> <430d92a20612101336r3de8862coe618277fccb4006a@mail.gmail.com> <8a0c7af10612101702i49b5a533v4a2300d90d9dae6b@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <96AA0685-0BCC-4300-BB12-696FE495B008@fastcrypt.com> Cc: pgsql-performance@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: New to PostgreSQL, performance considerations Date: Sun, 10 Dec 2006 21:44:09 -0500 To: Daniel van Ham Colchete X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/198 X-Sequence-Number: 22254 Hi Daniel On 10-Dec-06, at 8:02 PM, Daniel van Ham Colchete wrote: > Hi Gene, > > at my postgresql.conf, the only non-comented lines are: > fsync = off This can, and will result in lost data. > lc_messages = 'C' > lc_monetary = 'C' > lc_numeric = 'C' > lc_time = 'C' How much memory does this machine have and what version of postgresql are you using? > max_connections = 100 > shared_buffers = 5000 > temp_buffers = 1000 > work_mem = 4096 > > The only two values I changed are shared_buffers and work_mem. Dave > > *** BUT *** > I'm using Gentoo Linux, so all my libraries (including glibc that is > very important to PostgreSQL), and all my softwares are compiled with > good CFLAG options to my processor ("-O2 march=athlon-xp (...)"). My > Linux is not an Intel-AMD binary compatible turtle like > Fedora/RedHat/SUSE/... It's really important to have your GLIBC > compiled for your processor. It is essencial for performance. > > I can't imagine anyone buying a $1k-dollar quad-core XEON and using an > i585 compatible distro that doesn't even know what the fudge is > SSE/SSE2/vectorized instructions. > > Best regards, > Daniel Colchete > > On 12/10/06, Gene wrote: >> I have a similar type application, I'm partitioning using constraint >> exclusion so queries only have to look at a few tables. I've found >> that >> there is some overhead to using partitioning so you should test to >> see how >> many partitions you want to create. Could I check out you >> postgresql.conf >> parameters to compare? thanks >> >> >> Gene Hart > > ---------------------------(end of > broadcast)--------------------------- > TIP 9: In versions below 8.0, the planner will ignore your desire to > choose an index scan if your joining column's datatypes do not > match >