Re: Avg/max size of these JSON docs in Postgres

2021-10-13 Thread Simon Riggs
On Tue, 12 Oct 2021 at 23:07, Tomas Vondra wrote: > So yeah, there's an explicit 1GB limit per value, but having rows close > to the 1GB limit is going to cause all sorts of unpredictable and rather > painful issues :-( Sounds worth mentioning in doc/src/sgml/limits.sgml -- Simon Riggs

Re: Avg/max size of these JSON docs in Postgres

2021-10-12 Thread Tomas Vondra
mailto:simon.ri...@enterprisedb.com>> wrote: >> >> On Tue, 12 Oct 2021 at 08:14, Ram Pratap Maurya >> mailto:ram.mau...@lavainternational.in>> wrote: >> >> > Confirm what is Avg/max size of these JSON docs in Postgres.

Re: Avg/max size of these JSON docs in Postgres

2021-10-12 Thread Michael Lewis
urya > >> wrote: > >> > >> > Confirm what is Avg/max size of these JSON docs in Postgres. > >> > >> JSON and JSONB datatypes can both be max 1GB in size. > > > > That is per row. > > No, that is per column. > Yes, sorry. My attempt

Re: Avg/max size of these JSON docs in Postgres

2021-10-12 Thread Simon Riggs
On Tue, 12 Oct 2021 at 18:53, Michael Lewis wrote: > > On Tue, Oct 12, 2021 at 1:43 AM Simon Riggs > wrote: >> >> On Tue, 12 Oct 2021 at 08:14, Ram Pratap Maurya >> wrote: >> >> > Confirm what is Avg/max size of these JSON docs in Postgres. >> &g

Re: Avg/max size of these JSON docs in Postgres

2021-10-12 Thread Tom Lane
Michael Lewis writes: > Just to confirm- The compression associated with TOAST is only if the value > can fit in line, right? Columns don't get stored out-of-line in a toast > table as a compressed value as I read the documentation. I suppose that > would make reads a bit crazy. The default behav

Re: Avg/max size of these JSON docs in Postgres

2021-10-12 Thread Michael Lewis
On Tue, Oct 12, 2021 at 1:43 AM Simon Riggs wrote: > On Tue, 12 Oct 2021 at 08:14, Ram Pratap Maurya > wrote: > > > Confirm what is Avg/max size of these JSON docs in Postgres. > > JSON and JSONB datatypes can both be max 1GB in size. > That is per row. Just to

Re: Avg/max size of these JSON docs in Postgres

2021-10-12 Thread Simon Riggs
On Tue, 12 Oct 2021 at 08:14, Ram Pratap Maurya wrote: > Confirm what is Avg/max size of these JSON docs in Postgres. JSON and JSONB datatypes can both be max 1GB in size. -- Simon Riggshttp://www.EnterpriseDB.com/

Avg/max size of these JSON docs in Postgres

2021-10-12 Thread Ram Pratap Maurya
Hi Team, Confirm what is Avg/max size of these JSON docs in Postgres. Regards, Ram Pratap.