Remove arbitrary line length limit for libpq service files.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: c0cb87fbb6642222a99593785f77d318af06ef02
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2020-09-22T19:59:23Z
Releases: 14.0
Remove arbitrary line length limit for libpq service files.

Use a StringInfo instead of a fixed-size buffer in parseServiceInfo().
While we've not heard complaints about the existing 255-byte limit,
it certainly seems possible that complex cases could run afoul of it.

Daniel Gustafsson

Discussion: https://postgr.es/m/48A4FA71-524E-41B9-953A-FD04EF36E2E7@yesql.se

Files

PathChange+/−
src/interfaces/libpq/fe-connect.c modified +31 −37

Discussion