Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 3DCE69FBC43 for ; Fri, 6 Apr 2007 17:26:54 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 64783-06 for ; Fri, 6 Apr 2007 17:26:51 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.232]) by postgresql.org (Postfix) with ESMTP id 0A6349FB86D for ; Fri, 6 Apr 2007 17:26:50 -0300 (ADT) Received: by nz-out-0506.google.com with SMTP id r28so598585nza for ; Fri, 06 Apr 2007 13:26:50 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=ICE1nPUfVIOpOrAcYKSdER2cOn8oiMwMQUuFSRItWg8YqAC8zRwTJZ8HMvQtg1Rl67uTbindrcyaKsSlwuVi4zyQja1NHp3SnFLbRV6uP9gdJGX94JGQO5yjK1tXnZGQNr4G3myU4XN6YlYMjhyadxkYXWumfzCkSfkybBkk/mc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=t+RlWLvZWXh903uj2+rrN7oBR2fcvSPXhBHbVnU0OiA+EN3m2Q4O+LFSTIUxJ6HfYgTw+237srTRfiE/aO63sydmTTh15Vw6dZdXbpUv2/3AdiUph9WyLF4fNhqWM1kYTI5lqpyNvDFkpj+2XL8scSy+dpEwrTfU6YzhmuqAZn4= Received: by 10.114.60.19 with SMTP id i19mr1332126waa.1175891209718; Fri, 06 Apr 2007 13:26:49 -0700 (PDT) Received: by 10.114.157.12 with HTTP; Fri, 6 Apr 2007 13:26:49 -0700 (PDT) Message-ID: Date: Fri, 6 Apr 2007 14:26:49 -0600 From: "Jonathan Ellis" To: "Tom Lane" Subject: Re: Premature view materialization in 8.2? Cc: pgsql-performance@postgresql.org In-Reply-To: <15902.1175884488@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <28349.1175838196@sss.pgh.pa.us> <261.1175840636@sss.pgh.pa.us> <15092.1175881227@sss.pgh.pa.us> <15399.1175882434@sss.pgh.pa.us> <15902.1175884488@sss.pgh.pa.us> X-Google-Sender-Auth: 1d33b110fcbf02e2 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/177 X-Sequence-Number: 24054 On 4/6/07, Tom Lane wrote: > > The problem seems to be that clan_members_v contains a call to an > > expensive function: > > I'll bet that the function is marked VOLATILE. 8.2 is more conservative > about optimizing away volatile functions than previous releases. If > it has no side effects, mark it STABLE (or can it even be IMMUTABLE?). That's exactly right, it should have been STABLE. Thanks a lot for figuring that out for me!