Re: Is there any reason why databases cannot have a binary formatted datatype?

From: Richard Huxton <dev(at)archonet(dot)com>
To: a(dot)maclean(at)cas(dot)edu(dot)au
Cc: General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Is there any reason why databases cannot have a binary formatted datatype?
Date: 2009-11-27 11:28:28
Message-ID: 4B0FB7DC.9020102@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Andrew Maclean wrote:
> Is there some underlying physical reason why postgresql and other
> databases cannot handle binary data without going through all this
> silly escape stuff which must have a massive impact on performance. Or
> is it just because databases originally were built to handle just test
> data?

What John said, but just a small note. The text representation of the
various datatypes are fairly static. The binary representations can
change - even between two databases with the same version number
(floating-point vs big-int timestamps). For a meaningless (to the db)
"blob" type that doesn't matter, but you will need to be aware of the
issues and have appropriate tests in place for your application.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2009-11-27 11:36:59 Re: Bestpractice for upgrading from enterpriseDB 8.3.3 to rpm 8.4.1.
Previous Message Alban Hertroys 2009-11-27 11:18:52 Re: date_trunct() and start of week