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 1fweVq-0000Gx-LF for pgsql-general@arkaria.postgresql.org; Mon, 03 Sep 2018 02:22:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fweVn-00016y-VA for pgsql-general@arkaria.postgresql.org; Mon, 03 Sep 2018 02:22:43 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fweVn-00016r-Jc for pgsql-general@lists.postgresql.org; Mon, 03 Sep 2018 02:22:43 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fweVf-0007gl-3C for pgsql-general@lists.postgresql.org; Mon, 03 Sep 2018 02:22:42 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 38B3421751; Sun, 2 Sep 2018 22:22:33 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sun, 02 Sep 2018 22:22:33 -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=GbWop7ARbuWB4O2o/QeDB4gQBBmHs tu3dJdjq9x/ov0=; b=HbBxHHteIkPvvUwuX0F8dkLcX0hgMuGankZQttCskDBHf gu1ypCtdjdHyMeCVAON38Ud4+A/5ifmrxu4Wxk/2oQEcIckTSM25eIpYTt4jQLCt jPzOdrAiZKQJMRDJoleqr/ybfyuj4BI1cnuNIukQRGWGa2AcYWIAWOlogQKYwxja fqavIjauuVa7vIxA+Va/94WBrcnXzPfQLKqZHYV3atFGwdWjW5uCvEdTt0Y6SUaN ftu1VfZxvSSd8NQWzKizpaFcW4UwQ0V9jb7OmlZcG+sRXSjuobEBOywwVduT46E4 yK5Q+RAEW/k+JEMTI8p0srYKDyv7uv3x5PpUt1d9A== 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=GbWop7 ARbuWB4O2o/QeDB4gQBBmHstu3dJdjq9x/ov0=; b=D3WFXZs5/1Gd6Msor14K2s 9IjTLwFkNXJGU9Adk0DIjQ655XA4B+quV3JpR1pzSpL+0Di22zhQWp+FZBKMC/cE 00iTjpjUoBAmCSpYxk4A4z7gVumYr40FV4xKLiF0Cjd+Cx81J1DYYyHX8wpVRr6j HIe759KYv/FsaRLP01gLAzSfLJ+JO/aHILeVFqTtwXNULnbfBlsS4M5fhzPs/UOv xxoolxydVyUVFH5lSWWas3BafKIxBX1x/7ug4L7lQH9RHERdeS2ztU076I59AffP LWNn+aLHQm1StsbUfjtxyjnmqGwL/FCPnQrJtSOmLJiaRI9BRzwFXLgpNT5utEfg == 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 DBA7610292; Sun, 2 Sep 2018 22:22:31 -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> <610aaefa-873b-36f7-e933-5a309497c5f9@aklaver.com> <2d979369-9b04-155a-b14a-e62c0684484f@gmail.com> From: Adrian Klaver Message-ID: <0587ce0a-23a5-6804-9ecc-b663dd898265@aklaver.com> Date: Sun, 2 Sep 2018 19:22:31 -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: <2d979369-9b04-155a-b14a-e62c0684484f@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 07:07 PM, Ron wrote: > On 09/02/2018 08:41 PM, Adrian Klaver wrote: >> 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? > > pg_dump, as described in the Subject. Oops, missed that. > >> >> 2) What is their structure? > > They're pg_dump files. What is the full pg_dump command used? > >> >> 3) What do the numbers refer to? > > That's what I'm asking the list. > >> >>> >>> 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