Re: document json[b] limitation

2018-04-25 Thread Michael Paquier
On Wed, Apr 25, 2018 at 06:50:51PM +0300, Oleg Bartunov wrote: > Oops, it should be 256 Mb :) The numbers you are presenting are right, aka 1GB for json: =# create table aa (a json); CREATE TABLE =# insert into aa select ('{"key":"' || repeat('a', 512 * 1024 * 1024) || repeat('a', 500 * 1024

Re: document json[b] limitation

2018-04-25 Thread Oleg Bartunov
On Wed, Apr 25, 2018 at 6:50 PM, Oleg Bartunov wrote: > On Wed, Apr 25, 2018 at 2:12 AM, Tom Lane wrote: >> Oleg Bartunov writes: >>> Attached is a small patch, which documents the maximum size of >>> json[b] types. Probably, it's worth to patch previous releases, where >>> the types were introd

Re: document json[b] limitation

2018-04-25 Thread Oleg Bartunov
On Wed, Apr 25, 2018 at 2:12 AM, Tom Lane wrote: > Oleg Bartunov writes: >> Attached is a small patch, which documents the maximum size of >> json[b] types. Probably, it's worth to patch previous releases, where >> the types were introduced. > > If you said "maximum size is 1GB", period, I'd beli

Re: document json[b] limitation

2018-04-24 Thread Tom Lane
Oleg Bartunov writes: > Attached is a small patch, which documents the maximum size of > json[b] types. Probably, it's worth to patch previous releases, where > the types were introduced. If you said "maximum size is 1GB", period, I'd believe it ... although I'm pretty sure that general limitatio