pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Registering all User Operations
5+ messages / 3 participants
[nested] [flat]

* Registering all User Operations
@ 2003-01-17 09:29 SAMTEK Consultores <adolfopa@samtek.es>
  2003-01-26 01:03 ` Re: Registering all User Operations Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 1 reply; 5+ messages in thread

From: SAMTEK Consultores @ 2003-01-17 09:29 UTC (permalink / raw)
  To: pgsql-admin

Hi:

I need to register all the operations (INSERT/UPDATE/DELETE) that users
does.

Something like an log file for the backbone (like a /var/log/messages,
where all done is registered).


Can any help me?

Thanks.

-- 

SAMTEK, Consultores Informática y Telecomunicaciones
Calificado como Agente Tecnológico por la Consejería  de Empleo y Desarrollo Tecnológico
RAITEC (Red Andaluza de Innovación y Tecnología)

Adolfo M. Pachón Rodríguez
Director de Sistemas

C/ Salado, Portal 11, Local 8
41010 - Sevilla

tlf: 95 428 6045
fax: 95 427 8500

http://www.samtek.es
mailto://info@samtek.es




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

* Re: Registering all User Operations
  2003-01-17 09:29 Registering all User Operations SAMTEK Consultores <adolfopa@samtek.es>
@ 2003-01-26 01:03 ` Bruce Momjian <pgman@candle.pha.pa.us>
  2003-01-26 07:21   ` Re: Registering all User Operations Mauri Sahlberg <Mauri.Sahlberg@claymountain.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Bruce Momjian @ 2003-01-26 01:03 UTC (permalink / raw)
  To: SAMTEK Consultores <adolfopa@samtek.es>; +Cc: pgsql-admin


Uh, you can turn on log_statements in postgresql.conf and they will
appear in the server logs.

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

SAMTEK Consultores wrote:
> Hi:
> 
> I need to register all the operations (INSERT/UPDATE/DELETE) that users
> does.
> 
> Something like an log file for the backbone (like a /var/log/messages,
> where all done is registered).
> 
> 
> Can any help me?
> 
> Thanks.
> 
> -- 
> 
> SAMTEK, Consultores Inform?tica y Telecomunicaciones
> Calificado como Agente Tecnol?gico por la Consejer?a  de Empleo y Desarrollo Tecnol?gico
> RAITEC (Red Andaluza de Innovaci?n y Tecnolog?a)
> 
> Adolfo M. Pach?n Rodr?guez
> Director de Sistemas
> 
> C/ Salado, Portal 11, Local 8
> 41010 - Sevilla
> 
> tlf: 95 428 6045
> fax: 95 427 8500
> 
> http://www.samtek.es
> mailto://info@samtek.es
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
> 
> http://www.postgresql.org/users-lounge/docs/faq.html
> 

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



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

* Re: Registering all User Operations
  2003-01-17 09:29 Registering all User Operations SAMTEK Consultores <adolfopa@samtek.es>
  2003-01-26 01:03 ` Re: Registering all User Operations Bruce Momjian <pgman@candle.pha.pa.us>
@ 2003-01-26 07:21   ` Mauri Sahlberg <Mauri.Sahlberg@claymountain.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Mauri Sahlberg @ 2003-01-26 07:21 UTC (permalink / raw)
  To: SAMTEK Consultores <adolfopa@samtek.es>; +Cc: pgsql-admin

On su, 2003-01-26 at 03:03, Bruce Momjian wrote:
> Uh, you can turn on log_statements in postgresql.conf and they will
> appear in the server logs.
> 
> ---------------------------------------------------------------------------
> 

Logging options are explained in the Administrator's manual at chapter
3.4.3. Adding the following to postgresql.conf should do the trick:

log_statament=true
syslog=2

I would also recommend using logrotate as your log will grow quite big
quite fast. Or if you are a looking for an audit log, I recommend doing
it in the application rather than trying to do it with the database logs
as quite propably the database user id is different than the application
user id. 


> SAMTEK Consultores wrote:
> > Hi:
> > 
> > I need to register all the operations (INSERT/UPDATE/DELETE) that users
> > does.
> > 
> > Something like an log file for the backbone (like a /var/log/messages,
> > where all done is registered).
> > 
> > 
> > Can any help me?
> > 
> > Thanks.
> > 
> > -- 
> > 
> > SAMTEK, Consultores Inform?tica y Telecomunicaciones
> > Calificado como Agente Tecnol?gico por la Consejer?a  de Empleo y Desarrollo Tecnol?gico
> > RAITEC (Red Andaluza de Innovaci?n y Tecnolog?a)
> > 
> > Adolfo M. Pach?n Rodr?guez
> > Director de Sistemas
> > 
> > C/ Salado, Portal 11, Local 8
> > 41010 - Sevilla
> > 
> > tlf: 95 428 6045
> > fax: 95 427 8500
> > 
> > http://www.samtek.es
> > mailto://info@samtek.es
> > 
> > 
> > ---------------------------(end of broadcast)---------------------------
> > TIP 5: Have you checked our extensive FAQ?
> > 
> > http://www.postgresql.org/users-lounge/docs/faq.html
> > 
-- 
GSM: 044 5229238           | This message is probably digitally signed.
www.claymountain.com/~mos/ | Contact me to obtain my public key. 
                           | I'm Microsoft incompatible.      

Attachments:

  signature.asc (application/pgp-signature, 188B) download

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

* Registering all User Operations
@ 2003-01-17 10:46 SAMTEK Consultores <adolfopa@samtek.es>
  2003-01-17 16:49 ` Re: Registering all User Operations Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 1 reply; 5+ messages in thread

