Re: pgAgent STDERR and Time Zone Questions

From: Dave Page <dpage(at)pgadmin(dot)org>
To: "David E(dot) Wheeler" <david(at)justatheory(dot)com>
Cc: pgadmin-support(at)postgresql(dot)org
Subject: Re: pgAgent STDERR and Time Zone Questions
Date: 2011-12-21 09:57:07
Message-ID: CA+OCxoxHH=CdiWpGhDn83sdUsZLywTY8mTOEW2Q-sLtjf-PFzg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

On Wed, Dec 21, 2011 at 2:02 AM, David E. Wheeler <david(at)justatheory(dot)com> wrote:
> On Dec 20, 2011, at 12:14 AM, Dave Page wrote:
>
> postgres=# select * from pgagent.pga_jobsteplog where jslresult <> 0;
>
>
> Can you show me that without the where clause please? If there's too
> much data, please filter by date to exclude lines that aren't on your
> original screenshot.
>
>
> postgres=# select * from pgagent.pga_jobsteplog; jslid | jsljlgid | jsljstid
> | jslstatus | jslresult | jslstart | jslduration | jsloutput
> -------+----------+----------+-----------+-----------+-------------------------------+-----------------+-----------
> 1 | 1 | 1 | s | 127 | 2011-12-15 16:49:25.038705-08 | 00:00:00.024641 | 2 |
> 2 | 1 | s | 15 | 2011-12-15 17:23:03.637553-08 | 00:00:02.496322 | 3 | 3 | 1
> | s | 15 | 2011-12-15 17:25:58.995506-08 | 00:00:00.281899 | 4 | 4 | 1 | s |
> 0 | 2011-12-15 17:35:00.074975-08 | 00:00:48.599992 | 5 | 5 | 1 | s | 0 |
> 2011-12-16 01:06:00.771713-08 | 00:00:49.709092 | 6 | 6 | 3 | s | 5 |
> 2011-12-16 10:46:46.047913-08 | 00:00:00.265507 | 7 | 7 | 3 | s | 0 |
> 2011-12-16 10:50:31.504398-08 | 00:00:00.490332 | 9 | 9 | 7 | s | 0 |
> 2011-12-16 15:28:24.512434-08 | 00:00:00.839441 | 10 | 10 | 7 | s | 5 |
> 2011-12-16 15:31:34.899431-08 | 00:00:00.071114 | 11 | 11 | 7 | s | 5 |
> 2011-12-16 15:38:30.729017-08 | 00:00:00.071268 | 12 | 12 | 7 | s | 5 |
> 2011-12-16 15:39:00.797969-08 | 00:00:00.073382 | 13 | 13 | 7 | s | 0 |
> 2011-12-16 15:39:55.914821-08 | 00:00:00.265437 | 14 | 14 | 1 | s | 0 |
> 2011-12-17 01:06:03.390182-08 | 00:01:00.365723 | 15 | 15 | 1 | s | 0 |
> 2011-12-18 01:06:04.226371-08 | 00:01:01.670605 | 16 | 16 | 1 | s | 0 |
> 2011-12-19 01:06:04.86558-08 | 00:01:02.095472 | 17 | 17 | 1 | s | 0 |
> 2011-12-20 01:06:00.534551-08 | 00:12:44.113144 | (16 rows)

Thanks. The logic used to determine the success or failure of a step
is pretty simple:

if (rc == 0)
stepstatus = wxT("s");
else
stepstatus = steps->GetString(wxT("jstonerror"));

Which is the reason why you see 0's show up as "success". The non-zero
exit codes will show the same status as the
pgagent.pga_jobstep.jstonerror column holds for the step in question.

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

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

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message David E. Wheeler 2011-12-21 18:58:34 Re: pgAgent STDERR and Time Zone Questions
Previous Message Dave Page 2011-12-21 09:50:48 Re: pgAgent STDERR and Time Zone Questions