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 106C5566AD for ; Fri, 11 Mar 2005 14:27:38 +0000 (GMT) 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 45214-08 for ; Fri, 11 Mar 2005 14:27:31 +0000 (GMT) Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.250.190.2]) by svr1.postgresql.org (Postfix) with ESMTP id 54D84566AA for ; Fri, 11 Mar 2005 14:27:31 +0000 (GMT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 37AF331E24; Fri, 11 Mar 2005 15:27:34 +0100 (MET) From: Daniel Schuchardt X-Newsgroups: pgsql.performance Subject: Re: cpu_tuple_cost Date: Fri, 11 Mar 2005 15:27:46 +0100 Organization: Hub.Org Networking Services Lines: 7 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en In-Reply-To: To: pgsql-performance@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.646 tagged_above=0 required=5 tests=AWL, UPPERCASE_50_75 X-Spam-Level: X-Archive-Number: 200503/235 X-Sequence-Number: 10940 I have forgotten this : CREATE OR REPLACE FUNCTION date_to_yearmonth_dec(TIMESTAMP) RETURNS VARCHAR AS' BEGIN RETURN extract(year FROM $1) || extract(month FROM $1)-1; END'LANGUAGE plpgsql IMMUTABLE;