pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Daniel Verite <daniel@manitou-mail.org>
Cc: Charles Martin <ssappeals@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Trouble Upgrading Postgres
Date: Tue, 6 Nov 2018 09:00:35 -0800
Message-ID: <35cc6f6d-a16f-5361-19fa-a89999d6c175@aklaver.com> (raw)
In-Reply-To: <89b5b622-4c79-4c95-9ad4-b16d0d0daf9b@manitou-mail.org>
References: <89b5b622-4c79-4c95-9ad4-b16d0d0daf9b@manitou-mail.org>

On 11/6/18 8:27 AM, Daniel Verite wrote:
> 	Adrian Klaver wrote:
> 
>>> So there's no way it can deal with the contents over 500MB, and the
>>> ones just under that limit may also be problematic.
>>
>> To me that looks like a bug, putting data into a record you cannot get out.
> 
> Strictly speaking, it could probably get out with COPY in binary format,
> but pg_dump doesn't use that.
> 
> It's undoubtedly very annoying that a database can end up with
> non-pg_dump'able contents, but it's not an easy problem to solve.
> Some time ago, work was done to extend the 1GB limit
> but eventually it got scratched. The thread in [1] discusses
> many details of the problem and why the proposed solution
> were mostly a band aid. Basically, the specs of COPY
> and other internal aspects of Postgres are from the 32-bit era when
> putting the size of an entire CDROM in a single row/column was not
> anticipated as a valid use case.
> It's still a narrow use case today and applications that need to store
> big pieces of data like that should slice them in chunks, a bit like in
> pg_largeobject, except in much larger chunks, like 1MB.


Should there not be some indication of this in the docs here?:

https://www.postgresql.org/docs/11/datatype-binary.html

> 
> [1] pg_dump / copy bugs with "big lines" ?
> https://www.postgresql.org/message-id/1836813.YmyOrS99PX%40ronan.dunklau.fr
> 
> Best regards,
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (35+ messages)  latest in thread

Message-ID: <35cc6f6d-a16f-5361-19fa-a89999d6c175@aklaver.com>
Permalink:  ../35cc6f6d-a16f-5361-19fa-a89999d6c175@aklaver.com/
Also on:    postgresql.org/message-id/35cc6f6d-a16f-5361-19fa-a89999d6c175@aklaver.com

 · 

reply

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-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, daniel@manitou-mail.org, ssappeals@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: Trouble Upgrading Postgres
  In-Reply-To: <35cc6f6d-a16f-5361-19fa-a89999d6c175@aklaver.com>
  References: <89b5b622-4c79-4c95-9ad4-b16d0d0daf9b@manitou-mail.org> <35cc6f6d-a16f-5361-19fa-a89999d6c175@aklaver.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