Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Novice > Logging Questio...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 3012 of 3323
Post > Topic >>

Logging Question

by magawake@[EMAIL PROTECTED] ("Mag Gam") Feb 24, 2008 at 03:57 PM

------=_Part_6033_32897100.1203886651030
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi pgsql-novice:

I am using 8.3 and trying to build a log analyzer to take stats. I am
trying
to log the following:
Database Connection: Database Name, so I know which database its on
Statement: SELECT, INSERT, UPDATE, DELETE
Timestamp of Statement
Duration of statement (could be im****tant for performance tuning)

And most im****tant, I would like a record seperator, "<**** >", after each
log entry so my parser can know when to start and stop, for example:

<****>
foo_db: select * from some_table: Feb 21, 2008: 1s
<****>

Is this possible to do? Are there internal catalog command I can use
instead?

Any thoughts?

TIA

------=_Part_6033_32897100.1203886651030
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi pgsql-novice:<br><br>I am using 8.3 and trying to build a log analyzer
to take stats. I am trying to log the following:<br>Database Connection:
Database Name, so I know which database its on<br>
Statement: SELECT, INSERT, UPDATE, DELETE<br>Timestamp of
Statement<br>Duration of statement (could be im****tant for performance
tuning)<br><br>And most im****tant, I would like a record seperator,
&quot;&lt;**** &gt;&quot;, after each log entry so my parser can know when
to start and stop, for example:<br>
<br>&lt;****&gt;<br>foo_db: select * from some_table: Feb 21, 2008:
1s<br>&lt;****&gt;<br><br>Is this possible to do? Are there internal
catalog command I can use instead? <br><br>Any thoughts?<br><br>TIA<br> 

------=_Part_6033_32897100.1203886651030--
 




 3 Posts in Topic:
Logging Question
magawake@[EMAIL PROTECTED  2008-02-24 15:57:31 
Re: Logging Question
tgl@[EMAIL PROTECTED] (T  2008-02-24 17:22:26 
Re: Logging Question
magawake@[EMAIL PROTECTED  2008-02-27 15:15:13 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 5:04:10 CST 2008.