Em 11-05-2012 17:43, Flavio Henrique Araque Gurgel escreveu:
> xxd -p /caminho/arquivo | tr -d '\n' | psql -c "COPY sua_tabela FROM
> stdin;"
>
> Tentaí.
Tente também:
INSERT INTO sua_tabela VALUES (1, 2, SELECT
pg_read_binary_file('/caminho/foo'));
Obs: neste caso, o usuário do servidor deve ter permissões de acesso ao
arquivo.
[]s
Flavio Henrique A. Gurgel
Consultor e Instrutor 4Linux
Tel: +55-11-2125-4747
www.4linux.com.br
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral