Re: [HACKERS] Is it time to kill support for very old servers? - Mailing list pgsql-hackers

From Andres Freund
Subject Re: [HACKERS] Is it time to kill support for very old servers?
Date
Msg-id 20171011014644.swi5edu3w75tmjea@alap3.anarazel.de
Whole thread Raw
In response to Re: [HACKERS] Is it time to kill support for very old servers?  (Michael Paquier <michael.paquier@gmail.com>)
Responses Re: [HACKERS] Is it time to kill support for very old servers?
List pgsql-hackers
Hi,

On 2017-10-11 10:40:11 +0900, Michael Paquier wrote:
> >> +   if (conn->forced_protocol_version != NULL)
> >> +   {
> >> +       conn->pversion = atoi(conn->forced_protocol_version);
> >> +   }
> >> This should check for strlen > 0 as well.
> >
> > Why? Note that we don't do elsehwere in fe-connect.c.
> 
> Because it seems to me that the default value of the parameter should
> be an empty string instead of D. Feels more consistent with the
> others.

I'm not following. The "D" is in the 'dispchar' field, not the value
field, no? The default value is NULL?

Greetings,

Andres Freund


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: [HACKERS] Is it time to kill support for very old servers?
Next
From: Michael Paquier
Date:
Subject: Re: [HACKERS] Is it time to kill support for very old servers?