Re: pgAgent STDERR and Time Zone Questions

Поиск
Список
Период
Сортировка
От Dave Page
Тема Re: pgAgent STDERR and Time Zone Questions
Дата
Msg-id CA+OCxox4xs+Lwe7cL3pa6wQ0xq7pS8XFxvrJEsbPCfcsXGm9Yg@mail.gmail.com
обсуждение исходный текст
Ответ на pgAgent STDERR and Time Zone Questions  ("David E. Wheeler" <david@justatheory.com>)
Ответы Re: pgAgent STDERR and Time Zone Questions  ("David E. Wheeler" <david@justatheory.com>)
Список pgadmin-support
On Fri, Dec 16, 2011 at 5:47 PM, David E. Wheeler <david@justatheory.com> wrote:
> Howdy,
>
> I have a few questions about pgAgent, which I’ve just set up and am using at work.
>
> • I’m using -s to send errors to a log file. However, it only seems to log STDOUT, not STDERR. Is that right? Do I
needto modify my batch scripts to 2>&1 to get STDERR output? 

All of the internal logging goes to the file if specified, or stdout,
with the exception of a couple of serious errors, like "failed to open
the logfile". wxWidgets might be writing some of it's own logging
output to stderr though I guess.

> • When scheduling execution times in pgAdmin, what time zone does it use?

It doesn't, as you don't typically specify absolute dates in schedule
(except sometimes for exceptions and
start/end dates - then it'll default to whatever the connection will use)

> And what time zone does pgagent use to determine when it's time to run a job?

Whatever the default is for the client that causes the execution time
to be recalculated.

In truth though, when this was originally written I don't think anyone
really considered different timezones. Patches are welcome if you want
to improve.

> And on a side note: What are the chance the pgAgent daemon could be modified so that it does not use the wx library.
Seemskind of silly to include a GUI library in a daemon, though I don’t doubt that it makes windows compatibility
easier.

wxWidgets isn't just a GUI library - it consists of various individual
libraries offering different features, some of which are GUI related,
and some are not. pgAgent doesn't use any of the GUI ones, so there's
no requirement to install any GUI components on your server (unless
your chosen packaging for wxWidgets doesn't separate the GUI and
non-GUI parts of course).


--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Guillaume Lelarge
Дата:
Сообщение: Re: CREATE CONSTRAINT TRIGGER in SQL pane (pgAdmin 1.14.1)
Следующее
От: Dave Page
Дата:
Сообщение: Re: pgAgent STDERR and Time Zone Questions