| From: | David Rowley <dgrowleyml(at)gmail(dot)com> |
|---|---|
| To: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
| Cc: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | Re: pgsql: Implement pipeline mode in libpq |
| Date: | 2021-03-30 07:19:26 |
| Message-ID: | CAApHDvqTTgDm38s4HRj03nhzhzQ1oMOj-RXFUB1pE6Bj07jyuQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Hi Alvaro,
On Tue, 16 Mar 2021 at 10:20, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> wrote:
>
> Implement pipeline mode in libpq
> src/test/modules/libpq_pipeline/libpq_pipeline.c | 1303 ++++++++++++++++++++
I'm wondering if you meant to leave the "#define DEBUG" line at line
34 in the above file?
It seems pretty strange to do:
#define DEBUG
#ifdef DEBUG
#define pg_debug(...) do { fprintf(stderr, __VA_ARGS__); } while (0)
#else
#define pg_debug(...)
#endif
pg_debug will never be an empty macro.
I noticed this when testing compiling postgres with MSVC. The compiler
is kicking out a warning: 'DEBUG': macro redefinition, which will be
because that compiler defines DEBUG when doing non-production builds.
David
| From | Date | Subject | |
|---|---|---|---|
| Next Message | David Rowley | 2021-03-30 07:28:34 | pgsql: Fix compiler warning in unistr function |
| Previous Message | David Rowley | 2021-03-30 06:57:11 | pgsql: Allow users of simplehash.h to perform direct deletions |