From: lichuancheng@highgo.com <lichuancheng@highgo.com>
To: Michael Paquier <michael@paquier.xyz>
To: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: Re: BUG #15503: Bytea type column select failed when the length of the value is more than 512M
Date: Wed, 14 Nov 2018 16:04:59 +0800
Message-ID: <201811141604590662237@highgo.com> (raw)
References: <15503-0ea185f3f6ad9b99@postgresql.org>
<20181114075735.GE13659@paquier.xyz>
>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 Paquier
Date: 2018-11-14 15:57
To: lichuancheng@highgo.com; pgsql-bugs@lists.postgresql.org
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: lichuancheng@highgo.com, michael@paquier.xyz
Subject: Re: BUG #15503: Bytea type column select failed when the length of the value is more than 512M
In-Reply-To: <201811141604590662237@highgo.com>
References: <15503-0ea185f3f6ad9b99@postgresql.org> <20181114075735.GE13659@paquier.xyz> <201811141604590662237@highgo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox