mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-23 19:39:53 +08:00
Minimize memory allocation for void (but not null) value.
This commit is contained in:
parent
7ce822372f
commit
fb411a4768
@ -451,6 +451,8 @@ tsvector_in(PG_FUNCTION_ARGS)
|
||||
|
||||
if (len > 0)
|
||||
len = uniqueentry(arr, len, tmpbuf, &buflen);
|
||||
else
|
||||
buflen=0;
|
||||
totallen = CALCDATASIZE(len, buflen);
|
||||
in = (tsvector *) palloc(totallen);
|
||||
memset(in, 0, totallen);
|
||||
|
Loading…
Reference in New Issue
Block a user