X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 277E0DA703 for ; Mon, 17 Oct 2005 05:25:27 -0300 (ADT) 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 88377-09 for ; Mon, 17 Oct 2005 08:25:20 +0000 (GMT) Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by svr1.postgresql.org (Postfix) with ESMTP id E6BAEDA71F for ; Mon, 17 Oct 2005 05:25:21 -0300 (ADT) Received: from mainbox.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id 7674840C965; Mon, 17 Oct 2005 09:25:18 +0100 (BST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id 62AFB15ED9; Mon, 17 Oct 2005 09:22:19 +0100 (BST) Received: from mainbox.archonet.com ([127.0.0.1]) by localhost (mainbox [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12757-02; Mon, 17 Oct 2005 09:22:17 +0100 (BST) Received: from [192.168.1.17] (client17.office.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 13D7515ED5; Mon, 17 Oct 2005 09:22:17 +0100 (BST) Message-ID: <43535F38.8090202@archonet.com> Date: Mon, 17 Oct 2005 09:22:16 +0100 From: Richard Huxton User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051010) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mike Plemmons Cc: PostgreSQL List Subject: Re: Question about functions References: <2f8663320510162024j17b4fdb0n4d2b5df1e32d1863@mail.gmail.com> In-Reply-To: <2f8663320510162024j17b4fdb0n4d2b5df1e32d1863@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.059 required=5 tests=[AWL=0.009, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200510/178 X-Sequence-Number: 23031 Mike Plemmons wrote: > I am trying to run this function but the return is not correct. PS - next time, details of what it *did* return and why that wasn't correct would be useful. Not needed in this case, but good practice anyway. PPS - the subject line was pretty good, but better might have been "Problem with LIKE and variables in a plpgsql function" PPPS - This is a fairly inefficient way of running simple queries. PPPPS - Thanks for the question! -- Richard Huxton Archonet Ltd