pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
automated log-messages
2+ messages / 2 participants
[nested] [flat]

* automated log-messages
@ 2001-01-12 06:59  Joern Muehlencord <jomu@uni-paderborn.de>
  0 siblings, 1 reply; 2+ messages in thread

From: Joern Muehlencord @ 2001-01-12 06:59 UTC (permalink / raw)
  To: pgsql-sql

Hi,

I am trying to implement an automated log-message system for my
application. For example, if a new user is inserted to my table "auth",
I want to create a log message like: "user [name] added to system". Is
it possible to add this message with triggers or rules?! If so, can
anyone give some examples?


Thanx,
 Joern
-- 
Linux is like a wigwam - no Windows, no Gates and Apache inside



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: automated log-messages
@ 2001-01-12 07:43  J.H.M. Dassen (Ray) <jdassen@cistron-office.nl>
  parent: Joern Muehlencord <jomu@uni-paderborn.de>
  0 siblings, 0 replies; 2+ messages in thread

From: J.H.M. Dassen (Ray) @ 2001-01-12 07:43 UTC (permalink / raw)
  To: pgsql-sql

On Fri, Jan 12, 2001 at 07:59:26 +0100, Joern Muehlencord wrote:
> I am trying to implement an automated log-message system for my
> application. For example, if a new user is inserted to my table "auth",
> I want to create a log message like: "user [name] added to system". Is
> it possible to add this message with triggers or rules?!

It can be done using a trigger procedure in Pl/pgSQL, using a "RAISE"
statement; see
http://postgresql.rmplc.co.uk/devel-corner/docs/postgres/plpgsql-description.htm#AEN6187

HTH,
Ray
-- 
"The proper place for a CAPSLOCK key is in a different hemisphere from you."
	Tom Christiansen in "Interface Zen",
	http://slashdot.org/article.pl?sid=99/11/30/0954216



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2001-01-12 07:43 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-01-12 06:59 automated log-messages Joern Muehlencord <jomu@uni-paderborn.de>
2001-01-12 07:43 ` J.H.M. Dassen (Ray) <jdassen@cistron-office.nl>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox