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 1fwdsZ-0006uu-Mq for pgsql-general@arkaria.postgresql.org; Mon, 03 Sep 2018 01:42:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fwdsV-0003pb-KZ for pgsql-general@arkaria.postgresql.org; Mon, 03 Sep 2018 01:42:07 +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 1fwdsT-0003pS-U0 for pgsql-general@lists.postgresql.org; Mon, 03 Sep 2018 01:42:07 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fwdsI-0005hU-3z for pgsql-general@lists.postgresql.org; Mon, 03 Sep 2018 01:42:05 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id DD9EA21B7C; Sun, 2 Sep 2018 21:41:51 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sun, 02 Sep 2018 21:41:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=4xoHYT8n2zvRfgiJe74GQZcY96LJh RbO8fn3/91uLSA=; b=wEYd5fx0wSd9UNBJ2clrOJ7FVFtMyap6rDJlWVDa4WAe6 mlOsaPATa+fsd5gnZ+M0O1U76txgPijdj5IZM4zUwRwnlF8UMdNyyfIcJduw9lax 6EHflPOG7ejjiDoNJ58+upAtI1vBJmApt/MG7BTJGLqlIhiipP8Rey5/XkvKON6K PzIireqiCd/UpGxWrKLhkRDaZavqE+gv0+65jloivZBMniHwIzbc+RzPIUpKUlJO 9plK8nUlVN33Z5G4Z3JoQjymzS/2BnAF850EDMlHtr+XlQWLfoMQXrU8JY0TwVhi gZdlRdb+vqHAVXuIngHmpLq/7E5t5Vgyc32FcD0kg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=4xoHYT 8n2zvRfgiJe74GQZcY96LJhRbO8fn3/91uLSA=; b=fHVHzKpL/MxSMZCSwbhh3F lqzscb/+3MYq7Hn2OA36sS3RwgMVQYqdNUV+M7NBeF/ZX6ehquQ2+ZQejdh58ycF aCQbneJrFkV9qLoyNb8F5Mqat37Xv1juKr6qYrn+65kmq44WfafzwPlJdQyKercU TJ5rg/2I8C7Jx8cp1/bKejEVRUkGOMLCWgqDjWHIcVeKYl3oafl9jGXskgBr9aUL umXH2XaLS1DvuccFne/rqIe4A2abq+ZqNcp16wu7OEvCSizHBdkAo+3fCI11RS5p KDN5C1vKqOppzdSCxdde4tfU/ap1Xn+qDsZWunp9gX4lV7LKWA80ok4zH21wLvLw == X-ME-Proxy: X-ME-Sender: Received: from [192.168.1.3] (unknown [71.212.134.3]) by mail.messagingengine.com (Postfix) with ESMTPA id 18E3010292; Sun, 2 Sep 2018 21:41:50 -0400 (EDT) Subject: Re: dat names generated by pg_dump To: Ron , pgsql-general@lists.postgresql.org References: <0ddc55d3-d7b7-a765-5548-0d847b41d941@gmail.com> From: Adrian Klaver Message-ID: <610aaefa-873b-36f7-e933-5a309497c5f9@aklaver.com> Date: Sun, 2 Sep 2018 18:41:50 -0700 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: <0ddc55d3-d7b7-a765-5548-0d847b41d941@gmail.com> Content-Type: text/plain; charset=utf-8; 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 09/02/2018 05:40 PM, Ron wrote: > Hi, > > I can associate these dat names with their source tables through a bunch > of bash and vim manual operations, but I was wondering if there's any > automated method (maybe some SQL query of some catalog table; pg_class > didn't seem to have the relevant data) of making the association. Some background would be helpful: 1) What is producing the *.dat files? 2) What is their structure? 3) What do the numbers refer to? > > If relevant, the source database is v8.4, but the backup was done by 9.6 > on a separate server. > > $ ls -1 CDSLBXW/*dat | head > CDSLBXW/8412.dat > CDSLBXW/8414.dat > CDSLBXW/8416.dat > CDSLBXW/8418.dat > CDSLBXW/8420.dat > CDSLBXW/8422.dat > CDSLBXW/8423.dat > CDSLBXW/8425.dat > CDSLBXW/8427.dat > CDSLBXW/8428.dat > > Thanks > -- Adrian Klaver adrian.klaver@aklaver.com