pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Is it possible to trace all transactions done?
4+ messages / 3 participants
[nested] [flat]

* Is it possible to trace all transactions done?
@ 2006-06-23 05:51  kah_hang_ang@toray.com.my
  0 siblings, 1 reply; 4+ messages in thread

From: kah_hang_ang@toray.com.my @ 2006-06-23 05:51 UTC (permalink / raw)
  To: pgsql-admin





Hi,

Is Postgresql provide feature to log all the transactions/queries have been
triggered into log?

Thanks.




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

* Re: Is it possible to trace all transactions done?
@ 2006-06-24 09:25  hubert depesz lubaczewski <depesz@gmail.com>
  parent: kah_hang_ang@toray.com.my
  0 siblings, 0 replies; 4+ messages in thread

From: hubert depesz lubaczewski @ 2006-06-24 09:25 UTC (permalink / raw)
  To: kah_hang_ang@toray.com.my <kah_hang_ang@toray.com.my>; +Cc: pgsql-admin

On 6/23/06, kah_hang_ang@toray.com.my <kah_hang_ang@toray.com.my> wrote:
>
> Is Postgresql provide feature to log all the transactions/queries have
> been
> triggered into log?
>

sure. check you postgresl.conf file.
log_statement is what you're looking for.

depesz


-- 
http://www.depesz.com/ - nowy, lepszy depesz

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

* Re: Is it possible to trace all transactions done?
@ 2006-06-26 02:04  kah_hang_ang@toray.com.my
  0 siblings, 1 reply; 4+ messages in thread

From: kah_hang_ang@toray.com.my @ 2006-06-26 02:04 UTC (permalink / raw)
  To: hubert depesz lubaczewski <depesz@gmail.com>; +Cc: pgsql-admin





Depesz,

Thanks, this is I what I need.
After I enable the log_statement Postgresql do log the statements triggered
but I need more detail info. - time the statements been triggered to be log
as well,
is it any way to do that?


Regards,
KH Ang




                                                                                                                                       
                      "hubert depesz                                                                                                   
                      lubaczewski"             To:       "kah_hang_ang@toray.com.my" <kah_hang_ang@toray.com.my>                       
                      <depesz@gmail.com        cc:       pgsql-admin@postgresql.org                                                    
                      >                        Subject:  Re: [ADMIN] Is it possible to trace all transactions done?                    
                                                                                                                                       
                      06/24/2006 05:25                                                                                                 
                      PM                                                                                                               
                                                                                                                                       
                                                                                                                                       




On 6/23/06, kah_hang_ang@toray.com.my <kah_hang_ang@toray.com.my> wrote:
Is Postgresql provide feature to log all the transactions/queries have been
triggered into log?

sure. check you postgresl.conf file.
log_statement is what you're looking for.

depesz


--
http://www.depesz.com/ - nowy, lepszy depesz





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

* Re: Is it possible to trace all transactions done?
@ 2006-06-26 02:24  Tom Lane <tgl@sss.pgh.pa.us>
  parent: kah_hang_ang@toray.com.my
  0 siblings, 0 replies; 4+ messages in thread

From: Tom Lane @ 2006-06-26 02:24 UTC (permalink / raw)
  To: kah_hang_ang@toray.com.my; +Cc: hubert depesz lubaczewski <depesz@gmail.com>; pgsql-admin

kah_hang_ang@toray.com.my writes:
> After I enable the log_statement Postgresql do log the statements triggered
> but I need more detail info. - time the statements been triggered to be log
> as well,

In recent PG releases you set log_line_prefix to add whatever you want
to log entries.  Older versions are a bit less flexible, but there's
pretty much always been an option to include a timestamp in log entries.
Please read the administrator's guide ...

			regards, tom lane



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


end of thread, other threads:[~2006-06-26 02:24 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-06-23 05:51 Is it possible to trace all transactions done? kah_hang_ang@toray.com.my
2006-06-24 09:25 ` hubert depesz lubaczewski <depesz@gmail.com>
2006-06-26 02:04 Re: Is it possible to trace all transactions done? kah_hang_ang@toray.com.my
2006-06-26 02:24 ` Tom Lane <tgl@sss.pgh.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