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 1jc9J9-0007Fo-RV for pgsql-general@arkaria.postgresql.org; Fri, 22 May 2020 15:09:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jc9J8-00044Y-PO for pgsql-general@arkaria.postgresql.org; Fri, 22 May 2020 15:09:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jc9J8-00044R-Hh for pgsql-general@lists.postgresql.org; Fri, 22 May 2020 15:09:58 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jc9J6-0004Vz-9x for pgsql-general@postgresql.org; Fri, 22 May 2020 15:09:57 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 72A625C0189; Fri, 22 May 2020 11:09:55 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 22 May 2020 11:09:55 -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=a mBstVS9xOIWRfZfubHLpOVPPHK3SZLYdqCWVXO+rT0=; b=O6SqLFmiYBS0VuRFH a9fbxVJcXXsdK09CKSU08+xnWXJQXqXDSoRA7MawaAXeFgRfah9VOY40xy1PL2Rm hGeFBk41aNb94OtgezO6Fb1DI5b/ZhoUhWViFnh1RmWQjIchettCBBD9BIYc3CVZ C2iCbZjVStPBSjox245GPgUY0Pdrc10HugontSqvpuOwT7P1+yf8TDxxPv0FJX3v UkY0Yq9RuOd2DxaqUDBOrSoybdshxKezdEbK8mys815Oo7k2+5tiz9scM6FziHWq hLGWSaX3dZ4Uh24cDdt0OyJC1tN9tcOk8iyr5E29DOk5Zp6m11tfAmwe1DYLPw1x Ecm0Q== 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=amBstVS9xOIWRfZfubHLpOVPPHK3SZLYdqCWVXO+r T0=; b=TOfwnjw75pEQ6xyC73nw6Ww0HIDLN2gqFVijQiuwegDfdEH+EI3rVei8u x3bOpQ6u+43xyZFbkwWvGg0a18i1blpvaV/XPE+K37gLo4MFwPf/nXKiG5dNtImR DJmcavL7Tr9UBYZL4LhWwrNCd5YRLM3T4tGsPXBKiofaHJPXkH6uywTUvdS16P3d BMGXHhZ3FvR164GVGVw9uDS75M3PMc5yGurpSk3FBBqKhWQbiU26hx1rqJcyNDip zYOjxrRUPAqkV7BpDhcGeqwtZcDIuLrU1RBPRKNCdvotUjB1f0Dk9MdZ3ejgABC6 /LmhLgTbL9MxWnuhouZxIDN7ujaSQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddufedgkeehucetufdoteggodetrfdotf 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 979A2328005A; Fri, 22 May 2020 11:09:54 -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> From: Adrian Klaver Message-ID: <3120cb66-0b6c-c78b-8d96-eb7d13e1352e@aklaver.com> Date: Fri, 22 May 2020 08:09:53 -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:05 AM, Nico De Ranter wrote: > > On Fri, May 22, 2020 at 5:02 PM Adrian Klaver > wrote: > > On 5/22/20 7:55 AM, Nico De Ranter wrote: > > Correct. > > > > If I run 'pg_dumpall --cluster 11/main --file=dump.sql'   the end > of the > > file looks like: > > > > ###### cut here > > 4557430888798830399 1061109567 1061109567 1061109567 1061109567 > 16191 \N > > \N ?????????????????????????????? > > 4557430888798830399 1061109567 1061109567 1061109567 1061109567 > 16191 \N > > \N ?????????????????????????????? > > \. > > > > ###### cut here > > > > If I run 'pg_dump --table=public.file --cluster 11/main > > --file=dump-2.sql bacula'  those lines are actually followed by > about > > 850 or so lines that look ok.  I'm assuming the difference is due to > > buffering. > > However the fact that I do see a number of regular lines > following this > > may suggest it's just garbage in the table but not really causing > the > > issue afterall. > > 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? I would think that depends on what '???????' is really representing. In the database try: SELECT md5 FROM public.file where fileid = 4557430888798830399; -- Adrian Klaver adrian.klaver@aklaver.com