From: | Sim Zacks <sim(at)compulab(dot)co(dot)il> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | audit table |
Date: | 2009-02-12 09:29:41 |
Message-ID: | gn0q63$j2k$1@news.hub.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The documentation says you cannot use a pseudo type for a table column,
so I was wondering if there is any way to handle what I would like to do.
I want a trigger on every table that inserts the old row into an audit
table (for updates and deletes). If the audit table was per table, then
I could easily have a field of type that table and insert old into it.
Is there any way that I could accomplish this functionality with any
other type, so I could input any record into it?
When I read it out, I would obviously cast it out to the correct type.
Sim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkmT7AQACgkQjDX6szCBa+oJlwCfWslrC9X2Y7XQRanuF1vQJ7uW
y/oAoOdL0Nt8O+GdmP4is3CalLQto7+s
=4mxe
-----END PGP SIGNATURE-----
From | Date | Subject | |
---|---|---|---|
Next Message | Harald Armin Massa | 2009-02-12 09:54:18 | Re: Multiple postgres.exe On Processes |
Previous Message | Grzegorz Jaśkiewicz | 2009-02-12 09:04:02 | Re: Multiple postgres.exe On Processes |