Function Calling Using OIDS

From: evertcarton(at)netscape(dot)net (Evert Carton)
To: pgsql-general(at)postgresql(dot)org
Subject: Function Calling Using OIDS
Date: 2002-10-22 14:30:56
Message-ID: 62726f43.0210220630.6662fd3b@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all,

I am wondering, ...

Is there a way to call a stored procedure indirectly, if you have it's
name or it's oid in the pg_proc table ?

Or ...

What I'm trying to achieve ...

I'd like to add a reference to a stored procedure in a record, (e.g.
the OID, but more likely the name, since OID's can change), and to
have this function called by triggers when the record using that
reference in any way, directly or indirectly, is being
added/updated/deleted.
The function being called should be different for each record.
I could of course write one big one, but it looks like the functions I
need might be written in different languages. ...

Any ideas ?

Thx

Evert Carton
evertcarton(at)netscape(dot)net

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-10-22 14:31:09 Re: problem with escaping "
Previous Message Andrew Sullivan 2002-10-22 14:29:12 Re: [HACKERS] Hot Backup