pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedexporting/importing BLOB's (lo_* style)
3+ messages / 3 participants
[nested] [flat]
* exporting/importing BLOB's (lo_* style)
@ 2008-09-12 19:19 kevin kempter <kevin@kevinkempterllc.com>
2008-09-12 19:54 ` Re: exporting/importing BLOB's (lo_* style) Tom Lane <tgl@sss.pgh.pa.us>
2008-09-12 19:55 ` Re: exporting/importing BLOB's (lo_* style) Alvaro Herrera <alvherre@commandprompt.com>
0 siblings, 2 replies; 3+ messages in thread
From: kevin kempter @ 2008-09-12 19:19 UTC (permalink / raw)
To: pgsql-admin
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
I assume I'll need to export via distinct lo_export commands and use
lo_import to insert into the second database server.
Is there a way to do a bulk transfer or export/import of lo_* style
large objects ?
Thanks in advance
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: exporting/importing BLOB's (lo_* style)
2008-09-12 19:19 exporting/importing BLOB's (lo_* style) kevin kempter <kevin@kevinkempterllc.com>
@ 2008-09-12 19:54 ` Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 0 replies; 3+ messages in thread
From: Tom Lane @ 2008-09-12 19:54 UTC (permalink / raw)
To: kevin kempter <kevin@kevinkempterllc.com>; +Cc: pgsql-admin
kevin kempter <kevin@kevinkempterllc.com> writes:
> 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
> I assume I'll need to export via distinct lo_export commands and use
> lo_import to insert into the second database server.
Why don't you just use pg_dump?
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: exporting/importing BLOB's (lo_* style)
2008-09-12 19:19 exporting/importing BLOB's (lo_* style) kevin kempter <kevin@kevinkempterllc.com>
@ 2008-09-12 19:55 ` Alvaro Herrera <alvherre@commandprompt.com>
1 sibling, 0 replies; 3+ messages in thread
From: Alvaro Herrera @ 2008-09-12 19:55 UTC (permalink / raw)
To: kevin kempter <kevin@kevinkempterllc.com>; +Cc: pgsql-admin
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
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2008-09-12 19:55 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-09-12 19:19 exporting/importing BLOB's (lo_* style) kevin kempter <kevin@kevinkempterllc.com>
2008-09-12 19:54 ` Tom Lane <tgl@sss.pgh.pa.us>
2008-09-12 19:55 ` Alvaro Herrera <alvherre@commandprompt.com>
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