Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fufrF-0005zN-V0 for pgsql-general@arkaria.postgresql.org; Tue, 28 Aug 2018 15:24:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fufrE-0004Sh-Cy for pgsql-general@arkaria.postgresql.org; Tue, 28 Aug 2018 15:24:40 +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 1fufeA-00083F-Hl for pgsql-general@lists.postgresql.org; Tue, 28 Aug 2018 15:11:10 +0000 Received: from [195.224.43.67] (helo=mail.manifest.co.uk) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fufe7-0005TX-An for pgsql-general@postgresql.org; Tue, 28 Aug 2018 15:11:09 +0000 Received: from tim-573P.m1.manifest.co.uk (192.168.1.20) by MAN4.free1.local (192.168.1.4) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 28 Aug 2018 16:11:05 +0100 Subject: Re: archive items not in correct section order References: <2efc7f44-2820-6b86-6a45-b46bd32cc44d@minerva-analytics.info> <450.1535379741@sss.pgh.pa.us> From: Tim Clarke X-Opacus-Archived: none Organization: Minerva Analytics Ltd To: PostgreSQL General List Message-ID: <6a3a3c92-bd2e-df53-da3a-877cb41bc7e0@minerva-analytics.info> Date: Tue, 28 Aug 2018 16:11:05 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <450.1535379741@sss.pgh.pa.us> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Language: en-GB X-Host-Lookup-Failed: Reverse DNS lookup failed for 195.224.43.67 (failed) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 27/08/18 15:22, Tom Lane wrote: > Tim Clarke writes: >> Last night for the first time our pg_dump backup threw this error for >> the first time. Repeated runs this morning consistently throw it too. > That's not supposed to happen. Can you create a test case, by any chance? > Presumably, it's triggered by some database schema change you made since > the last successful dump. > > regards, tom lane In answer to Adrian's question, we run: pg_dump -U (user) -C (database) then we pipe that out to gpg. pg_dump still throws the error without the pipe. I'm cutting down to find as brief a test case as possible at the moment; current hot favourite is a materialised view that's a crosstab using the functions from here https://www.postgresql.org/docs/10/static/tablefunc.html -- Tim Clarke