Re: [GENERAL] Re : overriding default value in inherited column (+set_value function)

2001-03-20 Thread Stephan Szabo
I'd guess you could use TG_RELID or TG_RELNAME inside your trigger. On Tue, 20 Mar 2001, Matt Magoffin wrote: Is there any way to make use of the tableoid either as an argument to the function or as a reference within the function (in plpgsql)? For example, I'd like to either CREATE

Re: [GENERAL] Re : overriding default value in inherited column (+ set_value function)

2001-03-20 Thread Matt Magoffin
Is there any way to make use of the tableoid either as an argument to the function or as a reference within the function (in plpgsql)? For example, I'd like to either CREATE TRIGGER set_default_value BEFORE INSERT ON foo FOR EACH ROW EXECUTE PROCEDURE set_value('tableoid'); and within the