Re: initdb fails to initialize data directory
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>, Nikhil Sontakke <nikhils@2ndquadrant.com>, PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Date: 2018-04-20T00:03:35Z
Lists: pgsql-hackers
On Thu, Apr 19, 2018 at 04:59:44PM -0300, Alvaro Herrera wrote: > Heikki Linnakangas wrote: >> Nitpick: using MAXPGPATH seems for the buffer size seems to wrong to me. >> We're not storing a path here. MAXPGPATH is 1024 by default, which seems >> fine, but I would've spelled it out directly as "line[1000]". > > Hmm ... yeah, kinda. Do you care about it strongly enough for me to fix > it in all branches? Perhaps that's not worth bothering, but using MAXPGPATH which is for file and folder paths for a line read ffrom a command output is disturbing. So like Heikki I would suggest to just remove the reference and use a hardcoded, independent, size (could add a comment as well). -- Michael
Commits
-
Enlarge find_other_exec's meager fgets buffer
- e668507d36f8 9.4.18 landed
- e2f3b6560383 10.4 landed
- e160fa005e80 9.5.13 landed
- cea5f9aa1244 11.0 landed
- b3f4742aab82 9.6.9 landed
- 070179a4a2f8 9.3.23 landed