From: SAMTEK Consultores @ 2003-01-17 10:46 UTC (permalink / raw)
  To: pgsql-admin

Hi:

I'm using postgresql 7.1 release 1 on RH 7.1.

I need to register all the operations (INSERT/UPDATE/DELETE) that users
does.

Something like an log file for the backbone (like a /var/log/messages,
where all done is registered).


Can any help/explain me for doing this?

Thanks.

-- 

SAMTEK, Consultores Informática y Telecomunicaciones
Calificado como Agente Tecnológico por la Consejería  de Empleo y Desarrollo Tecnológico
RAITEC (Red Andaluza de Innovación y Tecnología)

Adolfo M. Pachón Rodríguez
Director de Sistemas

C/ Salado, Portal 11, Local 8
41010 - Sevilla

tlf: 95 428 6045
fax: 95 427 8500

http://www.samtek.es
mailto://info@samtek.es
-- 

SAMTEK, Consultores Informática y Telecomunicaciones
Calificado como Agente Tecnológico por la Consejería  de Empleo y Desarrollo Tecnológico
RAITEC (Red Andaluza de Innovación y Tecnología)

Adolfo M. Pachón Rodríguez
Director de Sistemas

C/ Salado, Portal 11, Local 8
41010 - Sevilla

tlf: 95 428 6045
fax: 95 427 8500

http://www.samtek.es
mailto://info@samtek.es




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

* Re: Registering all User Operations
  2003-01-17 10:46 Registering all User Operations SAMTEK Consultores <adolfopa@samtek.es>
@ 2003-01-17 16:49 ` Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Bruce Momjian @ 2003-01-17 16:49 UTC (permalink / raw)
  To: SAMTEK Consultores <adolfopa@samtek.es>; +Cc: pgsql-admin


Look in postgresql.conf for something like debug_print_query or
something like that.  7.1 is pretty old, but I am sure it is there
somewhere.

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

SAMTEK Consultores wrote:
> Hi:
> 
> I'm using postgresql 7.1 release 1 on RH 7.1.
> 
> I need to register all the operations (INSERT/UPDATE/DELETE) that users
> does.
> 
> Something like an log file for the backbone (like a /var/log/messages,
> where all done is registered).
> 
> 
> Can any help/explain me for doing this?
> 
> Thanks.
> 
> -- 
> 
> SAMTEK, Consultores Inform?tica y Telecomunicaciones
> Calificado como Agente Tecnol?gico por la Consejer?a  de Empleo y Desarrollo Tecnol?gico
> RAITEC (Red Andaluza de Innovaci?n y Tecnolog?a)
> 
> Adolfo M. Pach?n Rodr?guez
> Director de Sistemas
> 
> C/ Salado, Portal 11, Local 8
> 41010 - Sevilla
> 
> tlf: 95 428 6045
> fax: 95 427 8500
> 
> http://www.samtek.es
> mailto://info@samtek.es
> -- 
> 
> SAMTEK, Consultores Inform?tica y Telecomunicaciones
> Calificado como Agente Tecnol?gico por la Consejer?a  de Empleo y Desarrollo Tecnol?gico
> RAITEC (Red Andaluza de Innovaci?n y Tecnolog?a)
> 
> Adolfo M. Pach?n Rodr?guez
> Director de Sistemas
> 
> C/ Salado, Portal 11, Local 8
> 41010 - Sevilla
> 
> tlf: 95 428 6045
> fax: 95 427 8500
> 
> http://www.samtek.es
> mailto://info@samtek.es
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
> 

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



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


end of thread, other threads:[~2003-01-26 07:21 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-01-17 09:29 Registering all User Operations SAMTEK Consultores <adolfopa@samtek.es>
2003-01-26 01:03 ` Bruce Momjian <pgman@candle.pha.pa.us>
2003-01-26 07:21   ` Mauri Sahlberg <Mauri.Sahlberg@claymountain.com>
2003-01-17 10:46 Registering all User Operations SAMTEK Consultores <adolfopa@samtek.es>
2003-01-17 16:49 ` Bruce Momjian <pgman@candle.pha.pa.us>

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