Re: Trigger for logging stuff...

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Larry Rosenman <ler(at)lerctr(dot)org>
Cc: PostgreSQL SQL List <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Trigger for logging stuff...
Date: 2001-12-10 10:33:01
Message-ID: 200112101033.fBAAX1B03366@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


In my book maybe:

http://www.postgresql.org/docs/awbook.html

---------------------------------------------------------------------------

> This may be a dup...
>
>
> I know I've seen an example somewhere, but can't find it right now of
> a PL/pgSQL function that audit's insert/update/delete of rows in a
> audit type table.
>
> How does the PL/pgSQL function know what fields are in the row? How
> can I add a by and timestamp field to the row?
>
> Thanks!
>
> LER
>
>
> --
> Larry Rosenman http://www.lerctr.org/~ler
> Phone: +1 972-414-9812 E-Mail: ler(at)lerctr(dot)org
> US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Andrew G. Hammond 2001-12-10 15:12:34 Re: Just comments about math
Previous Message Richard Lockwood 2001-12-10 08:42:58 Can anybody help me with SQL?