pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hogan, James F. Jr. <JHogan@seton.org>
To: pgsql-admin@postgresql.org
Subject: audit table containing Select statements submitted
Date: Wed, 3 May 2006 14:39:51 -0500
Message-ID: <D73D467FE58F004E9D3FA25414945DC104FE022C@AUSEX3VS1.seton.org> (raw)


Can anyone point me in a direction that may help me populate in real
time a table that holds?

Current_user
Timestamp
"The Select Statement Submitted by the User"

I would like to easily determine who viewed what and when they viewed
it.

I have considered the fact that the result from SELECT yesterday may be
different than the result set returned by the SAME SELECT statement
today, but when used in conjunction with the INSERT, UPDATE, DELETE
audit logging I have already created, the answers to who viewed, what
and when would be readily available. 


I have been searching all morning and...

The only thing I find on logging of Select statements is that the
information can be held in the Log Files...if Logging is enabled.  

As I am only interested in the statements presented against certain
tables...

Turning on logging gives me more than I need or care to look through. 

I could write a script to parses the Log Files into a Database Table but
would prefer to avoid enabling the file logging of statements if
possible.

Thanks for any reference or help you may be able to provide.

Jim



view thread (2+ messages)  latest in thread

Message-ID: <D73D467FE58F004E9D3FA25414945DC104FE022C@AUSEX3VS1.seton.org>
Permalink:  ../D73D467FE58F004E9D3FA25414945DC104FE022C@AUSEX3VS1.seton.org/
Also on:    postgresql.org/message-id/D73D467FE58F004E9D3FA25414945DC104FE022C@AUSEX3VS1.seton.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: JHogan@seton.org
  Subject: Re: audit table containing Select statements submitted
  In-Reply-To: <D73D467FE58F004E9D3FA25414945DC104FE022C@AUSEX3VS1.seton.org>
  References: <D73D467FE58F004E9D3FA25414945DC104FE022C@AUSEX3VS1.seton.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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