dbTalk Databases Forums  

postgres logs

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss postgres logs in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chris
 
Posts: n/a

Default postgres logs - 12-22-2003 , 12:00 PM






I was wondering if postgres generates any logs. If so where are they. Or does it have to be told to make them. If this is the case what do i have to do to do that.

Reply With Quote
  #2  
Old   
Matt Lynch
 
Posts: n/a

Default Re: postgres logs - 12-22-2003 , 12:14 PM






HI Chris,

You can specify the log file with the -l option
e.g.
pg_ctl start -l c:\psql.log

You can also configure what goes into the log with options

e.g.
pg_ctl start -l c:\psql.log -o "-d16 -D C:\postgis\data -c
MAX_CONNECTIONS=yes -c DEBUG_PRINT_PARSE=yes -c LOG_PID=yes -c
LOG_TIMESTAMP=yes -c LOG_CONNECTIONS=yes -c SHOW_PARSER_STATS=yes -c
STATS_COMMAND_STRING=yes"

You will find details on the options in Chap 16 of the manual HYPERLINK
"http://www.postgres.org/docs/current/static/runtime.html"http://www.pos
tgres.org/docs/current/static/runtime.html

Regards,

Matt



-----Original Message-----
From: pgsql-novice-owner (AT) postgresql (DOT) org
[mailtogsql-novice-owner (AT) postgresql (DOT) org] On Behalf Of Chris
Sent: Monday, December 22, 2003 11:00 AM
To: pgsql-novice (AT) postgresql (DOT) org
Subject: [NOVICE] postgres logs


I was wondering if postgres generates any logs. If so where are they. Or
does it have to be told to make them. If this is the case what do i have
to do to do that.


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.