Thread: 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

From
"lichuancheng@highgo.com"
Date:
>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
 
Date: 2018-11-14 15:57
Subject: Re: BUG #15503: Bytea type column select failed when the length of the value is more than 512M
On 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