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 1fweu3-0001SA-KG for pgsql-general@arkaria.postgresql.org; Mon, 03 Sep 2018 02:47:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fwetz-0007b9-S8 for pgsql-general@arkaria.postgresql.org; Mon, 03 Sep 2018 02:47:43 +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 1fwetz-0007b2-IC for pgsql-general@lists.postgresql.org; Mon, 03 Sep 2018 02:47:43 +0000 Received: from mail-oi0-x244.google.com ([2607:f8b0:4003:c06::244]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fwetw-0007DW-3S for pgsql-general@lists.postgresql.org; Mon, 03 Sep 2018 02:47:42 +0000 Received: by mail-oi0-x244.google.com with SMTP id y207-v6so31083575oie.13 for ; Sun, 02 Sep 2018 19:47:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=J8DpXnGN+zf+7B+3gYvT5JCQ4wGV61i/1jDqq766rco=; b=QDcQq9ph3GrgsiIm6c07nkT4fljBQg8yhMrlvUyJLOXiW0dgiyzE3M0CF1vp+vsYu8 VoUtP3wND1naDGSOvhdrB5FsvtSG5MnA4criX3gV3zOtfp0CQo1caV5aU27dbXvRiLHR BaS6jHJDdqucevKCGYTydD6j1WMoEoKRyjWO/DR2mJw6P02MAuwduco2am2zRZirhYGg 9vNz9v1PI7EmiOkxvIl/3ss+K+POhVdsfmiT+g2bd9ZuFcqWCzSQKe+AAgjQNfV+tYv5 aLYKgrD/uAmW69Cx1jR9Qafo2BI6G4QkOKXuiFMVXcWL+YV6QP2DBHllUR3+2RZAmmGA nFtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=J8DpXnGN+zf+7B+3gYvT5JCQ4wGV61i/1jDqq766rco=; b=Pkg1BKbGH+5KdbaPkIJ4u5JghElUByGYMN8Ossk2UDlZE10bJLCWRWvcxUSf6xWm2Z J3W7BIPM47uuLAPzfrrIG/vYW/GacpG7Lr/1lbauRxh44Z8VBKcFCWXbtXdgKybGwhgj xt5hGTMKoSS0N/a8O1X0B15PUoO1UFxmTOoTaXQSMs4HT5ouW7P2YKRjttAVMiqYAVSN obbN1afD+4sjZ3lis6lCifxN/bVIGMAazLHHLocV8KlkItoYg9dWUzA9rsJtgofD+gX0 fCK+w9hNYWtwjdB0NIdIHfljzvlVw+bhQlE5dxGz0mEVWPN+9CixEfGVCoLtQc7SGBqq TAkg== X-Gm-Message-State: APzg51B4QjubQdkuJIUYf2OMTXKam5S95ZKhI0OvaDcx8F2hinqHWXkn ayOn/m6an41MAiIWP2QpagFdwAth X-Google-Smtp-Source: ANB0Vdbdsj3AB3M6LEULQqRCTOSEHroDeB3np2jlPz26I+23VS9ZSvP4cyxar0NXBw5jLTmxxM4QlA== X-Received: by 2002:aca:b48b:: with SMTP id d133-v6mr16999010oif.165.1535942857647; Sun, 02 Sep 2018 19:47:37 -0700 (PDT) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id i204-v6sm24226251oia.41.2018.09.02.19.47.36 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Sep 2018 19:47:36 -0700 (PDT) Subject: Re: dat names generated by pg_dump To: pgsql-general@lists.postgresql.org References: <0ddc55d3-d7b7-a765-5548-0d847b41d941@gmail.com> <13488.1535941572@sss.pgh.pa.us> From: Ron Message-ID: Date: Sun, 2 Sep 2018 21:47:35 -0500 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: <13488.1535941572@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 09/02/2018 09:26 PM, Tom Lane wrote: > Ron writes: >> 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. > Those numbers are the "dump object IDs" generated by pg_dump. They don't > have any significance on the server side, and typically would vary from > one pg_dump run to another. You have to look at the dump TOC (table of > contents) to figure out what corresponds to what. For example, > > $ pg_dump -Fd -f dumpd regression > $ ls -1 dumpd > 6143.dat.gz > 6144.dat.gz > 6145.dat.gz > ... > blob_3001.dat.gz > blobs.toc > toc.dat > $ pg_restore -l dumpd > ; > ; Archive created at 2018-09-02 22:14:48 EDT > ... > 6573; 2613 119655 BLOB - 119655 postgres Thanks. That's exactly what I needed. -- Angular momentum makes the world go 'round.