From: Greg Williamson <gwilliamson39@yahoo.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: postgres 9.0.4, pg_restore and indexes
Date: Mon, 24 Oct 2011 17:41:07 -0700 (PDT)
Message-ID: <1319503267.66489.YahooMailNeo@web46110.mail.sp1.yahoo.com> (raw)
In-Reply-To: <CALnrrJQiBwb4ym1DBASzQR2pbdPnYueJmQWwOXSweKhpa-cYxA@mail.gmail.com>
References: <1319493368.35732.YahooMailNeo@web46108.mail.sp1.yahoo.com>
<CALnrrJQiBwb4ym1DBASzQR2pbdPnYueJmQWwOXSweKhpa-cYxA@mail.gmail.com>
Raghu Ram wrote:
<snip>
>
>Try with below work-around to restore only hosts table from compressed dump file:
>
>
>"pg_restore -t hosts -Fc /var/data/pgsql/backups/prodDB/20111017_puppet.pgdump > hosts_plaindump" [ i.e you'll get a human-readable dump ]
>
Did you actually try this ?
This does not include any references to indexes, constraints or sequences, all of which it might be useful to recreate.
What I am I missing ? Or is pg_restore just not capable of restoring the full definition of a table ?
TIA,
Greg WIlliamson
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: gwilliamson39@yahoo.com
Subject: Re: postgres 9.0.4, pg_restore and indexes
In-Reply-To: <1319503267.66489.YahooMailNeo@web46110.mail.sp1.yahoo.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