Search Postgresql Archives

Re: postmaster logfile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Gauthier, Dave escribió:
> Well, I can start the server with....
> 
> postmaster -D /myplace/db 
> 
> ... and then... 
> ^z 
> bg
> 
> ... to get to the prompt.  But each/every time a message from the
> postmaster gets logged, it goes to stdout of the current window.  I want
> it to go to a logfile.  Attempts to redirect with "&" all seem to fail.
> "postmaster -d myplace/db -l logfile start" (as was in the message right
> after the initial db create) doesn't seem to work. 

Enable the redirect_stderr config option in postgresql.conf.  That
should do the trick.  You can change the log file name and directory
on postgresql.conf too.

initdb doesn't say you can use -l in postmaster; it is talking about
pg_ctl.

-- 
Alvaro Herrera                 http://www.amazon.com/gp/registry/CTMLCN8V17R4
"MySQL is a toy compared to PostgreSQL."             (Randal L. Schwartz)
      (http://archives.postgresql.org/pgsql-general/2005-07/msg00517.php)

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux