Does this function exist?

From: Aaron Holtz <aholtz(at)bright(dot)net>
To: pgsql-general(at)postgreSQL(dot)org
Subject: Does this function exist?
Date: 1999-05-14 16:30:10
Message-ID: Pine.LNX.4.10.9905141227010.27932-100000@barbarossa.bright.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)bright(dot)net
"It's not broken, it just lacks duct tape."
--------------------------------------------------------------------------

Browse pgsql-general by date

  From Date Subject
Next Message Keith.Christian 1999-05-14 18:10:49
Previous Message Bruce Momjian 1999-05-14 12:04:13 Re: [GENERAL] overwriting large objects bug?