Re: pg_restore out of memory

From: Francisco Reyes <lists(at)stringsutils(dot)com>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL general <pgsql-general(at)postgresql(dot)org>
Subject: Re: pg_restore out of memory
Date: 2007-06-15 14:41:56
Message-ID: cone.1181918516.285719.53974.5001@35st.simplicato.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alvaro Herrera writes:

> This is pg_restore's stderr. What Tom wants to see is postmaster's. It
> is probably redirected (hopefully to a file, but regretfully it is
> common to see it go to /dev/null) on the init script that starts the
> service.

How would I run it manually?
When I do pg_ctl start, no output ever goes to the screen.
I also looked at the freebsd startup script. It also uses pg_ctl.

Do I just need to send "-l <filename>" to pg_ctl?
According to the man page the default is to send output to /dev/null.

It does seem like -l will redirect to file so going to try that.

man pg_ctl
...
In start mode, a new server is launched. The server is started in the
background, and standard input is attached to /dev/null. The standard
output and standard error are either appended to a log file (if the -l
option is used), or redirected to pg_ctl's standard output (not
stan-dard error).
...

In response to

Browse pgsql-general by date

  From Date Subject
Next Message lawpoop 2007-06-15 14:52:24 persistent db connections in PHP
Previous Message Francisco Reyes 2007-06-15 14:35:00 Re: pg_restore out of memory