Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jc9ij-0007yu-JN for pgsql-general@arkaria.postgresql.org; Fri, 22 May 2020 15:36:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jc9ii-0003l3-If for pgsql-general@arkaria.postgresql.org; Fri, 22 May 2020 15:36:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jc9ii-0003kw-Ag for pgsql-general@lists.postgresql.org; Fri, 22 May 2020 15:36:24 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jc9ig-0007Vr-3Q for pgsql-general@postgresql.org; Fri, 22 May 2020 15:36:23 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id B5D1D5C022F; Fri, 22 May 2020 11:36:20 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 22 May 2020 11:36:20 -0400 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=fm3; bh=g adpoU6C4FGWSOJ0GxyNth+G12Mawy9rPHcGhmivMlg=; b=gtM3pFr759UL4vLHO wz6jTNGsIMcvWeoic/UR9DGZbIyn6TmBD0p6VnCLO1af9dZfUlcqqeYYcplbTXjW Dg2e//6qxJgrjrf3XDzbypqChs5c9CkPH6HEFfsdQqCoQXlgzCq+UV6kfZgObjcK AE7OjN/Ji2i+lW/oIi8hecWZ3BmatdKHHpHw1hdLNliD7om5gTJpe5ZXRRzn3nRQ AVKVeJRcmamW1r+b8JW9ioSjKImAw4SvsC3xhGlWngpjUykP5qdTaugu8c0qqHVc pD0xTvL6tVaeos2edZEUq+jBv0OJf4et1osFFqMnAmhcqTHhf2WC9aQoVYZ6Z5u0 Z0T7A== 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=fm2; bh=gadpoU6C4FGWSOJ0GxyNth+G12Mawy9rPHcGhmivM lg=; b=NkxapSDSv65phld+yzErx2xe8zrtQJLMarBJq3+DQkEZv4zimygTSbenO 88NogVXk4nLNI3EopNiSc51U96FtO52skV48mcd6fqHjjOUu3UMdxLFbs4DZwVDZ Rb3gsRSWbgq1doxnsBDAVH122CSw86zy0JLBLr4RvzohmgJ1hWkoM/EG6T6ATAMN Ddx7O/DBG4Ng31uVKWljws56r34oPGhMscVnsiuf5rABNx0kgyxEsrCIDbzuBuSL o4eTt4NUXwq4LOkh7NU9BHk9k34vab0X6BKEa73YGjoXxXc8u6U909QVepLuhThq fha9Z5spCzLgTLc3LzDbdTr1cd3vA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddufedgledtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeevveefveefueegffekkefhgeeiueffgfetueejvdfg hfeujeejhfekjeelgedtgeenucfkphepjeehrddujedvrdehrddvfedunecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgr vhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id D9493328005E; Fri, 22 May 2020 11:36:19 -0400 (EDT) Subject: Re: pg_dump crashes To: Nico De Ranter Cc: pgsql-general@postgresql.org References: <38072bf3-a3dc-2a4c-21d3-a024a2dfce8b@aklaver.com> <5655d83a-85ff-e8c0-0547-828aca12db39@aklaver.com> <3e14f4f4-342f-c7bf-8ec4-af348b0c8172@aklaver.com> From: Adrian Klaver Message-ID: Date: Fri, 22 May 2020 08:36:19 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 5/22/20 8:17 AM, Nico De Ranter wrote: > > > On Fri, May 22, 2020 at 5:14 PM Adrian Klaver > wrote: > > On 5/22/20 8:05 AM, Nico De Ranter wrote: > > > > > > >     Assuming the above matches: > > > >     COPY public.file (fileid, fileindex, jobid, pathid, filenameid, > >     deltaseq, markid, lstat, md5) > > > >     the '????????????????????' would be for the md5 field. I'm > going to say > >     that is important. > > > > > > But that would be content of the database only. The should matter > for > > the application but not for a dump of the database, right? > > Also what does: > > \d public.file > > show? > > In particular are there any triggers on the table? > > > bacula=# \d public.file >                                  Table "public.file" >    Column   |   Type   | Collation | Nullable |               Default > ------------+----------+-----------+----------+-------------------------------------- >  fileid     | bigint   |           | not null | > nextval('file_fileid_seq'::regclass) >  fileindex  | integer  |           | not null | 0 >  jobid      | integer  |           | not null | >  pathid     | integer  |           | not null | >  filenameid | integer  |           | not null | >  deltaseq   | smallint |           | not null | 0 >  markid     | integer  |           | not null | 0 >  lstat      | text     |           | not null | >  md5        | text     |           | not null | > Indexes: >     "file_pkey" PRIMARY KEY, btree (fileid) >     "file_jobid_idx" btree (jobid) >     "file_jpfid_idx" btree (jobid, pathid, filenameid) > > > > Following up on the max(bigint), I tried > >    SELECT md5 FROM public.file where fileid >2087994666; > > and got > >    ERROR:  compressed data is corrupted > > So it does look like those entries are killing it.  Now for the > million-dollar question: how do I get them out? Do you have recent previous backup? > > Nico > > -- > > Nico De Ranter > > Operations Engineer > -- Adrian Klaver adrian.klaver@aklaver.com