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

From Martin Knipper
Subject Function valid only for one table
Date
Msg-id 40AB7272.2090605@mk-os.de
Whole thread Raw
Responses Re: Function valid only for one table
SCHEMA's the easy way?
List 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


pgsql-sql by date:

Previous
From: "Raphael A. Bauer"
Date:
Subject: Re: Very slow search using basic pattern matching
Next
From: Richard Huxton
Date:
Subject: Re: Function valid only for one table