mirror of
https://github.com/postgres/postgres.git
synced 2026-05-28 04:35:45 -04:00
Minimize memory allocation for void (but not null) value.
This commit is contained in:
parent
7ce822372f
commit
fb411a4768
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue