pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: dat names generated by pg_dump
Date: Sun, 2 Sep 2018 21:47:35 -0500
Message-ID: <a5c966c4-1de1-dfb0-8fca-042f987344f4@gmail.com> (raw)
In-Reply-To: <13488.1535941572@sss.pgh.pa.us>
References: <0ddc55d3-d7b7-a765-5548-0d847b41d941@gmail.com>
	<13488.1535941572@sss.pgh.pa.us>

On 09/02/2018 09:26 PM, Tom Lane wrote:
> Ron <ronljohnsonjr@gmail.com> 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.




view thread (6+ messages)

Message-ID: <a5c966c4-1de1-dfb0-8fca-042f987344f4@gmail.com>
Permalink:  ../a5c966c4-1de1-dfb0-8fca-042f987344f4@gmail.com/
Also on:    postgresql.org/message-id/a5c966c4-1de1-dfb0-8fca-042f987344f4@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: dat names generated by pg_dump
  In-Reply-To: <a5c966c4-1de1-dfb0-8fca-042f987344f4@gmail.com>
  References: <0ddc55d3-d7b7-a765-5548-0d847b41d941@gmail.com> <13488.1535941572@sss.pgh.pa.us> <a5c966c4-1de1-dfb0-8fca-042f987344f4@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox