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 1gK5Xs-0005ff-0s for pgsql-general@arkaria.postgresql.org; Tue, 06 Nov 2018 17:53:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gK5Xq-0003w8-Bw for pgsql-general@arkaria.postgresql.org; Tue, 06 Nov 2018 17:53:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gK5Xq-0003qf-01 for pgsql-general@lists.postgresql.org; Tue, 06 Nov 2018 17:53:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gK5Xm-0007k7-Nu for pgsql-general@postgresql.org; Tue, 06 Nov 2018 17:53:40 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id wA6HrVuo027074; Tue, 6 Nov 2018 12:53:31 -0500 From: Tom Lane To: Adrian Klaver cc: Daniel Verite , Charles Martin , pgsql-general 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> Comments: In-reply-to Adrian Klaver message dated "Tue, 06 Nov 2018 09:00:35 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <27072.1541526811.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 06 Nov 2018 12:53:31 -0500 Message-ID: <27073.1541526811@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Adrian Klaver writes: > On 11/6/18 8:27 AM, Daniel Verite wrote: >> Adrian Klaver wrote: >>> 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. Another possibility, seeing that the problematic data is bytea, is that it might depend on whether you use hex or escape bytea_output format. Hex format is reliably twice the size of the stored data, but escape format could be anywhere from the same size as the stored data to four times the size, depending on the contents. pg_dump is agnostic about this and will just dump using the prevailing bytea_output setting, so you might be able to get it to work by changing that setting. regards, tom lane