Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 441162E3531 for ; Mon, 17 Dec 2007 13:27:39 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 42611-03 for ; Mon, 17 Dec 2007 13:27:35 -0400 (AST) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.250]) by postgresql.org (Postfix) with ESMTP id 77A3D2E33CD for ; Mon, 17 Dec 2007 13:27:35 -0400 (AST) Received: by an-out-0708.google.com with SMTP id c36so584243ana.33 for ; Mon, 17 Dec 2007 09:27:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=+PtCmqGFDETLpNgeeVWZnQnuiD683WnXOUDSiyhzYNM=; b=OhCE7lGJTEmLl74G8cNrLKLPk4gF/DCpFlhxEDVPb5mqESPitainBT8onQUaWDvoZ5z2CrSFtKo9u98AD7tpJEGzejN8fAnRjhT1lqX2OvCpGAQBU261h+GfrHS0EtvIWDe33Hup44UQBXdO5GScZa15XwYlKIebgeQDpJMp5Vw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XEp4TShZCORBdWc89zAvY4YfslNFLVcz+4NXaLuhoIWk7U7pERgcXmj1vivgtvNyVgfa2OW1bEfbNu8p2H44ty+6V7yKBDhY7YPAM9XlsC5Ipnf7d7WqIg9NjN6fWoDj6cR8uIoLocxvSvuJDirfwYRrPLWwcbCuNYJCdHRStS8= Received: by 10.100.152.19 with SMTP id z19mr15179013and.38.1197912454804; Mon, 17 Dec 2007 09:27:34 -0800 (PST) Received: by 10.100.34.6 with HTTP; Mon, 17 Dec 2007 09:27:34 -0800 (PST) Message-ID: Date: Mon, 17 Dec 2007 12:27:34 -0500 From: "=?UTF-8?Q?Rodrigo_De_Le=C3=B3n?=" To: pgsql-sql@postgresql.org Subject: Re: passing a multiple join to a function? In-Reply-To: <20071217130629.GA8338@apartia.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20071217130629.GA8338@apartia.fr> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/91 X-Sequence-Number: 29783 On 12/17/07, Louis-David Mitterrand wrote: > I've got this ugly case statement that I'd like to hide in a function: Why don't you hide the entire query in a VIEW?