pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: kevin kempter <kevin@kevinkempterllc.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: exporting/importing BLOB's (lo_* style)
Date: Fri, 12 Sep 2008 15:55:39 -0400
Message-ID: <20080912195538.GL8854@alvh.no-ip.org> (raw)
In-Reply-To: <71F52673-AB71-49C1-BC36-A0179CA3D00C@kevinkempterllc.com>
References: <71F52673-AB71-49C1-BC36-A0179CA3D00C@kevinkempterllc.com>

kevin kempter wrote:
> Hi All;
>
> I want to dump a set of BLOB's from one db/server and import to another.
>
> I assume I cannot do a pg_dump unless I also dump related pg_largeobject 
> rows for the referenced OID

pg_dump should dump large objects automatically.  If you're dumping a
single table, make sure you use the -b switch.  Saith the manpage

       -b

       --blobs
              Include large objects in the dump. This is the default  behavior
              except when --schema, --table, or --schema-only is specified, so
              the -b switch is only useful to add large objects  to  selective
              dumps.


-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support



view thread (3+ messages)

Message-ID: <20080912195538.GL8854@alvh.no-ip.org>
Permalink:  ../20080912195538.GL8854@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20080912195538.GL8854@alvh.no-ip.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: alvherre@commandprompt.com, kevin@kevinkempterllc.com
  Subject: Re: exporting/importing BLOB's (lo_* style)
  In-Reply-To: <20080912195538.GL8854@alvh.no-ip.org>

* 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