Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 06F1364FD17 for ; Fri, 12 Sep 2008 16:55:57 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 12445-07 for ; Fri, 12 Sep 2008 16:55:52 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by postgresql.org (Postfix) with ESMTP id 2906A64FCD3 for ; Fri, 12 Sep 2008 16:55:46 -0300 (ADT) Received: from perhan.alvh.no-ip.org (190-95-19-82.bk17-dsl.surnet.cl [190.95.19.82]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id m8CJx3jQ018991 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 12 Sep 2008 12:59:06 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 107A147CAC; Fri, 12 Sep 2008 15:55:39 -0400 (CLT) Date: Fri, 12 Sep 2008 15:55:39 -0400 From: Alvaro Herrera To: kevin kempter Cc: pgsql-admin@postgresql.org Subject: Re: exporting/importing BLOB's (lo_* style) Message-ID: <20080912195538.GL8854@alvh.no-ip.org> References: <71F52673-AB71-49C1-BC36-A0179CA3D00C@kevinkempterllc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <71F52673-AB71-49C1-BC36-A0179CA3D00C@kevinkempterllc.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Fri, 12 Sep 2008 12:59:06 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/125 X-Sequence-Number: 30218 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