Proposed patch for this bug in attached files.

(See attached file: connection.cpp)(See attached file: connection.h)(See attached file: job.cpp)

Tested against PG 9.1.4, all seems fine, success/failure reported correctly even when multiple jobs ran concurrently.

Please test and feed back.

Thanks.

pgadmin-support-owner@postgresql.org wrote on 06/07/2012 12:29:56:

> From: Dave Page <dpage@pgadmin.org>

> To: Martin French <Martin.French@romaxtech.com>,
> Cc: pgadmin-support@postgresql.org
> Date: 06/07/2012 15:35
> Subject: Re: [pgadmin-support] pgAgent reports failure upon success
> Sent by: pgadmin-support-owner@postgresql.org
>
>

> On Fri, Jul 6, 2012 at 12:26 PM, Martin French <Martin.French@romaxtech.com
> > wrote:

> Yep, can do, and will do Dave.
>
> Will be after the weekend now, but should have something Monday eve.

> Great.
>  
> Have a good weekend mate.
>
> Cheers

>
> And you! 

>
> Cheers, Dave.

>
> --
> Dave Page
> Blog: http://pgsnake.blogspot.com
> Twitter: @pgsnake
>
> EnterpriseDB UK: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
============================================= Romax Technology Limited Rutherford House Nottingham Science & Technology Park Nottingham, NG7 2PZ England Telephone numbers: +44 (0)115 951 88 00 (main) For other office locations see: http://www.romaxtech.com/Contact ================================= =============== E-mail: info@romaxtech.com Website: www.romaxtech.com ================================= ================ Confidentiality Statement This transmission is for the addressee only and contains information that is confidential and privileged. Unless you are the named addressee, or authorised to receive it on behalf of the addressee you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please delete from your system and contact the sender. Thank you for your cooperation. =================================================