From: | "Josh Berkus" <josh(at)agliodbs(dot)com> |
---|---|
To: | pkasimov(at)yahoo(dot)com (Pasha), pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Stored prosedure last run |
Date: | 2001-09-19 15:50:10 |
Message-ID: | web-121814@davinci.ethosmedia.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Pasha,
> I'm trying to find if anyone knows how to find out when the stored
> procedure was used last time (not created).
If you want to do this, you'd need to create your own log table, and
write to it at the beginning of your function:
CREATE TABLE function_log (
run_id SERIAL NOT NULL PRIMARY KEY,
function_name VARCHAR(100) NOT NULL,
run_date TIMESTAMP NOT NULL DEFAULT current_timestamp);
CREATE FUNCTION my_function ( ...
... BEGIN
INSERT INTO function_log ( function_name )
VALUES ( 'my_function' );
...
Got it?
-Josh
______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh(at)agliodbs(dot)com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
From | Date | Subject | |
---|---|---|---|
Next Message | Kovacs Baldvin | 2001-09-19 16:55:19 | Re: Checking for table existence (fwd) |
Previous Message | Haller Christoph | 2001-09-19 14:41:36 | Re: Registring a C function in PostgreSQL II |