From: | Andrew Gould <andrewgould(at)yahoo(dot)com> |
---|---|
To: | Postgres Mailing List <pgsql-general(at)postgresql(dot)org> |
Subject: | Logging user queries - Trigger for Select? |
Date: | 2002-02-18 16:40:47 |
Message-ID: | 20020218164047.33354.qmail@web13401.mail.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Federal laws (HIPAA) in the US are going to require
the tracking of all access (even SELECT) to certain
fields of protected patient information. The simplest
way that I (not a developer) can think of to
accomplish this is to have a trigger store query
history in a log table.
1. How can I capture the text of an SQL query (not
the result set) so that it can be used as a value in
an INSERT statement.
2. Would the PostgreSQL developers consider expanding
the scope of Triggers to include SELECT statements?
(please?)
Thanks,
Andrew Gould
__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com
From | Date | Subject | |
---|---|---|---|
Next Message | david blood | 2002-02-18 16:41:14 | Problem with unixODBC driver and lenth of sql statements |
Previous Message | Rich Shepard | 2002-02-18 16:33:44 | libpq or ecpg? |