postgresql/src
Tom Lane 83b61319a1 Improve behavior of tsearch_readline(), and remove t_readline().
Commit fbeb9da22, which added the tsearch_readline APIs, left
t_readline() in place as a compatibility measure.  But that function
has been unused and deprecated for twelve years now, so that seems
like enough time to remove it.  Doing so, and merging t_readline's
code into tsearch_readline, aids in making several useful
improvements:

* The hard-wired 4K limit on line length in tsearch data files is
removed, by using a StringInfo buffer instead of a fixed-size buffer.

* We can buy back the per-line palloc/pfree added by 3ea7e9550
in the common case where encoding conversion is not required.

* We no longer need a separate pg_verify_mbstr call, as that
functionality was folded into encoding conversion some time ago.

(We could have done some of this stuff while keeping t_readline as a
separate API, but there seems little point, since there's no reason
for anyone to still be using t_readline directly.)

Discussion: https://postgr.es/m/48A4FA71-524E-41B9-953A-FD04EF36E2E7@yesql.se
2020-09-23 20:26:58 -04:00
..
backend Improve behavior of tsearch_readline(), and remove t_readline(). 2020-09-23 20:26:58 -04:00
bin Simplify SortTocFromFile() by removing fixed buffer-size limit. 2020-09-22 16:03:32 -04:00
common Rethink API for pg_get_line.c, one more time. 2020-09-22 15:55:13 -04:00
fe_utils Message fixes and style improvements 2020-09-14 06:42:30 +02:00
include Improve behavior of tsearch_readline(), and remove t_readline(). 2020-09-23 20:26:58 -04:00
interfaces Remove arbitrary line length limit for libpq service files. 2020-09-22 15:59:23 -04:00
makefiles
pl Fix a few more generator scripts to produce pgindent-clean output. 2020-09-21 13:58:26 -04:00
port Add d_type to our Windows dirent emulation. 2020-09-07 23:38:19 +12:00
template
test Improve error cursor positions for problems with partition bounds. 2020-09-23 18:04:53 -04:00
timezone
tools Exclude fmgrprotos.h from pgindent processing. 2020-09-22 11:32:10 -04:00
tutorial Remove support for postfix (right-unary) operators. 2020-09-17 19:38:05 -04:00
.gitignore
DEVELOPERS
Makefile
Makefile.global.in Split Makefile symbol CFLAGS_VECTOR into two symbols. 2020-09-06 21:28:16 -04:00
Makefile.shlib
nls-global.mk