Re: Re: BUG #15503: Bytea type column select failed when the length of the value is more than 512M
Re: Re: BUG #15503: Bytea type column select failed when the length of the value is more than 512M
От:
"lichuancheng@highgo.com" <lichuancheng@highgo.com>
Дата:
>Nope. palloc() is able to allocate up to 1GB.
The size of bytea is 512M,but in byteaout() function, it expend to more than 1G.
######
rp = result = palloc(VARSIZE_ANY_EXHDR(vlena) * 2 + 2 + 1);
######
--
lchch
From: Michael PaquierDate: 2018-11-14 15:57Subject: Re: BUG #15503: Bytea type column select failed when the length of the value is more than 512MOn Wed, Nov 14, 2018 at 06:23:21AM +0000, PG Bug reporting form wrote:> is it a bug?Nope. palloc() is able to allocate up to 1GB.--Michael