Re: Function Hangs

Поиск
Список
Период
Сортировка
От Rob Arnold
Тема Re: Function Hangs
Дата
Msg-id 001e01c1b5d3$0f4cc1a0$4901010a@canrion.net
обсуждение исходный текст
Ответ на Re: Function Hangs  ("Patrick Hatcher" <PHatcher@macys.com>)
Список pgsql-novice
Josh,

Yes, it goes where /dev/null is.  The only thing is that the log can't/wont
rotate that way.  It just keeps growing until postgres is restarted.  (It
can't because there is no way to SIG HUP the postmaster into releasing the
log file, it just stays "in use" until a restart) That may or may not be an
issue.  The other way to handle logging is to enable syslog logging in the
startup config file.  You will have to dig in the manual for the specifics
on that.

--rob

----- Original Message -----
From: "Stephen Ingram" <ingram@samsix.com>
To: "Patrick Hatcher" <PHatcher@macys.com>
Cc: "Josh Berkus" <josh@agliodbs.com>; <pgsql-novice@postgresql.org>
Sent: Wednesday, February 13, 2002 3:11 PM
Subject: Re: Function Hangs


> On Wednesday 13 February 2002 02:48 pm, Patrick Hatcher wrote:
> > I found the Postmaster startup file.  Here is the start params:
> >
> > su -l postgres -c "/usr/bin/pg_ctl -D $PGDATA -p /usr/bin/postmaster -o
"
> > -i" start >/dev/null 2>&1"
> >
> > would the name of the log file go where the /dev/null is?
> >
>
> Hi,
>
> Josh will answer anyway ( :) ), but this tripped me up too when I started.
>
> I know the idea is for it to be configured for ones own site,
> but it seems this is one of the first questions people who start
> with PG ask.
>
> It would be kind of nice if the startup scripts came as
>
> POSTMASTER_LOG=${POSTMASTER_LOG:-"/tmp/postmaster.log"}
> export POSTMASTER_LOG
>
> su -l postgres -c "/usr/bin/pg_ctl -D $PGDATA -p /usr/bin/postmaster -o
"-i"
>     start >${POSTMASTER_LOG} 2>&1"
>
> or some such.
>
> Just waffling on...
>
> Steve
>
>
> > Thanks again for the help
> >
> > Patrick Hatcher
> > Macys.Com
> > Legacy Integration Developer
> > 415-932-0610 office
> >
> >
> >
> >
> >
> >                     Patrick
> >                     Hatcher              To:     "Josh Berkus"
> > <josh@agliodbs.com>@FDS-NOTES cc:     pgsql-novice@postgresql.org
> > 02/13/2002           Subject:     Re: [NOVICE] Function Hangs(Document
> > link: Patrick Hatcher) 11:33 AM
> >
> >
> >
> >
> >
> > It was a Mandrake install, so it auto-starts during system start up.
> >
> > Patrick Hatcher
> > Macys.Com
> > Legacy Integration Developer
> > 415-932-0610 office
> >
> >
> >
> >
> >
> >                     "Josh Berkus"
> >                     <josh@agliodbs       To:     "Patrick Hatcher"
> > <PHatcher@macys.com> .com>                cc:
> > pgsql-novice@postgresql.org Subject:     Re: [NOVICE] Function Hangs
> > 02/13/2002
> >                     11:30 AM
> >
> >
> >
> >
> >
> >
> > Patrick,
> >
> > > Thanks.  Stupid question:  Where would I find the database log?
> >
> > Wherever you put it in your startup options for Postmaster.  I usually
> >  put mine in /var/log/postgresql.  How do you start postmaster?
> >
> > -Josh
> >
> > ______AGLIO DATABASE SOLUTIONS___________________________
> >                                        Josh Berkus
> >   Complete information technology      josh@agliodbs.com
> >    and data management solutions       (415) 565-7293
> >   for law firms, small businesses        fax 621-2533
> >     and non-profit organizations.      San Francisco
> >
> >
> >
> >
> >
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 6: Have you searched our list archives?
> >
> > http://archives.postgresql.org
>


В списке pgsql-novice по дате отправления:

Предыдущее
От: "Josh Berkus"
Дата:
Сообщение: Re: New ID
Следующее
От: Ivan Horvath
Дата:
Сообщение: problem in executing a function