Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id DB03C9FB58A for ; Fri, 2 Mar 2007 11:16:51 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 23912-03 for ; Fri, 2 Mar 2007 11:16:32 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.226]) by postgresql.org (Postfix) with ESMTP id D7AEB9FB59A for ; Fri, 2 Mar 2007 11:16:38 -0400 (AST) Received: by wx-out-0506.google.com with SMTP id i28so812725wxd for ; Fri, 02 Mar 2007 07:16:37 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kDQ94R+6VDX2YWHvsw6FRjO0XI9YrDQStQ4mpJeWU8d8EeC+3Bo2Rw1QahMtjnKDZe1eopcSb0yPa969o815miLyPrWQFjRhbk2ldhm0b9jQQ2fNR6W9W0QGBA+olwDEl7gTfsVP+HYo18hCONCYLKIXuRUKuZwnkmILaHPGUuM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ucEM8SxYoU7nPYeCzlg7ImIzrNh9Nxe8PybHOPF3wHx/eagsnTsbBvB7E3uyG0Pc+H+JBjZn21dfDkDpJ0vefHGWWTukq5CLW0mmEOWbT7EU1hmCmp1f8QXsgwWjja+hHtuCt0ZGCo8aPwrI/dblJFsw4pK+wXeviAgJH37UHBE= Received: by 10.90.75.10 with SMTP id x10mr2947435aga.1172848597670; Fri, 02 Mar 2007 07:16:37 -0800 (PST) Received: by 10.90.116.10 with HTTP; Fri, 2 Mar 2007 07:16:37 -0800 (PST) Message-ID: Date: Fri, 2 Mar 2007 10:16:37 -0500 From: "Alex Deucher" To: "Florian Weimer" Subject: Re: strange performance regression between 7.4 and 8.1 Cc: pgsql-performance@postgresql.org In-Reply-To: <82slco6n9t.fsf@mid.bfk.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <82slco6n9t.fsf@mid.bfk.de> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/54 X-Sequence-Number: 23459 On 3/2/07, Florian Weimer wrote: > * Alex Deucher: > > > I have noticed a strange performance regression and I'm at a loss as > > to what's happening. We have a fairly large database (~16 GB). > > Sorry for asking, but is this a typo? Do you mean 16 *TB* instead of > 16 *GB*? > > If it's really 16 GB, you should check if it's cheaper to buy more RAM > than to fiddle with the existing infrastructure. > Yes, 16 GB. I'd rather not shell out for more ram, if I'm not even sure that will help. The new system should be faster, or at least as fast, so I'd like to sort out what's going on before I buy more ram. > > however the table structure is almost identical (UTF8 on the new one > > vs. C on the old). > > Locale settings make a huge difference for sorting and LIKE queries. > We usually use the C locale and SQL_ASCII encoding, mostly for > performance reasons. (Proper UTF-8 can be enforced through > constraints if necessary.) > I suppose that might be a factor. How much of a performance difference do you see between utf-8 and C? Alex