X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id DBD52D1B272 for ; Wed, 19 May 2004 13:33:47 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 96170-05 for ; Wed, 19 May 2004 13:33:27 -0300 (ADT) Received: from anchor-post-35.mail.demon.net (anchor-post-35.mail.demon.net [194.217.242.85]) by svr1.postgresql.org (Postfix) with ESMTP id 0196CD1B1D2 for ; Wed, 19 May 2004 13:33:24 -0300 (ADT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-35.mail.demon.net with esmtp (Exim 3.35 #1) id 1BQU0Q-0001rW-0Z; Wed, 19 May 2004 17:33:22 +0100 Received: from [192.168.1.17] (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 6095017CE8; Wed, 19 May 2004 17:33:20 +0100 (BST) Message-ID: <40AB8C4C.8080602@archonet.com> Date: Wed, 19 May 2004 17:33:16 +0100 From: Richard Huxton User-Agent: Mozilla Thunderbird 0.6 (X11/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Martin Knipper Cc: pgsql-sql@postgresql.org Subject: Re: Function valid only for one table References: <40AB7272.2090605@mk-os.de> In-Reply-To: <40AB7272.2090605@mk-os.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/165 X-Sequence-Number: 17879 Martin Knipper wrote: > Hi there, > > is it possible to define a function that is only valid in a context > of one table ? > > For Example: > > select someFunction() from someTable; > -> OK > > select someFunction() from anotherTable; > -> Error: someFunction unkown Um, no. What do you want someFunction() to do? -- Richard Huxton Archonet Ltd