pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: David Rowley <dgrowleyml@gmail.com>
Cc: craig.ringer@enterprisedb.com
Cc: matthieu.garrigues@gmail.com
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Implement pipeline mode in libpq
Date: Tue, 6 Apr 2021 09:53:47 -0400
Message-ID: <20210406135347.GA18862@alvherre.pgsql> (raw)
In-Reply-To: <CAApHDvrw=HHESn1UR9MYuHuqMMbJRk6VFHFwioq0P+xO-D5QXA@mail.gmail.com>

On 2021-Apr-06, David Rowley wrote:

> I'm still not really sure why this code does #define directly followed
> by an #ifdef for that define.  However, just to clear up the final
> compiler warning that's currently being produced on MSVC, I've
> attached a proposed patch to fix it.

Hi David, sorry for failing to reply.  (I actually did write a reply,
but my mail setup was broken at the time so it was lost.  Sigh)

I did not intend to have the define defined at all times.  Leaving it
there was an oversight.  Let's just remove the #define line; users
interested in that output can turn it on when they need it.  Removing it
means less clutter in the buildfarm output.  Interesting conditions that
the test should check for should be tested and dealt with by using
pg_fatal, so that the test framework correctly detects a failure.  The
pg_debug lines are there just to debug the test itself.

Now about the define being called DEBUG, that was just a silly
oversight; your suggestion to change it to DEBUG_OUTPUT is good, so
let's do that.

I +1 you pushing your patch.

Thanks,

-- 
Álvaro Herrera                            39°49'30"S 73°17'W





view thread (7+ messages)  latest in thread

Message-ID: <20210406135347.GA18862@alvherre.pgsql>
Permalink:  ../20210406135347.GA18862@alvherre.pgsql/
Also on:    postgresql.org/message-id/20210406135347.GA18862@alvherre.pgsql

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: alvherre@alvh.no-ip.org, dgrowleyml@gmail.com, craig.ringer@enterprisedb.com, matthieu.garrigues@gmail.com
  Subject: Re: pgsql: Implement pipeline mode in libpq
  In-Reply-To: <20210406135347.GA18862@alvherre.pgsql>
  References: <CAApHDvrw=HHESn1UR9MYuHuqMMbJRk6VFHFwioq0P+xO-D5QXA@mail.gmail.com> <20210406135347.GA18862@alvherre.pgsql>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox