Function valid only for one table

From: Martin Knipper <knipper(at)mk-os(dot)de>
To: pgsql-sql(at)postgresql(dot)org
Subject: Function valid only for one table
Date: 2004-05-19 14:42:58
Message-ID: 40AB7272.2090605@mk-os.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

Of course both tables are in the same database.

Greetings,
Martin

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Huxton 2004-05-19 16:33:16 Re: Function valid only for one table
Previous Message Jeff Post 2004-05-19 14:19:47 Preventing Deletions with triggers