Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gK4ij-0003Kq-FJ for pgsql-general@arkaria.postgresql.org; Tue, 06 Nov 2018 17:00:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gK4ih-0003jC-KD for pgsql-general@arkaria.postgresql.org; Tue, 06 Nov 2018 17:00:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gK4ig-0003j4-F7 for pgsql-general@lists.postgresql.org; Tue, 06 Nov 2018 17:00:51 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gK4iY-0003Sh-Ha for pgsql-general@postgresql.org; Tue, 06 Nov 2018 17:00:50 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 0C98B102E; Tue, 6 Nov 2018 12:00:39 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 06 Nov 2018 12:00:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=n U3Rh/ZCQKgwpoY/jujSx4VbCCYLXzFPd0u33XJYroc=; b=h+9F1c6Qz3BESo2xG OwCSa4Lxw7zPs2WX+3zCTlKTD51gS6fcjV88VxJpgrvq6asOyegE/yoB2RvBgUXA UyPWVXVgOGCDFAT9/DFpBuHzrTfdFIOhdbiBLlbqZ+zY9pfzoOJl/0MkoFIwdF+S ABQcT+QGUlF4Vr4WDpmuXJc2k26yaa7vfI/0giQmxQSrrnt1V+cN+jYQFn/POlSl XI3TA5Aqb/0+PUhQl01eNhM3VWET0Eao8tEoy6OqJdV3ZLfPu631S/NUccHbb2wZ sjD0TDp3MiSF/2NF27QDTSkgeLtgBzhmT4Iy0C43X9tyDhbltm9c0mm2K71YCkvn WhfEQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=nU3Rh/ZCQKgwpoY/jujSx4VbCCYLXzFPd0u33XJYr oc=; b=FSM8yhBTMsl7TonsGHsd9+PAvaDbwyfdxp4oO4EH4qEZI+SHoxXAYO+ng lmYOccm1bdRx1v+SVsJSZBDWT95AGLn63rfjezMYdiwDB0Dx/BfJljpmmj8JFTNC RpbTmZGPH/LVZJ2+9gOgHtTmecgBC1yFN6jHCAfdZl6r1LZx+DFEnJ1LWITksulC TNLsBk6Rq1UUqJyyWLOzD5kBO4hdgv8YFhzfdt9attl2/o587lEa6Ggj6qzxEhJf tmZSVLbBTbw9s5WA/SqdSToeZzjVyxFjQfg+BIMMtGfJGOVjCb59NtoK3T3tq+O4 ZG8PR9M8aV+owoSlhw/JlAd7FJ0Kg== X-ME-Sender: X-ME-Proxy: Received: from ranger.suse (c-73-239-117-238.hsd1.wa.comcast.net [73.239.117.238]) by mail.messagingengine.com (Postfix) with ESMTPA id AB713E454E; Tue, 6 Nov 2018 12:00:37 -0500 (EST) Subject: Re: Trouble Upgrading Postgres To: Daniel Verite Cc: Charles Martin , Tom Lane , pgsql-general References: <89b5b622-4c79-4c95-9ad4-b16d0d0daf9b@manitou-mail.org> From: Adrian Klaver Message-ID: <35cc6f6d-a16f-5361-19fa-a89999d6c175@aklaver.com> Date: Tue, 6 Nov 2018 09:00:35 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <89b5b622-4c79-4c95-9ad4-b16d0d0daf9b@manitou-mail.org> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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