Re: pgAgent: C++ Port - Patch Review

From: Linreg <linreg(at)gmx(dot)net>
To: pgadmin-hackers(at)postgresql(dot)org
Cc: Neel Patel <neel(dot)patel(at)enterprisedb(dot)com>, Dave Page <dpage(at)pgadmin(dot)org>
Subject: Re: pgAgent: C++ Port - Patch Review
Date: 2013-10-24 09:29:18
Message-ID: 2223351.A6p7pqJXa9@wolfclan.ang.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Am Donnerstag, 24. Oktober 2013, 11:11:21 schrieb Neel Patel:
> Hi,
>
> Below are the review comments. Compile and tested in Linux.
>
> 1) During compilation we got the following error in "connection.h"
>
> error: pgsql/libpq-fe.h: No such file or directory
>
> To solve the above error we changed "#include <libpg-fe.h>" instead of
> "#include <pgsql/libpq-fe.h>" and it is working fine. Correct me if it is
> some configuration issue.
>
> 2) We are getting the below warning in unix.cpp file which needs to fix.
>
> warning: the use of `tmpnam' is dangerous, better use `mkstemp'.
>
>
> 3) Some of the code is commented and not used so remove the unnecessary
> code.
>
> 4) README file should be modified according to new changes.
>
> 5) In Execute() method in Job.cpp file, we should have to delete "steps"
> from wherever we are returning otherwise it will create the memory leak.
>
>
> Thanks,
> Neel Patel

1.)
it is system dependent. On my SUSE system pibpg-header to be installed under the
pgsql directory.
Example: /usr/include/pgsql/libpq-fe.h

2.)
I changed tmpnam to mkdtemp.
I hope thats is okay

3.)
Can you tell me the name of the files. I will delete comments.

4.)
its also my job?

5.)
I have corrected. In the default branch of the switch statement was a return
statement(Job.cpp Line: 325). Before that i have a "delete steps," added

Thomas Steffen

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2013-10-24 09:33:48 Re: pgAgent: C++ Port - Patch Review
Previous Message Neel Patel 2013-10-24 05:41:21 Re: pgAgent: C++ Port - Patch Review