Re: Function valid only for one table - Mailing list pgsql-sql

From Richard Huxton
Subject Re: Function valid only for one table
Date
Msg-id 40AB8C4C.8080602@archonet.com
Whole thread Raw
In response to Function valid only for one table  (Martin Knipper <knipper@mk-os.de>)
Responses Re: Function valid only for one table
List pgsql-sql
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


pgsql-sql by date:

Previous
From: Martin Knipper
Date:
Subject: Function valid only for one table
Next
From: Chris Gamache
Date:
Subject: SCHEMA's the easy way?