Does this function exist? - Mailing list pgsql-general

From Aaron Holtz
Subject Does this function exist?
Date
Msg-id Pine.LNX.4.10.9905141227010.27932-100000@barbarossa.bright.net
Whole thread Raw
List pgsql-general
Wondering if there was a function to call back the previous command.
Por ejemplo:

test=> select * from data;
test=> select getlastcommand();
select * from data
(1 row)

test=>


Or something similiar.  Anyone know how I can get that last command?
What I want to do is write a rule that takes the last command run and puts
it into another table or even into a flat text file on the drive.  A poor
man's version of process accounting....

--------------------------------------------------------------------------
Aaron Holtz
ComNet Inc.
UNIX Systems Specialist
Email:  aholtz@bright.net
"It's not broken, it just lacks duct tape."
--------------------------------------------------------------------------



pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [GENERAL] overwriting large objects bug?
Next
From: Keith.Christian@tais.toshiba.com
Date:
Subject: ...