Re: exporting/importing BLOB's (lo_* style)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux