Re: Lift line-length limit for pg_service.conf
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2020-09-22T20:07:10Z
Lists: pgsql-hackers
Daniel Gustafsson <daniel@yesql.se> writes: > [ 0001-Refactor-pg_service.conf-and-pg_restore-TOC-file-par.patch ] I reviewed this and noticed that you'd missed adding resetStringInfo calls in some code paths, which made me realize that while pg_get_line_append() is great for its original customer in hba.c, it kinda sucks for most other callers. Having to remember to do resetStringInfo in every path through a loop is too error-prone, and it's unnecessary. So I made another subroutine that just adds that step, and updated the existing callers that could use it. Pushed with that correction. regards, tom lane
Commits
-
Improve behavior of tsearch_readline(), and remove t_readline().
- 83b61319a16c 14.0 landed
-
Avoid possible dangling-pointer access in tsearch_readline_callback.
- c1f63c42fc13 11.10 landed
- b91033ae9bc5 10.15 landed
- b1fbb7d08f22 9.6.20 landed
- 61cfd90621d6 9.5.24 landed
- 5d0c80658328 12.5 landed
- 569f6a89a915 13.1 landed
- 3ea7e9550e58 14.0 landed
-
Simplify SortTocFromFile() by removing fixed buffer-size limit.
- 2e3c19462da9 14.0 landed
-
Remove arbitrary line length limit for libpq service files.
- c0cb87fbb664 14.0 landed
-
Rethink API for pg_get_line.c, one more time.
- 931487018c40 14.0 landed