2011/11/16, Leandro Monqueiro Leme <[email protected]>:
> Qual é o tipo pra colocar jpeg no 9.1 ? no 8.4 era bytea, continua ?


A partir da versão 9.0 foi introduzida a seguinte alteração:
"The bytea type supports two external formats for input and output:
PostgreSQL's historical "escape" format, and "hex" format. Both of
these are always accepted on input. The output format depends on the
configuration parameter bytea_output; the default is hex. (Note that
the hex format was introduced in PostgreSQL 9.0; earlier versions and
some tools don't understand it.) "
(http://www.postgresql.org/docs/current/interactive/datatype-binary.html)

Verifique se não é esta modificação que está acarretando problemas em
sua aplicação.

Pode ser que mudando o parâmetro bytea_output (enum) do
postgresql.conf (de hex para escape) ele passe a tratar os campos
bytea da maneira que sua aplicação espera.

Osvaldo
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a