mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
Remove unnecessary pg_verifymbstr() calls from tsvector/query in functions.
The input should've been validated well before it hits the input function. Doing so again is a waste of cycles.
This commit is contained in:
@ -198,8 +198,6 @@ tsvectorin(PG_FUNCTION_ARGS)
|
||||
char *cur;
|
||||
int buflen = 256; /* allocated size of tmpbuf */
|
||||
|
||||
pg_verifymbstr(buf, strlen(buf), false);
|
||||
|
||||
state = init_tsvector_parser(buf, false, false);
|
||||
|
||||
arrlen = 64;
|
||||
|
Reference in New Issue
Block a user