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

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: Is there any reason why databases cannot have a binary formatted datatype?
Дата
Msg-id 4B0F9367.7010207@hogranch.com
обсуждение исходный текст
Ответ на Is there any reason why databases cannot have a binary formatted datatype?  (Andrew Maclean <andrew.amaclean@gmail.com>)
Список pgsql-general
Andrew Maclean wrote:
> Can't we have a data type called say "image" that is just a
> representation of the bytes and nothing else?
> It seems to me that bytea is a hangover from the old days
>

um, thats what BYTEA is.

> 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?
>

thats all in the API's you use to access the database.  you can pass in
binary data directly without escaping if your API bindings support
parameterized calls, like pqExecParams()



В списке pgsql-general по дате отправления:

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Re: date_trunct() and start of week
Следующее
От: Thom Brown
Дата:
Сообщение: Storing images in database for web applications