Search Postgresql Archives

Re: Gripe: bytea_output default => data corruption

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

 



Rajesh Kumar Mallah wrote:
> Dear Griper!,
> 
> fortunately someone showed a easy 'fix'
> 
> ALTER DATABASE foo SET bytea_output='escape' ;

Yes, we mentioned that setting in the release notes too:

	E.2.3.5. Data Types
	
	    *
	
	      Allow bytea values to be written in hex notation (Peter
	Eisentraut)
	
	      The server parameter bytea_output controls whether hex or
	traditional format is used for bytea output. Libpq's PQescapeByteaConn()
	function automatically uses the hex format when connected to PostgreSQL
	9.0 or newer servers.
	
	      The new hex format will be directly compatible with more
	applications that use binary data, allowing them to store and retrieve
	it without extra conversion. It is also significantly faster to read and
	write than the traditional format. 

While the "Incompatibilities" section mentions only the first paragraph,
this remention lower down has even more details.  Not sure what else you
wanted us to do.

-- 
  Bruce Momjian  <bruce@xxxxxxxxxx>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux