Remove arbitrary line length limit for libpq service files.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 22 Sep 2020 19:59:23 +0000 (15:59 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 22 Sep 2020 19:59:23 +0000 (15:59 -0400)
commitc0cb87fbb6642222a99593785f77d318af06ef02
tree4d58202bd8b293e3eac25185ca0e6915fb659386
parent931487018c409a3102452f965ccaa48367244a41
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
src/interfaces/libpq/fe-connect.c