Re: Re: BUG #15503: Bytea type column select failed when the length of the value is more than 512M - Mailing list pgsql-bugs

From lichuancheng@highgo.com
Subject Re: Re: BUG #15503: Bytea type column select failed when the length of the value is more than 512M
Date
Msg-id 201811141604590662237@highgo.com
Whole thread Raw
List pgsql-bugs
>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

pgsql-bugs by date:

Previous
From: Michael Paquier
Date:
Subject: Re: BUG #15503: Bytea type column select failed when the length ofthe value is more than 512M
Next
From: PG Bug reporting form
Date:
Subject: BUG #15504: pgadmin 4