On 27-05-2014 18:58, Guimarães Faria Corcete DUTRA, Leandro wrote:
> 2014-05-27 18:55 GMT-03:00 Danilo Silva <[email protected]>:
>>
>> Tenho uma tabela que contém uma coluna do tipo bytea. No dump, se não for
>> especificado "--blobs" o dump não terá os "dados" dessa coluna?
> 
> Depende <http://www.postgresql.org/docs/9.4/static/app-pgdump.html>:
> ‘-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.’
> 

Mas não se aplica no caso do Danilo... ele tem uma coluna em uma tabela
do tipo BYTEA, então o -b/--blobs não tem efeito algum.

O parâmetro citado tem efeito se utilizarmos a estrutura interna do
PostgreSQL para armazenamento de BLOBs (pg_largeobject) [1], através das
funções lo_import e lo_export [2].

Att,

[1]
http://www.postgresql.org/docs/current/static/catalog-pg-largeobject.html
[2] http://www.postgresql.org/docs/current/static/lo-funcs.html

-- 
   Fabrízio de Royes Mello         Timbira - http://www.timbira.com.br/
   PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a